//
// sub_E10A28 from 0xe10a28 to 0xe10b94 (364 bytes)
//
// 2 xrefs:
// > sub_E0AE1C @ 0xe0b044
// > sub_E10B94 @ 0xe10b9c
//
// This function is hookable on this platform (idp: arm, 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 13:09:38 +0000
//
char **__fastcall sub_E10A28(int a1, unsigned int a2)
{
char **result; // x0
char **v5; // x19
__int64 v6; // x20
_QWORD *v7; // x22
char *v8; // x0
char *v9; // x0
__int64 v10; // x0
result = (char **)off_154A3E0(1u, 0x180u);
v5 = result;
if ( result )
{
*result = (_BYTE *)(&stru_BAB08 + 22);
v6 = (__int64)(result + 10);
if ( (unsigned int)sub_DE7CD8((__int64)(result + 10)) )
{
v7 = v5 + 25;
}
else
{
v7 = v5 + 25;
if ( !(unsigned int)sub_E0F944(v5 + 17, a1, (char *)sub_E100D0, (char *)sub_E100BC, (char *)sub_E1009C)
&& !(unsigned int)sub_E25884(v5 + 25, a2) )
{
v8 = (char *)sub_E0F590((__int64)nullsub_7);
v5[4] = v8;
if ( v8 )
{
v9 = (char *)sub_E0F590((__int64)nullsub_7);
v5[5] = v9;
if ( v9 )
{
v10 = sub_E0ACDC();
v5[35] = (char *)v10;
if ( v10 )
{
*(_QWORD *)(v10 + 96) = v5;
*(_QWORD *)(v10 + 2768) = v7;
v5[36] = (char *)-1LL;
v5[39] = &byte_5;
return v5;
}
}
}
}
}
sub_E0FD54((__int64)(v5 + 17));
sub_E0FD54(v6);
sub_E258A0(v7);
sub_DF954C((__int64)v5[35]);
v5[35] = nullptr;
sub_E0F748(v5[4], 0);
sub_E0F748(v5[5], 0);
off_154A3C8(v5);
return nullptr;
}
return result;
}