// // __scrt_acquire_startup_lock from 0x1801204a4 to 0x1801204dd (57 bytes) // // 3 xrefs: // > dllmain_crt_process_attach @ 0x180120b06 // > dllmain_crt_process_detach @ 0x180120c20 // > @ 0x180202474 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 10:54:52 +0000 // char _scrt_acquire_startup_lock() { int v0; // eax PVOID StackBase; // rcx signed __int64 v2; // rax LOBYTE(v0) = __uncaught_exception(); if ( v0 ) { StackBase = NtCurrentTeb()->NtTib.StackBase; while ( 1 ) { v2 = _InterlockedCompareExchange64(&qword_1801F49A0, (signed __int64)StackBase, 0); if ( !v2 ) break; if ( StackBase == (PVOID)v2 ) return 1; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source