//
// _Init_thread_wait from 0x180120a28 to 0x180120a8b (99 bytes)
//
// 2 xrefs:
// > _Init_thread_header @ 0x1801209a1
// > ??> @ 0x180202564
//
// 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
//
void __fastcall Init_thread_wait(DWORD dwMilliseconds)
{
if ( qword_1801F4A18 )
{
qword_1801F4A18(&unk_1801F49E0, &stru_1801F49F0, dwMilliseconds);
}
else
{
LeaveCriticalSection(&stru_1801F49F0);
WaitForSingleObjectEx(hHandle, dwMilliseconds, 0);
EnterCriticalSection(&stru_1801F49F0);
}
}