// // sub_82A924 from 0x82a924 to 0x82aa58 (308 bytes) // // 4 xrefs: // > sub_82AA64 @ 0x82aae8 // > sub_82AA64 @ 0x82ab24 // > sub_82CBD8 @ 0x82ce48 // > sub_82CBD8 @ 0x82cfca // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:01:59 +0000 // int __fastcall sub_82A924(_DWORD *a1, int a2, int *a3) { int v5; // r10 int v6; // r7 int *v7; // r6 int v8; // r5 int v9; // r0 int v10; // r9 _BOOL4 v11; // r1 size_t *v12; // r9 size_t v13; // r11 int result; // r0 int v15; // r3 int v16; // r0 _DWORD *v17; // r0 int v18; // [sp+Ch] [bp-18h] int v19; // [sp+14h] [bp-10h] BYREF int v20; // [sp+18h] [bp-Ch] BYREF int v21; // [sp+1Ch] [bp-8h] BYREF v5 = *(_DWORD *)(a2 + 416); v6 = a2 + 1088; v7 = a3; v18 = *(_DWORD *)a2; v20 = 0; if ( a3 ) *a3 = 0; else v7 = &v20; v8 = 0; *a1 = 0; while ( 2 ) { if ( *v7 ) { LABEL_17: *(_BYTE *)(a2 + 1104) = 0; return 0; } else { while ( 1 ) { v9 = sub_84A5A4(v6); v10 = v9; if ( v9 <= 0 ) { sub_828178(v18, "FTP response timeout"); return 28; } if ( v9 >= 1000 ) v10 = 1000; v11 = v8 <= 1; if ( !*(_DWORD *)(a2 + 1088) ) v11 = 0; if ( !v11 && !sub_83E15C(a2) ) { v16 = sub_842E08(v5, -1, -1, v10); if ( v16 == -1 ) { v17 = (_DWORD *)_errno(); sub_828178(v18, "FTP response aborted due to select/poll error: %d", *v17); return 56; } if ( !v16 ) break; } v12 = *(size_t **)(a2 + 1132); v13 = *v12; result = sub_84A958(v5, v6, &v21, &v19); v15 = v21; *(_DWORD *)(v13 + 34780) = v21; *v7 = v15; if ( v15 == 421 ) { sub_8280FC(v13, "We got a 421 - timeout!\n"); result = 28; v12[298] = 0; LABEL_24: *(_BYTE *)(a2 + 1104) = 0; return result; } if ( result ) goto LABEL_24; if ( v19 || (++v8, !*(_DWORD *)(a2 + 1088)) ) v8 = 0; *a1 += v19; if ( *v7 ) goto LABEL_17; } if ( !sub_820F7C((int *)a2) ) continue; return 42; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source