//
// sub_1000CB720 from 0x1000cb720 to 0x1000cb7b7 (151 bytes)
//
// 2 xrefs:
// > sub_1000CB220 @ 0x1000cb6a4
// > ??> @ 0x1000cb70f
//
// 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_1000CB720(__int64 a1, __int64 a2)
{
_QWORD *v2; // rbx
_QWORD *v3; // rdi
_QWORD *v4; // r14
void *v5; // rdi
_QWORD *v6; // rdi
_QWORD *v7; // r14
void *v8; // rdi
v2 = *(_QWORD **)a1;
*(_QWORD *)a1 = a2;
if ( v2 )
{
if ( *(_BYTE *)(a1 + 16) == 1 )
{
v3 = (_QWORD *)v2[10];
if ( v3 )
{
do
{
v4 = (_QWORD *)*v3;
operator delete(v3);
v3 = v4;
}
while ( v4 );
}
v5 = (void *)v2[8];
v2[8] = 0;
if ( v5 )
operator delete(v5);
v6 = (_QWORD *)v2[5];
if ( v6 )
{
do
{
v7 = (_QWORD *)*v6;
operator delete(v6);
v6 = v7;
}
while ( v7 );
}
v8 = (void *)v2[3];
v2[3] = 0;
if ( v8 )
operator delete(v8);
}
operator delete(v2);
}
}