//
// sub_9E740C from 0x9e740c to 0x9e7488 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77a50
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:24 +0000
//
_DWORD *__fastcall sub_9E740C(_DWORD *result)
{
_DWORD *v1; // r5
_DWORD *v2; // r4
int v3; // r0
if ( result )
{
v1 = (_DWORD *)result[8];
if ( result[4] )
{
v2 = result;
v3 = result[7];
if ( v3 != -1 )
{
if ( *v1 == 5 )
{
shutdown(v3, 2);
v3 = v2[7];
}
BIO_closesocket(v3);
v2[7] = -1;
}
BIO_CONNECT_free((int)v1);
v2[8] = 0;
v2[5] = 0;
v2[3] = 0;
return &dword_0 + 1;
}
else
{
return &dword_0 + 1;
}
}
return result;
}