//
// sub_100554DB0 from 0x100554db0 to 0x100554f20 (368 bytes)
//
// 2 xrefs:
// > sub_1005548D0 @ 0x100554964
// > sub_1008C9690 @ 0x1008c96b1
//
// 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 12:32:05 +0000
//
_BYTE *__fastcall sub_100554DB0(__int64 a1)
{
_BYTE *result; // rax
if ( (*(_BYTE *)(a1 + 1544) & 1) != 0 )
{
result = *(_BYTE **)(a1 + 1560);
*result = 0;
*(_QWORD *)(a1 + 1552) = 0;
if ( (*(_BYTE *)(a1 + 1568) & 1) != 0 )
{
LABEL_3:
result = *(_BYTE **)(a1 + 1584);
*result = 0;
*(_QWORD *)(a1 + 1576) = 0;
if ( (*(_BYTE *)(a1 + 1592) & 1) != 0 )
goto LABEL_4;
goto LABEL_10;
}
}
else
{
*(_WORD *)(a1 + 1544) = 0;
if ( (*(_BYTE *)(a1 + 1568) & 1) != 0 )
goto LABEL_3;
}
*(_WORD *)(a1 + 1568) = 0;
if ( (*(_BYTE *)(a1 + 1592) & 1) != 0 )
{
LABEL_4:
result = *(_BYTE **)(a1 + 1608);
*result = 0;
*(_QWORD *)(a1 + 1600) = 0;
if ( (*(_BYTE *)(a1 + 1616) & 1) != 0 )
goto LABEL_5;
goto LABEL_11;
}
LABEL_10:
*(_WORD *)(a1 + 1592) = 0;
if ( (*(_BYTE *)(a1 + 1616) & 1) != 0 )
{
LABEL_5:
result = *(_BYTE **)(a1 + 1632);
*result = 0;
*(_QWORD *)(a1 + 1624) = 0;
if ( (*(_BYTE *)(a1 + 1664) & 1) != 0 )
goto LABEL_6;
LABEL_12:
*(_WORD *)(a1 + 1664) = 0;
if ( (*(_BYTE *)(a1 + 1688) & 1) != 0 )
goto LABEL_7;
LABEL_13:
*(_WORD *)(a1 + 1688) = 0;
goto LABEL_14;
}
LABEL_11:
*(_WORD *)(a1 + 1616) = 0;
if ( (*(_BYTE *)(a1 + 1664) & 1) == 0 )
goto LABEL_12;
LABEL_6:
result = *(_BYTE **)(a1 + 1680);
*result = 0;
*(_QWORD *)(a1 + 1672) = 0;
if ( (*(_BYTE *)(a1 + 1688) & 1) == 0 )
goto LABEL_13;
LABEL_7:
result = *(_BYTE **)(a1 + 1704);
*result = 0;
*(_QWORD *)(a1 + 1696) = 0;
LABEL_14:
*(_BYTE *)(a1 + 1712) = 0;
*(_BYTE *)(a1 + 1744) = 0;
*(_OWORD *)(a1 + 1640) = 0;
*(_DWORD *)(a1 + 1656) = 0;
return result;
}