// // sub_1005869FC from 0x1005869fc to 0x100586abc (192 bytes) // // 1 xrefs: // > sub_1005834D0 @ 0x10058375c // // 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_1005869FC(__int64 a1, _QWORD *a2, _BYTE *a3, __int64 a4, unsigned int a5, __int64 a6) { unsigned int v9; // w8 _QWORD *v10; // x11 if ( a5 < 8 ) { LABEL_5: sub_1005524A4(*(_QWORD *)a6, "NPN, no overlap, use HTTP1.1\n"); *a2 = "http/1.1"; *a3 = 8; } else { v9 = 0; while ( 1 ) { v10 = (_QWORD *)(a4 + v9 + 1); if ( *v10 == 0x312E312F70747468LL ) break; v9 += *(unsigned __int8 *)(a4 + v9) + 1; if ( v9 + 8 > a5 ) goto LABEL_5; } *a2 = v10; *a3 = *(_BYTE *)(a4 + v9); sub_1005524A4(*(_QWORD *)a6, "NPN, negotiated HTTP1.1\n"); } *(_DWORD *)(a6 + 1608) = 2; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source