//
// __crtLCMapStringW from 0x1801411c8 to 0x18014124f (135 bytes)
//
// 2 xrefs:
// > sub_18013C0DC @ 0x18013c169
// > ??> @ 0x180203c8c
//
// 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 _crtLCMapStringW(__int64 a1, DWORD a2, const wchar_t *a3, int a4, WCHAR *a5, int a6)
{
unsigned int v6; // ebx
unsigned int v10; // eax
bool v11; // sf
bool v12; // of
v6 = a4;
if ( a4 > 0 )
{
v10 = wcsnlen(a3, a4);
v12 = __OFSUB__(v10, v6);
v11 = (int)(v10 - v6) < 0;
v6 = v10 + 1;
if ( v11 == v12 )
v6 = v10;
}
return _acrt_LCMapStringEx(a1, a2, a3, v6, a5, a6, 0, 0, 0);
}