//
// sub_10005D7E0 from 0x10005d7e0 to 0x10005d86c (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ab7c18
//
// 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 12:19:40 +0000
//
char __fastcall sub_10005D7E0(__int64 a1, __int64 a2)
{
__int64 v2; // rax
char *v3; // rbx
char *v4; // rcx
char result; // al
char v6; // si
__int64 v7; // rdx
if ( !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 88LL))(a2) )
return 0;
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 88LL))(a2);
v3 = (char *)sub_10005AD20((int *)(v2 + 24));
v4 = (char *)sub_10005AD20((int *)(a1 + 24));
result = 1;
if ( v3 == v4 )
return result;
v6 = *v3;
if ( !*v3 )
{
LABEL_10:
if ( !*v4 )
return result;
return 0;
}
v7 = 0;
while ( v6 == v4[v7] && (_DWORD)v7 != 0x7FFFFFFF )
{
v6 = v3[++v7];
if ( !v6 )
{
if ( (_DWORD)v7 == 0x7FFFFFFF )
return result;
v4 += v7;
goto LABEL_10;
}
}
if ( (_DWORD)v7 != 0x7FFFFFFF )
return 0;
return result;
}