//
// sub_E05B78 from 0xe05b78 to 0xe05c54 (220 bytes)
//
// 5 xrefs:
// > sub_DE9150 @ 0xde91dc
// > sub_DEE160 @ 0xdee1ec
// > sub_DF19BC @ 0xdf1a94
// > sub_E204D8 @ 0xe2052c
// > sub_E20668 @ 0xe20734
//
// 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:33 +0000
//
char *__fastcall sub_E05B78(char *a1, __int64 *a2)
{
__int64 v2; // x6
__int64 v3; // x7
__int64 v4; // x4
__int64 v5; // x5
__int64 v6; // x19
_QWORD v8[4]; // [xsp+20h] [xbp+20h] BYREF
void *p; // [xsp+40h] [xbp+40h] BYREF
__int64 v10; // [xsp+48h] [xbp+48h]
__int64 v11; // [xsp+50h] [xbp+50h]
int v12; // [xsp+58h] [xbp+58h]
v2 = *a2;
v3 = a2[1];
v4 = a2[2];
v5 = a2[3];
p = nullptr;
v10 = 0;
v11 = 0;
v12 = 0;
v8[0] = v2;
v8[1] = v3;
v8[2] = v4;
v8[3] = v5;
if ( (unsigned int)sub_E0250C((__int64)&p, (unsigned int (*)(void))sub_E01B00, a1, v8) == -1 || v12 )
{
v6 = 0;
if ( !v11 )
return (char *)v6;
off_154A3C8(p);
return nullptr;
}
else
{
if ( v11 )
{
*((_BYTE *)p + v10) = 0;
return (char *)p;
}
return off_154A3D8(&byte_11B8890);
}
}