//
// sub_10071DBD0 from 0x10071dbd0 to 0x10071dcd5 (261 bytes)
//
// 1 xrefs:
// > sub_10071DCE0 @ 0x10071dcfa
//
// 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:12 +0000
//
_QWORD *__fastcall sub_10071DBD0(_QWORD *a1)
{
_QWORD *v2; // r15
const char *v3; // r14
const char *v4; // rsi
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // r15
const char *v8; // rdi
const char *v9; // r14
_QWORD *v10; // r12
const char *v11; // rsi
if ( *a1 )
{
v2 = *(_QWORD **)(*a1 + 40LL);
if ( v2[6] )
{
v3 = (const char *)a1[2];
do
{
v4 = (const char *)v2[2];
if ( v4 )
{
if ( !strcmp(v3, v4) )
goto LABEL_22;
}
v2 = (_QWORD *)v2[5];
}
while ( v2[6] );
}
LABEL_21:
v2 = nullptr;
LABEL_22:
*a1 = v2;
return a1;
}
v5 = a1[1];
if ( v5 && (v6 = *(_QWORD *)(v5 + 32)) != 0 )
{
v7 = *(_QWORD *)(v6 + 40);
*a1 = v7;
if ( !v7 )
{
if ( !*(_BYTE *)a1[2] )
return a1;
goto LABEL_21;
}
v8 = "";
if ( *(_QWORD *)(v7 + 16) )
v8 = *(const char **)(v7 + 16);
v9 = (const char *)a1[2];
if ( strcmp(v8, v9) )
{
v10 = *(_QWORD **)(v7 + 40);
if ( v10[6] )
{
v2 = nullptr;
while ( 1 )
{
v11 = (const char *)v10[2];
if ( v11 )
{
if ( !strcmp(v9, v11) )
break;
}
v10 = (_QWORD *)v10[5];
if ( !v10[6] )
goto LABEL_22;
}
v2 = v10;
goto LABEL_22;
}
goto LABEL_21;
}
}
else
{
*a1 = 0;
if ( *(_BYTE *)a1[2] )
goto LABEL_21;
}
return a1;
}