//
// __scrt_release_startup_lock from 0x1404d0c18 to 0x1404d0c3c (36 bytes)
//
// 3 xrefs:
// > __scrt_common_main_seh @ 0x1404d0f2e
// > ??> @ 0x1406dd6d0
// > ??> @ 0x1406dd6dc
//
// 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
//
__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_1406C1038, 0);
}
return result;
}