// // sub_1004F5810 from 0x1004f5810 to 0x1004f5910 (256 bytes) // // 1 xrefs: // > sub_1004F59C4 @ 0x1004f5ab8 // // 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 // __int64 __fastcall sub_1004F5810(int a1) { int v2; // w8 __int64 v3; // x20 int v5; // [xsp+0h] [xbp-20h] BYREF int v6; // [xsp+4h] [xbp-1Ch] BYREF int v7; // [xsp+8h] [xbp-18h] BYREF int v8; // [xsp+Ch] [xbp-14h] BYREF v8 = 1; if ( setsockopt(a1, 0xFFFF, 8, &v8, 4u) == -1 ) return 43; v7 = 10; if ( setsockopt(a1, 6, 258, &v7, 4u) == -1 ) return 43; if ( dword_100853294 / v7 <= 1999 ) v2 = 1; else v2 = dword_100853294 / v7 / 1000; v6 = v2; v3 = 43; if ( setsockopt(a1, 6, 16, &v6, 4u) != -1 ) { v5 = v6; if ( setsockopt(a1, 6, 257, &v5, 4u) == -1 ) return 43; else return 0; } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source