//
// __scrt_release_startup_lock from 0x1800dfa24 to 0x1800dfa48 (36 bytes)
//
// 6 xrefs:
// > dllmain_crt_process_attach @ 0x1800dfdd5
// > dllmain_crt_process_detach @ 0x1800dfe9c
// > dllmain_crt_process_attach @ 0x1800e3a20
// > dllmain_crt_process_detach @ 0x1800e3a32
// > ??> @ 0x1801bb094
// > ??> @ 0x1801bb0a0
//
// 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_1801AC6C0, 0);
return v2;
}