//
// sub_1800E4FFC from 0x1800e4ffc to 0x1800e5094 (152 bytes)
//
// 2 xrefs:
// > sub_1800E5488 @ 0x1800e554c
// > ??> @ 0x1801c555c
//
// 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:38 +0000
//
bool __fastcall sub_1800E4FFC(__int64 a1)
{
_DWORD *v2; // rcx
unsigned __int64 v3; // r8
_DWORD *v4; // rdx
_DWORD *v5; // r9
unsigned __int64 v6; // rcx
if ( MEMORY[0x180000000] != 23117 )
return 0;
v2 = (_DWORD *)(0x180000000LL + MEMORY[0x18000003C]);
if ( *v2 != 17744 || *(_WORD *)(0x180000018LL + MEMORY[0x18000003C]) != 523 )
return 0;
v3 = a1 - 0x180000000LL;
v4 = (_DWORD *)((char *)v2 + *(unsigned __int16 *)(0x180000014LL + MEMORY[0x18000003C]) + 24);
v5 = &v4[10 * *(unsigned __int16 *)(0x180000006LL + MEMORY[0x18000003C])];
while ( v4 != v5 )
{
v6 = (unsigned int)v4[3];
if ( v3 >= v6 && v3 < (unsigned int)(v6 + v4[2]) )
return v4 && v4[9] >= 0;
v4 += 10;
}
v4 = nullptr;
return v4 && v4[9] >= 0;
}