// // __scrt_acquire_startup_lock from 0x1404d0a7c to 0x1404d0ab5 (57 bytes) // // 2 xrefs: // > __scrt_common_main_seh @ 0x1404d0ec0 // > @ 0x1406dd6ac // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // char _scrt_acquire_startup_lock() { PVOID StackBase; // rcx signed __int64 v1; // rax if ( (unsigned int)_scrt_is_ucrt_dll_in_use() ) { StackBase = NtCurrentTeb()->NtTib.StackBase; while ( 1 ) { v1 = _InterlockedCompareExchange64(&qword_1406C1038, (signed __int64)StackBase, 0); if ( !v1 ) break; if ( StackBase == (PVOID)v1 ) return 1; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source