//
// sub_100096EF0 from 0x100096ef0 to 0x100096f84 (148 bytes)
//
// 0 xrefs:
//
// 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 sub_100096EF0(__int64 a1, char *a2)
{
__int64 v2; // rbx
char *v3; // rax
char v4; // dl
char *v5; // rcx
__int64 v6; // rcx
v2 = *(_QWORD *)(a1 + 96);
if ( !v2 )
return 0;
while ( 1 )
{
v3 = (char *)sub_100093910((int *)(v2 + 8));
if ( v3 == a2 )
return v2;
v4 = *v3;
v5 = a2;
if ( *v3 )
{
v6 = 0;
while ( v4 == a2[v6] && (_DWORD)v6 != 0x7FFFFFFF )
{
v4 = v3[++v6];
if ( !v4 )
{
if ( (_DWORD)v6 == 0x7FFFFFFF )
return v2;
v5 = &a2[v6];
goto LABEL_3;
}
}
if ( (_DWORD)v6 != 0x7FFFFFFF )
goto LABEL_4;
return v2;
}
LABEL_3:
if ( !*v5 )
return v2;
LABEL_4:
v2 = *(_QWORD *)(v2 + 56);
if ( !v2 )
return 0;
}
}