// // sub_B8AF6C from 0xb8af6c to 0xb8b070 (260 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // const char *__fastcall sub_B8AF6C(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; }
GD Web Decomp Icon

GD Web Decomp

Raw Source