//
// sub_18000EC40 from 0x18000ec40 to 0x18000ecd6 (150 bytes)
//
// 3 xrefs:
// > ??> @ 0x18016c7d8
// > ??> @ 0x18016ca50
// > ??> @ 0x1801f6cd8
//
// 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:52:44 +0000
//
__int64 __fastcall sub_18000EC40(_DWORD *a1, _DWORD *a2, _DWORD *a3)
{
__int64 result; // rax
char v7; // [rsp+30h] [rbp+8h] BYREF
result = (*(__int64 (__fastcall **)(_DWORD *, char *))(*(_QWORD *)a1 + 152LL))(a1, &v7);
if ( !(_DWORD)result )
{
if ( (v7 & 0x10) != 0 )
{
if ( a2 )
{
*a2 = a1[32];
a2[1] = a1[33];
a2[2] = a1[34];
}
if ( a3 )
{
*a3 = a1[35];
a3[1] = a1[36];
a3[2] = a1[37];
}
return 0;
}
else
{
return 40;
}
}
return result;
}