//
// _updatetlocinfoEx_nolock from 0x18013c53c to 0x18013c5a1 (101 bytes)
//
// 3 xrefs:
// > __crt_seh_guarded_call::operator @ 0x1801365c5
// > __acrt_update_thread_locale_data @ 0x18013c50f
// > ??> @ 0x1802039ec
//
// 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
//
__int64 __fastcall updatetlocinfoEx_nolock(__int64 *a1, __int64 a2)
{
__int64 v3; // rbx
if ( !a2 || !a1 )
return 0;
v3 = *a1;
if ( *a1 != a2 )
{
*a1 = a2;
_acrt_add_locale_ref(a2);
if ( v3 )
{
_acrt_release_locale_ref(v3);
if ( !*(_DWORD *)(v3 + 16) && (wchar_t **)v3 != &off_1801B1880 )
_acrt_free_locale((char *)v3);
}
}
return a2;
}