//
// sub_1004DBB90 from 0x1004dbb90 to 0x1004dbc3e (174 bytes)
//
// 2 xrefs:
// > ??> @ 0x1004db997
// > ??> @ 0x1004db9bd
//
// 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:31:16 +0000
//
void __fastcall sub_1004DBB90(void **a1)
{
char *v2; // r14
char *v3; // r15
void *v4; // rdi
void *v5; // rdi
char *v6; // r14
char *v7; // r15
void *v8; // rdi
void *v9; // rdi
v2 = (char *)a1[3];
if ( v2 )
{
v3 = (char *)a1[4];
v4 = a1[3];
if ( v3 != v2 )
{
do
{
v5 = *((void **)v3 - 3);
if ( v5 )
{
*((_QWORD *)v3 - 2) = v5;
operator delete(v5);
}
v3 -= 24;
}
while ( v3 != v2 );
v4 = a1[3];
}
a1[4] = v2;
operator delete(v4);
}
v6 = (char *)*a1;
if ( *a1 )
{
v7 = (char *)a1[1];
v8 = *a1;
if ( v7 != v6 )
{
do
{
v9 = *((void **)v7 - 3);
if ( v9 )
{
*((_QWORD *)v7 - 2) = v9;
operator delete(v9);
}
v7 -= 24;
}
while ( v7 != v6 );
v8 = *a1;
}
a1[1] = v6;
operator delete(v8);
}
}