//
// sub_E1A994 from 0xe1a994 to 0xe1ab00 (364 bytes)
//
// 1 xrefs:
// > sub_DE7D64 @ 0xde7eac
//
// 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:43 +0000
//
void **__fastcall sub_E1A994(char *cp, unsigned __int16 a2)
{
void **result; // x0
void **v5; // x19
char *v6; // x0
char *v7; // x22
void **v8; // x21
int buf; // [xsp+40h] [xbp+40h] BYREF
_BYTE v10[16]; // [xsp+48h] [xbp+48h] BYREF
if ( inet_pton(2, cp, &buf) <= 0 )
{
if ( inet_pton(10, cp, v10) <= 0 )
return nullptr;
else
return sub_E1A840(10, (__int64)v10, cp, a2);
}
else
{
result = (void **)off_154A3C0(0x40u);
v5 = result;
if ( result )
{
v6 = off_154A3D8(cp);
v7 = v6;
if ( v6 )
{
*((_DWORD *)v5 + 8) = buf;
*((_DWORD *)v5 + 4) = 2;
v5[3] = v5 + 6;
v5[6] = v5 + 4;
*v5 = v6;
*((_DWORD *)v5 + 5) = 4;
v5[1] = nullptr;
v5[7] = nullptr;
v8 = sub_E1A614((__int64)v5, a2);
off_154A3C8(v7);
off_154A3C8(v5);
return v8;
}
else
{
off_154A3C8(v5);
return nullptr;
}
}
}
return result;
}