//
// sub_10005EBD0 from 0x10005ebd0 to 0x10005ecb3 (227 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:41 +0000
//
void __fastcall sub_10005EBD0(__int64 a1, char *a2)
{
__int64 v2; // r15
char *v4; // rax
__int64 v5; // rcx
__int64 v6; // r12
char v7; // si
__int64 v8; // rdx
_QWORD *v9; // rax
__int64 v10; // rbx
v2 = *(_QWORD *)(a1 + 96);
if ( !v2 )
return;
v4 = (char *)sub_10005AD20((int *)(v2 + 8));
if ( v4 == a2 )
{
v6 = 0;
goto LABEL_20;
}
v5 = 0;
while ( 1 )
{
v6 = v2;
v7 = *a2;
if ( *a2 )
{
v8 = 0;
while ( v7 == v4[v8] && (_DWORD)v8 != 0x7FFFFFFF )
{
v7 = a2[++v8];
if ( !v7 )
{
if ( (_DWORD)v8 == 0x7FFFFFFF )
goto LABEL_19;
v4 += v8;
goto LABEL_11;
}
}
if ( (_DWORD)v8 == 0x7FFFFFFF )
break;
goto LABEL_14;
}
LABEL_11:
if ( !*v4 )
break;
LABEL_14:
v2 = *(_QWORD *)(v2 + 56);
if ( !v2 )
return;
v4 = (char *)sub_10005AD20((int *)(v2 + 8));
v5 = v6;
if ( v4 == a2 )
goto LABEL_20;
}
LABEL_19:
v6 = v5;
LABEL_20:
v9 = (_QWORD *)(v6 + 56);
if ( !v6 )
v9 = (_QWORD *)(a1 + 96);
*v9 = *(_QWORD *)(v2 + 56);
v10 = *(_QWORD *)(v2 + 64);
(**(void (__fastcall ***)(__int64))v2)(v2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 32LL))(v10, v2);
}