// // sub_824308 from 0x824308 to 0x8243fe (246 bytes) // // 1 xrefs: // > sub_84AC80 @ 0x84ac94 // // 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:53 +0000 // int __fastcall sub_824308(_DWORD *a1, int a2, int a3) { int v4; // r4 int v7; // r6 void **v8; // r9 int v9; // r3 int v10; // r0 int v11; // r1 __int64 v12; // r2 FILE *v14; // r0 v4 = *a1; v7 = *(_DWORD *)(*a1 + 332); sub_8280FC(*a1, "Curl_http_done: called premature == %d\n", a3); sub_841CA4(a1); a1[187] = *(_DWORD *)(v4 + 400); a1[188] = *(_DWORD *)(v4 + 488); if ( !v7 ) return 0; v8 = *(void ***)(v7 + 92); if ( v8 ) { off_D200B0(*v8); off_D200B0(v8); *(_DWORD *)(v7 + 92) = 0; } v9 = *(_DWORD *)(v4 + 636); if ( v9 == 3 ) { *(_QWORD *)(v4 + 112) = *(_QWORD *)(v7 + 32) + *(_QWORD *)(v7 + 40); sub_822060((void ***)v7); v14 = *(FILE **)(v7 + 56); if ( v14 ) { fclose(v14); *(_DWORD *)(v7 + 56) = 0; } LABEL_6: if ( !a2 ) goto LABEL_7; return a2; } if ( v9 != 4 ) goto LABEL_6; *(_QWORD *)(v4 + 112) = *(_QWORD *)(v7 + 32) + *(_QWORD *)(v7 + 40); if ( a2 ) return a2; LABEL_7: if ( a3 ) return 0; if ( *((_BYTE *)a1 + 628) ) return 0; if ( *(_BYTE *)(v4 + 937) ) return 0; v10 = *(_DWORD *)(v4 + 128); v11 = *(_DWORD *)(v4 + 132); v12 = *(_QWORD *)(v7 + 32) + v10 - v11; if ( HIDWORD(v12) - (*(_DWORD *)(v7 + 32) + v10 == v11) < 0 == __OFSUB__( HIDWORD(v12), 0, *(_DWORD *)(v7 + 32) + v10 != v11) ) return 0; sub_828178(v4, "Empty reply from server"); return 52; }
GD Web Decomp Icon

GD Web Decomp

Raw Source