//
// __scrt_release_startup_lock from 0x180120780 to 0x1801207a4 (36 bytes)
//
// 6 xrefs:
// > dllmain_crt_process_attach @ 0x180120b85
// > dllmain_crt_process_detach @ 0x180120c4c
// > dllmain_crt_process_attach @ 0x180142ab9
// > dllmain_crt_process_detach @ 0x180142acb
// > ??> @ 0x1802024ec
// > ??> @ 0x1802024f8
//
// 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 __fastcall _scrt_release_startup_lock(char a1)
{
int v2; // eax
LOBYTE(v2) = __uncaught_exception();
if ( v2 && !a1 )
_InterlockedExchange64(&qword_1801F49A0, 0);
return v2;
}