// // sub_BA09A0 from 0xba09a0 to 0xba0b70 (464 bytes) // // 5 xrefs: // > sub_BA0ED8 @ 0xba0f7c // > sub_BA1248 @ 0xba1334 // > sub_BA1248 @ 0xba1628 // > sub_BA1248 @ 0xba166c // > sub_BA1248 @ 0xba16c0 // // 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_BA09A0(__int64 a1) { _BOOL4 v2; // w20 __int64 v3; // x0 __int64 v4; // x0 int v5; // w5 __int64 v6; // x3 __int64 v7; // x2 __int64 v8; // x1 __int64 v9; // x0 int v10; // w4 v2 = *(_DWORD *)a1 == 0; time((time_t *)(a1 + 40)); v3 = sub_B982D0(**(_QWORD ***)(a1 + 16), nullptr, v2); if ( (v3 & 0x8000000000000000LL) == 0 ) { if ( v2 ) { v6 = *(_QWORD *)(a1 + 40); v4 = (v3 + 500) / 1000; v7 = v6 + v4; *(_QWORD *)(a1 + 48) = v6 + v4; v5 = (int)v4 / 5; if ( (int)v4 / 5 <= 0 ) v5 = 1; *(_DWORD *)(a1 + 36) = v5; if ( (int)v4 / v5 <= 0 ) *(_DWORD *)(a1 + 32) = 1; else *(_DWORD *)(a1 + 32) = (int)v4 / v5; if ( v5 <= 2 ) goto LABEL_6; } else { if ( v3 ) { v4 = (v3 + 500) / 1000; v5 = (int)v4 / 5; } else { v5 = 720; v4 = 3600; } v6 = *(_QWORD *)(a1 + 40); *(_DWORD *)(a1 + 36) = v5; v7 = v6 + v4; *(_QWORD *)(a1 + 48) = v6 + v4; if ( v5 <= 2 ) { LABEL_6: v8 = 3; v5 = 3; *(_DWORD *)(a1 + 36) = 3; goto LABEL_7; } } v8 = v5; if ( v5 > 50 ) { *(_DWORD *)(a1 + 36) = 50; v5 = 50; v9 = v4 / 50; v10 = v9; if ( (int)v9 > 0 ) goto LABEL_8; goto LABEL_17; } LABEL_7: v9 = v4 / v8; v10 = v9; if ( (int)v9 > 0 ) { LABEL_8: *(_DWORD *)(a1 + 32) = v9; LABEL_9: sub_B7B528( **(_QWORD **)(a1 + 16), "set timeouts for state %d; Total %ld, retry %d maxtry %d\n", *(_DWORD *)a1, v7 - v6, v10, v5); time((time_t *)(a1 + 56)); return 0; } LABEL_17: v10 = 1; *(_DWORD *)(a1 + 32) = 1; goto LABEL_9; } sub_B7B690(**(_QWORD **)(a1 + 16), "Connection time-out"); return 28; }
GD Web Decomp Icon

GD Web Decomp

Raw Source