//
// _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 (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:55:02 +0000
//
__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;
}