//
// sub_1800DC400 from 0x1800dc400 to 0x1800dc444 (68 bytes)
//
// 3 xrefs:
// > sub_1800E2620 @ 0x1800e29c3
// > sub_1800FD180 @ 0x1800fd1cf
// > ??> @ 0x1801ff54c
//
// 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
//
__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;
}