// // sub_849394 from 0x849394 to 0x8494d0 (316 bytes) // // 0 xrefs: // // 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:02:26 +0000 // int __fastcall sub_849394(int *a1, int a2) { int v3; // r3 int v4; // r5 int v5; // r4 int result; // r0 int v7; // r9 int v8; // r10 char *v9; // r11 int v10; // r4 int v11; // r3 _BOOL4 v12; // r3 __time_t v13; // r1 __time_t v14[3]; // [sp+8h] [bp-14h] BYREF int v15; // [sp+14h] [bp-8h] BYREF v3 = *a1; v4 = *(_DWORD *)(*a1 + 332); if ( !v4 ) return 0; if ( !a1[283] ) return 0; v5 = a2; if ( a2 ) { sub_83E124((int)a1, 1); LABEL_5: off_D200B0(*(void **)(v4 + 4)); result = v5; *(_DWORD *)(v4 + 4) = 0; *(_DWORD *)v4 = 0; return result; } if ( *(_BYTE *)(v3 + 937) || !*(_BYTE *)(v3 + 905) || !*(_DWORD *)(v3 + 1216) ) goto LABEL_5; if ( !*(_BYTE *)(v4 + 16) && *(_QWORD *)(v3 + 34712) ) { v7 = 5; v8 = 5; v9 = off_D200B8("\r\n.\r\n"); } else { v7 = 3; v8 = 3; v9 = off_D200B8(".\r\n"); } result = 27; if ( v9 ) { v10 = sub_82839C((int)a1, a1[170], (int)v9, v7, &v15); if ( v10 ) { off_D200B0(v9); return v10; } if ( v15 == v8 ) { sub_81FA10(v14); v13 = v14[1]; a1[280] = v14[0]; a1[281] = v13; off_D200B0(v9); } else { v11 = v8 - v15; a1[277] = (int)v9; a1[278] = v11; a1[279] = v7; } a1[286] = 11; do { v5 = sub_84A600(a1 + 272, 1); v12 = v5 == 0; if ( !a1[286] ) v12 = 0; } while ( v12 ); goto LABEL_5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source