//
// sub_100653490 from 0x100653490 to 0x1006535a6 (278 bytes)
//
// 2 xrefs:
// > sub_100653080 @ 0x1006530e9
// > sub_100653080 @ 0x100653159
//
// 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_100653490(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
const char *v4; // rdi
__int64 v5; // r8
const char *v6; // rdx
const char *v7; // rdx
if ( !a1 )
return 0;
result = *(_QWORD *)(a1 + 56);
if ( !result )
return 0;
if ( a2 )
{
if ( a3 )
{
do
{
v4 = *(const char **)(result + 8);
if ( !v4 )
v4 = "";
if ( *v4 == 120 && v4[1] == 109 && v4[2] == 108 && v4[3] == 110 && v4[4] == 115 && v4[5] == 58 )
{
v5 = 0;
while ( v4[v5 + 6] == *(_BYTE *)(a2 + v5) )
{
if ( a3 == ++v5 )
{
if ( v4[a3 + 6] )
break;
return result;
}
}
}
result = *(_QWORD *)(result + 32);
}
while ( result );
return 0;
}
else
{
while ( 1 )
{
v7 = *(const char **)(result + 8);
if ( !v7 )
v7 = "";
if ( *v7 == 120 && v7[1] == 109 && v7[2] == 108 && v7[3] == 110 && v7[4] == 115 && v7[5] == 58 && !v7[6] )
break;
result = *(_QWORD *)(result + 32);
if ( !result )
return 0;
}
}
}
else
{
while ( 1 )
{
v6 = *(const char **)(result + 8);
if ( !v6 )
v6 = "";
if ( *v6 == 120 && v6[1] == 109 && v6[2] == 108 && v6[3] == 110 && v6[4] == 115 && !v6[5] )
break;
result = *(_QWORD *)(result + 32);
if ( !result )
return 0;
}
}
return result;
}