//
// sub_1003CA520 from 0x1003ca520 to 0x1003ca59d (125 bytes)
//
// 1 xrefs:
// > ??> @ 0x1003d212e
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_1003CA520(__int64 a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // r14
void *v4; // rdi
_QWORD *v5; // rdi
_QWORD *v6; // r14
void *v7; // rdi
v2 = *(_QWORD **)(a1 + 56);
if ( v2 )
{
do
{
v3 = (_QWORD *)*v2;
operator delete(v2);
v2 = v3;
}
while ( v3 );
}
v4 = *(void **)(a1 + 40);
*(_QWORD *)(a1 + 40) = 0;
if ( v4 )
operator delete(v4);
v5 = *(_QWORD **)(a1 + 16);
if ( v5 )
{
do
{
v6 = (_QWORD *)*v5;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
v7 = *(void **)a1;
*(_QWORD *)a1 = 0;
if ( v7 )
operator delete(v7);
}