//
// sub_100099B70 from 0x100099b70 to 0x100099c07 (151 bytes)
//
// 4 xrefs:
// > sub_100099670 @ 0x100099af4
// > ??> @ 0x100099b5f
// > sub_1005FC390 @ 0x1005fc814
// > ??> @ 0x1005fc87f
//
// 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:20:11 +0000
//
void __fastcall sub_100099B70(__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);
}
}