//
// sub_E285F4 from 0xe285f4 to 0xe287b8 (452 bytes)
//
// 1 xrefs:
// > sub_E24FEC @ 0xe25458
//
// 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:50 +0000
//
__int64 __fastcall sub_E285F4(__int64 a1, char *a2, const char *a3, char *a4, const char **a5, size_t *a6)
{
size_t v11; // x22
int v12; // w0
__int64 *v13; // x20
char *v14; // x0
char *v15; // x21
unsigned int v16; // w20
int v18; // w0
_BYTE v19[16]; // [xsp+A8h] [xbp+58h] BYREF
if ( a2 )
{
v11 = strlen(a2);
strlen(a4);
nullsub_10();
v13 = sub_E21C8C((__int64)&off_1532960, (__int64)a4, v12);
if ( !v13 )
return 27;
if ( v11 )
{
nullsub_10();
sub_E21E24(v13);
}
}
else
{
strlen(a4);
nullsub_10();
v13 = sub_E21C8C((__int64)&off_1532960, (__int64)a4, v18);
if ( !v13 )
return 27;
}
sub_E21E48(v13, (__int64)v19);
v14 = sub_E05A38(
"%s %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
a3,
v19[0],
v19[1],
v19[2],
v19[3],
v19[4],
v19[5],
v19[6],
v19[7],
v19[8],
v19[9],
v19[10],
v19[11],
v19[12],
v19[13],
v19[14],
v19[15]);
v15 = v14;
if ( v14 )
{
v16 = sub_DE724C(a1, v14, 0, a5, a6);
off_154A3C8(v15);
return v16;
}
return 27;
}