//
// __ascii_strnicmp from 0x18013b98c to 0x18013b9d5 (73 bytes)
//
// 1 xrefs:
// > _strnicmp @ 0x18013ba16
//
// 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 _ascii_strnicmp(unsigned __int8 *a1, unsigned __int8 *a2, __int64 a3)
{
__int64 result; // rax
int v6; // ecx
int v7; // edx
int v8; // r9d
int v9; // ecx
if ( !a3 )
return 0;
do
{
v6 = *a1;
v7 = *a2;
v8 = v6 + 32;
if ( (unsigned int)(v6 - 65) > 0x19 )
v8 = *a1;
++a1;
++a2;
v9 = v7 + 32;
if ( (unsigned int)(v7 - 65) > 0x19 )
v9 = v7;
result = (unsigned int)(v8 - v9);
if ( (_DWORD)result )
break;
if ( !v8 )
break;
--a3;
}
while ( a3 );
return result;
}