// // sub_61AF0 from 0x61af0 to 0x61be8 (248 bytes) // // 1 xrefs: // > sub_63AAC @ 0x63bb8 // // 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 12:13:53 +0000 // __int64 __fastcall sub_61AF0(unsigned int a1, char a2, _QWORD *a3) { int v6; // w0 int v7; // w20 unsigned int v8; // w22 struct sockaddr addr; // [xsp+8h] [xbp-38h] BYREF int optval; // [xsp+1Ch] [xbp-24h] BYREF v6 = socket(2, 1, 0); if ( v6 == -1 ) return 43; v7 = v6; v8 = sub_61878(v6, a2 & 1); if ( v8 ) { LABEL_9: close(v7); return v8; } optval = 1; if ( setsockopt(v7, 1, 2, &optval, 4u) == -1 || (*(_QWORD *)&addr.sa_data[6] = 0, addr.sa_family = 2, *(_WORD *)&addr.sa_data[4] = 0, *(_DWORD *)addr.sa_data = bswap32(a1) >> 16, bind(v7, &addr, 0x10u) == -1) || listen(v7, 3) == -1 ) { v8 = 43; goto LABEL_9; } v8 = 0; *a3 = v7; return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source