// // sub_E0F380 from 0xe0f380 to 0xe0f4cc (332 bytes) // // 1 xrefs: // > sub_DF2E60 @ 0xdf3148 // // 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:38 +0000 // __int64 __fastcall sub_E0F380(__int64 *a1, __int64 a2, int *a3, int *a4) { int *v4; // x19 int v6; // w22 int v8; // w25 __int64 v9; // x23 int v10; // w24 unsigned int v11; // w4 _DWORD *v12; // x26 const void *v13; // x1 __int64 (__fastcall *v14)(_QWORD, _QWORD, int *); // x4 int v15; // w0 bool v16; // zf __int64 result; // x0 int v18; // w1 const void *v19; // x1 char v20; // [xsp+68h] [xbp+68h] BYREF v4 = a3; if ( !a3 ) v4 = (int *)&v20; v6 = *((_DWORD *)a1 + 43); v8 = *(_DWORD *)(a2 + 4); v9 = *a1; *v4 = v8; v4[1] = v6; if ( v6 == 2 ) v10 = 17; else v10 = *(_DWORD *)(a2 + 12); v11 = *(_DWORD *)(a2 + 16); v4[2] = v10; if ( v11 > 0x80 ) { v12 = v4 + 4; v19 = *(const void **)(a2 + 32); v4[3] = 128; memcpy(v4 + 4, v19, 0x80u); v14 = *(__int64 (__fastcall **)(_QWORD, _QWORD, int *))(v9 + 776); if ( v14 ) goto LABEL_7; LABEL_14: v15 = socket(v8, v6, v10); *a4 = v15; goto LABEL_8; } v12 = v4 + 4; v13 = *(const void **)(a2 + 32); v4[3] = v11; memcpy(v4 + 4, v13, v11); v14 = *(__int64 (__fastcall **)(_QWORD, _QWORD, int *))(v9 + 776); if ( !v14 ) goto LABEL_14; LABEL_7: v15 = v14(*(_QWORD *)(v9 + 784), 0, v4); *a4 = v15; LABEL_8: v16 = v15 == -1; result = 7; if ( !v16 ) { v18 = *((_DWORD *)a1 + 42); result = 0; if ( v18 ) { if ( *v4 == 10 ) v12[6] = v18; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source