//
// __vcrt_FlsSetValue from 0x180125208 to 0x180125259 (81 bytes)
//
// 6 xrefs:
// > __vcrt_freeptd @ 0x180124e05
// > __vcrt_getptd_noexit @ 0x180124e95
// > __vcrt_getptd_noexit @ 0x180124ebc
// > __vcrt_getptd_noexit @ 0x180124edf
// > __vcrt_initialize_ptd @ 0x180124f2c
// > ??> @ 0x1802027bc
//
// 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
//
int __fastcall _vcrt_FlsSetValue(DWORD dwTlsIndex, LPVOID lpTlsValue)
{
FARPROC function; // rax
function = try_get_function(3u, "FlsSetValue", (unsigned int *)&unk_180170AF0, (unsigned int *)"FlsSetValue");
if ( function )
return ((__int64 (__fastcall *)(_QWORD, LPVOID))function)(dwTlsIndex, lpTlsValue);
else
return TlsSetValue(dwTlsIndex, lpTlsValue);
}