//
// sub_10005E3A0 from 0x10005e3a0 to 0x10005e434 (148 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_10005E3A0(__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_10005AD20((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;
}
}