//
// __vcrt_initialize_ptd from 0x180124f08 to 0x180124f4f (71 bytes)
//
// 2 xrefs:
// > __vcrt_initialize @ 0x180124b45
// > ??> @ 0x18020275c
//
// 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:54 +0000
//
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;
}