//
// sub_1800DB6E0 from 0x1800db6e0 to 0x1800db848 (360 bytes)
//
// 5 xrefs:
// > sub_1800DB600 @ 0x1800db6b2
// > sub_1800DB6D0 @ 0x1800db6d7
// > ??> @ 0x18014c2b8
// > ??> @ 0x18014c2f0
// > ??> @ 0x1801c4c44
//
// 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 11:22:34 +0000
//
void *sub_1800DB6E0()
{
__int64 v0; // rax
__int64 i; // rax
int v2; // esi
__int64 v3; // rdi
_DWORD *v4; // rbx
void **v5; // rcx
v0 = qword_1801B3FE0;
for ( xmmword_1801B5290 = 0; qword_1801B3FE0; v0 = qword_1801B3FE0 )
sub_1800DC680(v0);
for ( i = qword_1801B3FD8; qword_1801B3FD8; i = qword_1801B3FD8 )
sub_1800DD410(i);
v2 = 0;
if ( dword_1801B3FF0 > 0 )
{
v3 = 0;
do
{
v4 = *(_DWORD **)((char *)qword_1801B3FE8 + v3);
if ( v4[54] )
sub_1800E2F30(*(_QWORD *)((char *)qword_1801B3FE8 + v3), v4 + 48);
sub_1800DBB00(v4);
++v2;
v3 += 8;
}
while ( v2 < dword_1801B3FF0 );
}
free(qword_1801B3FE8);
qword_1801B3FE8 = nullptr;
dword_1801B3FF0 = 0;
free(qword_1801B51F8);
qword_1801B51F8 = nullptr;
dword_1801B5200 = 0;
sub_1800E39D0();
sub_1800E2230();
v5 = (void **)qword_1801B3FD0;
for ( *(_DWORD *)&ModuleName = 0; qword_1801B3FD0; v5 = (void **)qword_1801B3FD0 )
{
qword_1801B3FD0 = *v5;
free(v5);
}
sub_1800DE0E0(&unk_1801B520C);
sub_1800DE0E0(&unk_1801B5204);
sub_1800DE0B0(&unk_1801B5218);
return memset(&ModuleName, 0, 0x26F0u);
}