//
// sub_100613F70 from 0x100613f70 to 0x100614058 (232 bytes)
//
// 2 xrefs:
// > sub_1006140D0 @ 0x1006140d5
// > sub_1006140E0 @ 0x1006140e9
//
// 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:34:36 +0000
//
__int64 *__fastcall sub_100613F70(__int64 a1)
{
_QWORD **v2; // r14
_QWORD *v3; // r15
void *v4; // rdi
_QWORD **v5; // r14
_QWORD *v6; // r15
void *v7; // rdi
*(_QWORD *)a1 = off_100B7FCC0;
qword_100BE5A80 = 0;
sub_100378140(a1 + 160, *(_QWORD **)(a1 + 168));
sub_100378140(a1 + 136, *(_QWORD **)(a1 + 144));
v2 = *(_QWORD ***)(a1 + 112);
if ( v2 )
{
do
{
v3 = *v2;
sub_10001ADF0((__int64)(v2 + 3), v2[4]);
operator delete(v2);
v2 = (_QWORD **)v3;
}
while ( v3 );
}
v4 = *(void **)(a1 + 96);
*(_QWORD *)(a1 + 96) = 0;
if ( v4 )
operator delete(v4);
v5 = *(_QWORD ***)(a1 + 72);
if ( v5 )
{
do
{
v6 = *v5;
sub_10001ADF0((__int64)(v5 + 3), v5[4]);
operator delete(v5);
v5 = (_QWORD **)v6;
}
while ( v6 );
}
v7 = *(void **)(a1 + 56);
*(_QWORD *)(a1 + 56) = 0;
if ( v7 )
operator delete(v7);
return sub_10047FF60(a1);
}