//
// _Init_thread_wait from 0x180120a28 to 0x180120a8b (99 bytes)
//
// 2 xrefs:
// > _Init_thread_header @ 0x1801209a1
// > ??> @ 0x180202564
//
// 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
//
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);
}
}