//
// __vcrt_initialize_ptd from 0x180124f08 to 0x180124f4f (71 bytes)
//
// 2 xrefs:
// > __vcrt_initialize @ 0x180124b45
// > ??> @ 0x18020275c
//
// 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
//
char _vcrt_initialize_ptd()
{
DWORD v0; // eax
v0 = _vcrt_FlsAlloc(_vcrt_freefls);
dwTlsIndex = v0;
if ( v0 != -1 )
{
if ( (unsigned int)_vcrt_FlsSetValue(v0, &unk_1801F4A70) )
{
dword_1801F4AE8 = -2;
return 1;
}
_vcrt_uninitialize_ptd();
}
return 0;
}