//
// sub_18010E650 from 0x18010e650 to 0x18010e79c (332 bytes)
//
// 4 xrefs:
// > sub_180110290 @ 0x18011079a
// > ??> @ 0x180190b5c
// > ??> @ 0x180190b6c
// > ??> @ 0x180201a84
//
// 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_18010E650(__int64 a1, unsigned int a2, __int64 a3, __int64 a4, int a5, int a6)
{
_DWORD *v7; // rbx
__int64 result; // rax
bool v9; // r8
bool v10; // cl
bool v11; // dl
bool v12; // al
bool v13; // cl
unsigned int v14; // r15d
__int64 v15; // r12
__int64 v16; // r14
__int64 v17; // rbp
_DWORD *v18; // rsi
_QWORD *v19; // rdi
int v20; // eax
v7 = *(_DWORD **)(a1 + 8);
if ( a6 == 1 )
{
if ( a5 )
return 11;
v9 = 0;
v10 = 0;
v11 = 0;
if ( !v7[5] )
v10 = *v7 == 0;
v12 = v10;
v13 = 0;
if ( !v7[10] )
v11 = v12;
if ( !v7[15] )
v13 = v11;
if ( !v7[20] )
v9 = v13;
if ( v9 )
return 6;
}
else
{
v14 = **(_DWORD **)(a3 + 8);
v15 = **(_QWORD **)(a3 + 24);
v16 = **(_QWORD **)(a4 + 24);
result = sub_180110050(a1, v14);
if ( (_DWORD)result )
return result;
v17 = 5;
v18 = v7 + 34;
v19 = v7 + 46;
do
{
if ( *v7 )
{
((void (__fastcall *)(__int64, __int64, _QWORD, _DWORD *, _DWORD *, _QWORD, unsigned int))*(v19 - 10))(
v15,
v16,
a2,
v18 - 5,
v18,
*v19,
v14);
v20 = *((_DWORD *)v19 - 3);
v15 = v16;
*(_OWORD *)((char *)v19 - 68) = *(_OWORD *)((char *)v19 - 28);
*((_DWORD *)v19 - 13) = v20;
*(_OWORD *)v18 = 0;
v18[4] = 0;
}
v18 += 24;
v7 += 5;
v19 += 12;
--v17;
}
while ( v17 );
}
return 0;
}