//
// sub_140212FA0 from 0x140212fa0 to 0x14021301b (123 bytes)
//
// 3 xrefs:
// > sub_1402130E0 @ 0x140213140
// > sub_140213180 @ 0x140213205
// > ??> @ 0x14091b5f0
//
// 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 11:28:20 +0000
//
__int64 __fastcall sub_140212FA0(_BYTE *a1, unsigned __int8 *a2)
{
_BYTE *i; // rbx
int v4; // edi
int v5; // ebp
unsigned int v6; // ebp
int v7; // edi
int v8; // ebx
for ( i = a1; *i; ++a2 )
{
v4 = *a2;
if ( !(_BYTE)v4 )
break;
v5 = tolower((unsigned __int8)*i);
v6 = v5 - tolower(v4);
if ( v6 )
return v6;
++i;
}
v7 = (unsigned __int8)*i;
v8 = tolower(*a2);
return (unsigned int)(tolower(v7) - v8);
}