//
// sub_1800DC400 from 0x1800dc400 to 0x1800dc444 (68 bytes)
//
// 3 xrefs:
// > sub_1800E2620 @ 0x1800e29c3
// > sub_1800FD180 @ 0x1800fd1cf
// > ??> @ 0x1801ff54c
//
// 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 10:54:14 +0000
//
__int64 __fastcall sub_1800DC400(__int64 a1)
{
__int64 v2; // rcx
__int64 result; // rax
v2 = *(_QWORD *)(a1 + 8);
if ( !v2 )
return 0;
result = sub_180096490(v2, 0, 0, 4);
if ( !(_DWORD)result )
{
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 8) + 16LL))(*(_QWORD *)(a1 + 8));
if ( !(_DWORD)result )
{
*(_QWORD *)(a1 + 8) = 0;
return 0;
}
}
return result;
}