//
// sub_1007300C0 from 0x1007300c0 to 0x1007301d6 (278 bytes)
//
// 2 xrefs:
// > sub_10072FCB0 @ 0x10072fd19
// > sub_10072FCB0 @ 0x10072fd89
//
// 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:36:22 +0000
//
__int64 __fastcall sub_1007300C0(__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;
}