//
// __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 (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
//
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);
}