//
// sub_10005E440 from 0x10005e440 to 0x10005e546 (262 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall sub_10005E440(__int64 a1, char *a2, char *a3)
{
__int64 v3; // rbx
char *v5; // rax
char v6; // dl
char *v7; // rcx
__int64 v8; // rcx
char *v9; // rax
char v10; // dl
__int64 v11; // rcx
v3 = *(_QWORD *)(a1 + 96);
if ( !v3 )
return 0;
while ( 1 )
{
v5 = (char *)sub_10005AD20((int *)(v3 + 8));
if ( v5 == a2 )
break;
v6 = *v5;
v7 = a2;
if ( *v5 )
{
v8 = 0;
while ( v6 == a2[v8] && (_DWORD)v8 != 0x7FFFFFFF )
{
v6 = v5[++v8];
if ( !v6 )
{
if ( (_DWORD)v8 == 0x7FFFFFFF )
goto LABEL_14;
v7 = &a2[v8];
goto LABEL_3;
}
}
if ( (_DWORD)v8 != 0x7FFFFFFF )
goto LABEL_4;
break;
}
LABEL_3:
if ( !*v7 )
break;
LABEL_4:
v3 = *(_QWORD *)(v3 + 56);
if ( !v3 )
return 0;
}
LABEL_14:
if ( !a3 )
return sub_10005AD20((int *)(v3 + 32));
v9 = (char *)sub_10005AD20((int *)(v3 + 32));
if ( v9 == a3 )
return sub_10005AD20((int *)(v3 + 32));
v10 = *v9;
if ( *v9 )
{
v11 = 0;
while ( v10 == a3[v11] && (_DWORD)v11 != 0x7FFFFFFF )
{
v10 = v9[++v11];
if ( !v10 )
{
if ( (_DWORD)v11 == 0x7FFFFFFF )
return sub_10005AD20((int *)(v3 + 32));
a3 += v11;
goto LABEL_23;
}
}
if ( (_DWORD)v11 != 0x7FFFFFFF )
return 0;
return sub_10005AD20((int *)(v3 + 32));
}
LABEL_23:
if ( *a3 )
return 0;
return sub_10005AD20((int *)(v3 + 32));
}