//
// __scrt_release_startup_lock from 0x18001f65c to 0x18001f680 (36 bytes)
//
// 6 xrefs:
// > dllmain_crt_process_attach @ 0x18001f941
// > dllmain_crt_process_detach @ 0x18001fa08
// > dllmain_crt_process_attach @ 0x1800212b6
// > dllmain_crt_process_detach @ 0x1800212c8
// > ??> @ 0x18004b1f0
// > ??> @ 0x18004b1fc
//
// 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 __fastcall _scrt_release_startup_lock(char a1)
{
int v2; // eax
LOBYTE(v2) = __uncaught_exception();
if ( v2 && !a1 )
_InterlockedExchange64(&qword_180047FF8, 0);
return v2;
}