//
// __scrt_release_startup_lock from 0x1406779ec to 0x140677a10 (36 bytes)
//
// 3 xrefs:
// > __scrt_common_main_seh @ 0x140677e8e
// > ??> @ 0x1409326d8
// > ??> @ 0x1409326e4
//
// 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 11:36:00 +0000
//
__int64 __fastcall _scrt_release_startup_lock(char a1)
{
__int64 result; // rax
result = _scrt_is_ucrt_dll_in_use();
if ( (_DWORD)result )
{
if ( !a1 )
_InterlockedExchange64(&qword_1409096F8, 0);
}
return result;
}