// // sub_100685F44 from 0x100685f44 to 0x1006861d4 (656 bytes) // // 10 xrefs: // > sub_10068D864 @ 0x10068d8ac // > sub_100692BEC @ 0x100692d7c // > sub_100693C98 @ 0x100693f34 // > sub_100693C98 @ 0x10069403c // > sub_100693C98 @ 0x1006941e0 // > sub_100693C98 @ 0x100694524 // > sub_100693C98 @ 0x1006945c0 // > sub_100693C98 @ 0x100694878 // > sub_100693C98 @ 0x1006948d0 // > sub_100693C98 @ 0x100694988 // // 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:25 +0000 // __int64 __fastcall sub_100685F44(size_t **a1, __int64 a2, __int64 a3) { size_t *v6; // x21 size_t v7; // x19 __int64 v8; // x22 __int64 (__fastcall *v9)(size_t *, __int64, __int64); // x8 unsigned int v10; // w8 _QWORD *v11; // x1 __int64 v12; // x9 unsigned __int64 v13; // x8 __int64 *v14; // x0 __int64 *v15; // x23 const char **v16; // x9 v6 = *a1; v7 = **a1; if ( *(_BYTE *)(v7 + 35652) ) return 0; sub_100682978(**a1, (__int64)v6); off_1009E5FD8(*(void **)(v7 + 504)); *(_QWORD *)(v7 + 504) = 0; off_1009E5FD8(*(void **)(v7 + 496)); *(_QWORD *)(v7 + 496) = 0; if ( (unsigned int)a2 <= 0x2A && ((1LL << a2) & 0x40004800000LL) != 0 ) a3 = 1; v9 = *(__int64 (__fastcall **)(size_t *, __int64, __int64))(v6[100] + 24); if ( v9 ) LODWORD(a2) = v9(v6, a2, a3); v8 = 42; if ( (_DWORD)a2 != 42 ) { if ( (unsigned int)sub_100670304((__int64 *)v6) ) v10 = 42; else v10 = a2; if ( (_DWORD)a2 ) v8 = (unsigned int)a2; else v8 = v10; } if ( (a3 & 1) == 0 && *(_QWORD *)(v6[115] + 24) + *(_QWORD *)(v6[116] + 24) && !*(_BYTE *)(v7 + 1322) && !*((_BYTE *)v6 + 737) ) { return 0; } *(_BYTE *)(v7 + 35652) = 1; v11 = (_QWORD *)v6[11]; if ( v11 ) { sub_10066FE78(v7, v11); v6[11] = 0; } off_1009E5FD8(*(void **)(v7 + 35200)); *(_QWORD *)(v7 + 35200) = 0; if ( (!*(_BYTE *)(v7 + 1322) || *((_DWORD *)v6 + 244) == 2 || *((_DWORD *)v6 + 252) == 2) && ((unsigned int)a3 | (*((_BYTE *)v6 + 737) != 0)) != 1 ) { v12 = *(_QWORD *)(v7 + 96); v13 = *(_QWORD *)(v12 + 288); if ( (v13 & 0x8000000000000000LL) != 0 ) v13 = 4LL * *(int *)(v12 + 24); *((_BYTE *)v6 + 72) = 0; if ( v13 ) { if ( *(_QWORD *)(*(_QWORD *)(v7 + 2328) + 48LL) <= v13 ) { v15 = nullptr; } else { sub_10067860C(v7, "Connection cache is full, closing the oldest one.\n"); v14 = (__int64 *)sub_100686720(*(_QWORD *)(v7 + 2328)); v15 = v14; if ( v14 ) { *v14 = v7; sub_1006825B8(v14, 0); } else { v15 = nullptr; } } } else { v15 = nullptr; } if ( v15 == (__int64 *)v6 ) { *(_QWORD *)(v7 + 2360) = 0; } else { *(_QWORD *)(v7 + 2360) = v6; if ( *((_BYTE *)v6 + 740) ) v16 = (const char **)(v6 + 29); else v16 = (const char **)(v6 + 25); sub_10067860C(v7, "Connection #%ld to host %s left intact\n", v6[10], *v16); } } else { sub_1006825B8((__int64 *)v6, a3); } *a1 = nullptr; off_1009E5FD8(*(void **)(v7 + 536)); *(_QWORD *)(v7 + 536) = 0; off_1009E5FD8(*(void **)(v7 + 504)); *(_QWORD *)(v7 + 504) = 0; return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source