// // sub_100690EAC from 0x100690eac to 0x100691008 (348 bytes) // // 2 xrefs: // > sub_10067AEC4 @ 0x10067c158 // > sub_100682CAC @ 0x100682ddc // // 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 11:11:32 +0000 // __int64 __fastcall sub_100690EAC(__int64 a1, __int64 *a2) { _QWORD *v4; // x19 __darwin_time_t v5; // x0 int v6; // w1 __int64 v7; // x8 int v8; // w9 __int64 v9; // x10 __int64 v10; // x11 __int64 v11; // x22 __int64 v12; // x0 __int64 v13; // x22 __int64 v14; // x1 __int64 v15; // x9 __int64 v16; // x9 __int64 v17; // x8 __int64 result; // x0 v4 = *(_QWORD **)a1; v5 = sub_10066F074(); v7 = v4[107]; v8 = v7 > 0; v9 = v4[108]; if ( v9 > 0 ) v8 |= 2u; if ( v7 >= v9 ) v10 = v4[108]; else v10 = v4[107]; if ( v8 != 2 ) v9 = 300000; if ( v8 == 3 ) v9 = v10; if ( v8 == 1 ) v11 = v4[107]; else v11 = v9; v12 = sub_10066F09C(v5, v6, v4[266], v4[267]); if ( v11 == v12 ) v13 = -1; else v13 = v11 - v12; if ( v13 < 0 ) { sub_10067889C((__int64)v4, "Connection time-out"); return 28; } else { *(_DWORD *)(a1 + 784) = sub_10066F734(*a2); *(_QWORD *)(a1 + 104) = *a2; *(_QWORD *)(a1 + 112) = 0; *(_QWORD *)(a1 + 472) = -1; sub_100692A04(*(_QWORD *)a1, 200); v14 = *(_QWORD *)(a1 + 104); if ( v13 >= 0 ) v15 = v13; else v15 = v13 + 1; v16 = v15 >> 1; if ( *(_QWORD *)(v14 + 40) ) v17 = v16; else v17 = v13; *(_QWORD *)(a1 + 792) = v17; if ( v14 ) { while ( 1 ) { LODWORD(result) = sub_100691008(a1, v14, a1 + 472); if ( !(_DWORD)result ) break; v14 = *(_QWORD *)(*(_QWORD *)(a1 + 104) + 40LL); *(_QWORD *)(a1 + 104) = v14; if ( !v14 ) goto LABEL_30; } LODWORD(result) = 0; } else { LODWORD(result) = 7; } LABEL_30: if ( *(_DWORD *)(a1 + 472) == -1 ) { if ( (_DWORD)result ) return (unsigned int)result; else return 7; } else { ++v4[4476]; return 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source