//
// sub_100965780 from 0x100965780 to 0x1009657e1 (97 bytes)
//
// 10 xrefs:
// > ??> @ 0x100965764
// > ??> @ 0x1009659e7
// > ??> @ 0x100965bf1
// > ??> @ 0x100965de3
// > ??> @ 0x1009661c5
// > ??> @ 0x1009661ef
// > ??> @ 0x10096649b
// > ??> @ 0x100966755
// > ??> @ 0x100966772
// > ??> @ 0x1009668f7
//
// 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:38:47 +0000
//
void __fastcall sub_100965780(__int64 a1)
{
void *v2; // rdi
v2 = *(void **)(a1 + 96);
if ( v2 )
{
*(_QWORD *)(a1 + 104) = v2;
operator delete(v2);
}
if ( (*(_BYTE *)(a1 + 72) & 1) != 0 )
{
operator delete(*(void **)(a1 + 88));
if ( (*(_BYTE *)(a1 + 40) & 1) == 0 )
{
LABEL_5:
if ( (*(_BYTE *)(a1 + 16) & 1) == 0 )
return;
LABEL_9:
operator delete(*(void **)(a1 + 32));
return;
}
}
else if ( (*(_BYTE *)(a1 + 40) & 1) == 0 )
{
goto LABEL_5;
}
operator delete(*(void **)(a1 + 56));
if ( (*(_BYTE *)(a1 + 16) & 1) != 0 )
goto LABEL_9;
}