//
// __acrt_CompareStringEx from 0x1801358b4 to 0x180135990 (220 bytes)
//
// 3 xrefs:
// > __crtCompareStringW @ 0x18013b904
// > InternalCompareStringA @ 0x18013bdd0
// > ??> @ 0x1802033e0
//
// 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:00 +0000
//
int __fastcall _acrt_CompareStringEx(
__int64 a1,
DWORD a2,
const WCHAR *a3,
unsigned int a4,
const WCHAR *lpString2,
int cchCount2,
__int64 a7,
__int64 a8,
__int64 a9)
{
FARPROC function; // rax
LCID v15; // eax
function = try_get_function(1u, "CompareStringEx", (unsigned int *)&unk_1801749A0, (unsigned int *)"CompareStringEx");
if ( function )
return ((__int64 (__fastcall *)(__int64, _QWORD, const WCHAR *, _QWORD, const WCHAR *, int, __int64, __int64, __int64))function)(
a1,
a2,
a3,
a4,
lpString2,
cchCount2,
a7,
a8,
a9);
v15 = _acrt_LocaleNameToLCID(a1, 0);
return CompareStringW(v15, a2, a3, a4, lpString2, cchCount2);
}