//
// sub_1800DE350 from 0x1800de350 to 0x1800de45b (267 bytes)
//
// 3 xrefs:
// > sub_1800DA0D0 @ 0x1800da162
// > ??> @ 0x1801c4fb0
// > ??> @ 0x1801c4fbc
//
// 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:35 +0000
//
void sub_1800DE350()
{
unsigned int *v0; // rbx
__int64 v1; // rcx
int v2; // eax
_OWORD v3[5]; // [rsp+20h] [rbp-78h] BYREF
_BYTE v4[16]; // [rsp+70h] [rbp-28h] BYREF
v0 = (unsigned int *)&unk_1801B40F8;
do
{
if ( !*(v0 - 63) )
goto LABEL_11;
v1 = *(_QWORD *)v0;
if ( !*(_QWORD *)v0 )
{
if ( (unsigned int)qword_1801B60B0(v0[2], v4) != 1167 )
goto LABEL_11;
LABEL_10:
sub_1800DE7C0(v0 - 64);
goto LABEL_11;
}
memset(v3, 0, sizeof(v3));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 200LL))(v1);
v2 = (*(__int64 (__fastcall **)(_QWORD, __int64, _OWORD *))(**(_QWORD **)v0 + 72LL))(*(_QWORD *)v0, 80, v3);
if ( v2 == -2147024884 || v2 == -2147024866 )
{
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)v0 + 56LL))(*(_QWORD *)v0);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)v0 + 200LL))(*(_QWORD *)v0);
v2 = (*(__int64 (__fastcall **)(_QWORD, __int64, _OWORD *))(**(_QWORD **)v0 + 72LL))(*(_QWORD *)v0, 80, v3);
}
if ( v2 < 0 )
goto LABEL_10;
LABEL_11:
v0 += 72;
}
while ( (__int64)v0 <= (__int64)dword_1801B51D8 );
}