// // sub_B98EEC from 0xb98eec to 0xb9905c (368 bytes) // // 2 xrefs: // > sub_B7E980 @ 0xb7eba8 // > sub_B87B70 @ 0xb87ce0 // // 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_B98EEC(__int64 a1, __int64 *a2) { _QWORD *v2; // x22 __time_t v5; // x0 __int64 v6; // x1 __int64 v7; // x20 __int64 v8; // x3 int v9; // w2 __int64 v10; // x20 int v11; // w0 __int64 v12; // x3 _QWORD *v13; // x0 __int64 v14; // x1 __int64 result; // x0 v2 = *(_QWORD **)a1; v5 = sub_B70B94(); v7 = v2[107]; v8 = v2[108]; v9 = v7 > 0; if ( v8 > 0 ) v9 |= 2u; if ( v9 == 2 ) { v7 = v2[108]; } else if ( v9 == 3 ) { if ( v7 > v8 ) v7 = v2[108]; } else if ( v9 != 1 ) { v7 = 300000; } v10 = v7 - sub_B70BFC(v5, v6, v2[315], v2[316]); if ( v10 <= 0 ) { sub_B7B690((__int64)v2, "Connection time-out"); return 28; } v11 = sub_B711D4(*a2); v12 = *a2; *(_DWORD *)(a1 + 1008) = v11; v13 = *(_QWORD **)a1; *(_DWORD *)(a1 + 616) = -1; *(_DWORD *)(a1 + 620) = -1; *(_QWORD *)(a1 + 104) = v12; *(_QWORD *)(a1 + 112) = 0; sub_B9B94C(v13, 200); v14 = *(_QWORD *)(a1 + 104); if ( *(_QWORD *)(v14 + 40) ) v10 >>= 1; *(_QWORD *)(a1 + 1016) = v10; do { result = sub_B97550(a1, v14, (unsigned int *)(a1 + 616)); if ( !(_DWORD)result ) { if ( *(_DWORD *)(a1 + 616) == -1 ) return 7; LABEL_14: result = 0; ++v2[4533]; return result; } v14 = *(_QWORD *)(*(_QWORD *)(a1 + 104) + 40LL); *(_QWORD *)(a1 + 104) = v14; } while ( v14 ); if ( *(_DWORD *)(a1 + 616) != -1 ) goto LABEL_14; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source