//
// sub_1800D39B0 from 0x1800d39b0 to 0x1800d3b18 (360 bytes)
//
// 5 xrefs:
// > sub_1800D38D0 @ 0x1800d3982
// > sub_1800D39A0 @ 0x1800d39a7
// > ??> @ 0x180142ac8
// > ??> @ 0x180142b00
// > ??> @ 0x1801ba59c
//
// 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 *sub_1800D39B0()
{
__int64 v0; // rax
__int64 i; // rax
int v2; // esi
__int64 v3; // rdi
_DWORD *v4; // rbx
void **v5; // rcx
v0 = qword_1801A9F60;
for ( xmmword_1801AB210 = 0; qword_1801A9F60; v0 = qword_1801A9F60 )
sub_1800D4950(v0);
for ( i = qword_1801A9F58; qword_1801A9F58; i = qword_1801A9F58 )
sub_1800D56E0(i);
v2 = 0;
if ( dword_1801A9F70 > 0 )
{
v3 = 0;
do
{
v4 = *(_DWORD **)((char *)Src + v3);
if ( v4[54] )
sub_1800DAFF0(*(_QWORD *)((char *)Src + v3), v4 + 48);
sub_1800D3DD0(v4);
++v2;
v3 += 8;
}
while ( v2 < dword_1801A9F70 );
}
free(Src);
Src = nullptr;
dword_1801A9F70 = 0;
free(qword_1801AB178);
qword_1801AB178 = nullptr;
dword_1801AB180 = 0;
sub_1800DBAC0();
sub_1800DA2E0();
v5 = (void **)qword_1801A9F50;
for ( *(_DWORD *)&ModuleName = 0; qword_1801A9F50; v5 = (void **)qword_1801A9F50 )
{
qword_1801A9F50 = *v5;
free(v5);
}
sub_1800D9980(&unk_1801AB18C);
sub_1800D9980(&unk_1801AB184);
sub_1800D9950(&unk_1801AB198);
return memset(&ModuleName, 0, 0x26F0u);
}