//
// _LocaleUpdate::_LocaleUpdate from 0x180129454 to 0x1801294ef (155 bytes)
//
// 34 xrefs:
// > _stat64i32 @ 0x1801298a0
// > __crt_strtox::parse_integer
> @ 0x18012a590
// > __crt_strtox::parse_integer> @ 0x18012a88f
// > _wcstombs_l_helper @ 0x18012b507
// > common_vsprintf<__crt_stdio_output::standard_base,char> @ 0x18012b8c5
// > common_vsprintf<__crt_stdio_output::standard_base,wchar_t> @ 0x18012ba91
// > _lambda_7e489fec146d5348dbc86d3cce37c1b5_::operator @ 0x18012c306
// > _wcsnicoll_l @ 0x1801344cd
// > _strnicoll_l @ 0x180134588
// > _wcsicmp_l @ 0x180134dc2
// > _isctype_l @ 0x180136bc4
// > _mbtowc_l @ 0x1801372eb
// > _wctomb_s_l @ 0x180137489
// > fp_format_a @ 0x18013761d
// > fp_format_e_internal @ 0x180137ab2
// > fp_format_f_internal @ 0x180137c3f
// > __acrt_GetModuleFileNameA @ 0x18013929b
// > _wsetlocale_set_cat @ 0x180139eaa
// > _wsetlocale_set_cat @ 0x180139f8e
// > getSystemCP @ 0x18013a2b7
// > x_ismbbtype_l @ 0x18013ab6b
// > _strnicmp_l @ 0x18013ba7b
// > __acrt_CompareStringA @ 0x18013be58
// > sub_18013C0DC @ 0x18013c0f8
// > tzset_env_copy_to_tzname @ 0x18013cc7f
// > __acrt_GetStringTypeA @ 0x18013d769
// > _isleadbyte_l @ 0x18013da32
// > write_double_translated_ansi_nolock @ 0x18013fa63
// > _mbsdec_l @ 0x180140bbb
// > __acrt_LCMapStringA @ 0x180140f4c
// > __acrt_SetEnvironmentVariableA @ 0x18014103d
// > __acrt_SetEnvironmentVariableA @ 0x1801410b6
// > ??> @ 0x180202a80
// > ??> @ 0x180202a8c
//
// 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
//
_LocaleUpdate *__fastcall _LocaleUpdate::_LocaleUpdate(_LocaleUpdate *this, struct __crt_locale_pointers *const a2)
{
_OWORD *v3; // rsi
__int128 v4; // xmm0
__int64 v5; // rax
int v6; // eax
*((_BYTE *)this + 24) = 0;
v3 = (_OWORD *)((char *)this + 8);
if ( a2 )
{
v4 = (__int128)*a2;
LABEL_5:
*v3 = v4;
return this;
}
if ( !dword_1801F5150 )
{
v4 = *(_OWORD *)&off_1801B19D8;
goto LABEL_5;
}
v5 = _acrt_getptd();
*(_QWORD *)this = v5;
*(_QWORD *)v3 = *(_QWORD *)(v5 + 144);
*((_QWORD *)this + 2) = *(_QWORD *)(v5 + 136);
sub_180135F5C(v5, v3);
sub_180135F90(*(_QWORD *)this, (char *)this + 16);
v6 = *(_DWORD *)(*(_QWORD *)this + 936LL);
if ( (v6 & 2) == 0 )
{
*(_DWORD *)(*(_QWORD *)this + 936LL) = v6 | 2;
*((_BYTE *)this + 24) = 1;
}
return this;
}