//
// sub_E01124 from 0xe01124 to 0xe01228 (260 bytes)
//
// 0 xrefs:
//
// 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:31 +0000
//
const char *__fastcall sub_E01124(const char *result)
{
const char *v1; // x20
size_t v2; // x21
int v3; // w23
int cp; // [xsp+48h] [xbp+48h] BYREF
_QWORD v5[2]; // [xsp+50h] [xbp+50h] BYREF
__int64 v6; // [xsp+60h] [xbp+60h]
__int64 v7; // [xsp+68h] [xbp+68h]
__int64 v8; // [xsp+70h] [xbp+70h]
char buf[256]; // [xsp+78h] [xbp+78h] BYREF
v1 = result;
if ( result )
{
v2 = strlen(result);
if ( v2 <= 0xF )
{
v3 = socket(2, 1, 0);
if ( v3 != -1 )
{
v5[0] = 0;
v5[1] = 0;
v6 = 0;
v7 = 0;
v8 = 0;
memcpy(v5, v1, v2 + 1);
LOWORD(v6) = 2;
if ( (ioctl(v3, 0x8915u, v5) & 0x80000000) == 0 )
{
cp = HIDWORD(v6);
inet_ntop((unsigned __int16)v6, &cp, buf, 0x100u);
close(v3);
return (_BYTE *)(&dword_0 + 1);
}
close(v3);
}
}
return nullptr;
}
return result;
}