//
// __vcrt_InitializeCriticalSectionEx_0 from 0x180135abc to 0x180135b1d (97 bytes)
//
// 4 xrefs:
// > __acrt_initialize_stdio @ 0x18012f900
// > __vcrt_initialize_locks_0 @ 0x180134683
// > __acrt_lowio_create_handle_array @ 0x18013600b
// > ??> @ 0x18020341c
//
// 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:55:00 +0000
//
int __fastcall _vcrt_InitializeCriticalSectionEx_0(
LPCRITICAL_SECTION lpCriticalSection,
DWORD dwSpinCount,
unsigned int a3)
{
FARPROC function; // rax
function = try_get_function(
0x12u,
"InitializeCriticalSectionEx",
(unsigned int *)"\a",
(unsigned int *)&unk_180174A60);
if ( function )
return ((__int64 (__fastcall *)(LPCRITICAL_SECTION, _QWORD, _QWORD))function)(lpCriticalSection, dwSpinCount, a3);
else
return InitializeCriticalSectionAndSpinCount(lpCriticalSection, dwSpinCount);
}