// // sub_81A50 from 0x81a50 to 0x81c28 (472 bytes) // // 1 xrefs: // > sub_81840 @ 0x81940 // // 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 11:41:17 +0000 // int __fastcall sub_81A50(int a1) { int v2; // r5 unsigned int v3; // r6 int v4; // r0 bool v5; // zf int v7; // r5 int v8; // r0 int v9; // r5 int v10; // r0 char *v11; // r0 int v12; // r8 int v13; // r5 int v14; // [sp+Ch] [bp-224h] BYREF char v15[512]; // [sp+13h] [bp-21Dh] BYREF unsigned __int8 v16; // [sp+213h] [bp-1Dh] BYREF v14 = 0; v2 = sub_BBB84(*(_DWORD *)(a1 + 220), 0); if ( !v2 ) { v3 = 0; v2 = 19; while ( 1 ) { v4 = sub_BBA38(*(_DWORD *)(a1 + 220), &v16); v5 = v3 >> 9 == 0; if ( !(v3 >> 9) ) v5 = v4 == 0; if ( !v5 ) break; v15[v3++] = v16; if ( sub_82442(a1) ) { if ( sub_BE30E(v15, "#EXTM3U", 7) ) return 19; while ( 1 ) { v2 = 0; if ( sub_819EC(a1, nullptr) ) break; v7 = 0; do { if ( sub_BBA38(*(_DWORD *)(a1 + 220), &v16) ) break; v8 = v16; if ( v7 < 512 ) v15[v7++] = v16; } while ( v8 != 58 ); if ( sub_BE30E("#EXTINF", v15, 7) ) return 19; v2 = 0; if ( sub_819EC(a1, nullptr) ) return v2; v9 = 0; do { if ( sub_BBA38(*(_DWORD *)(a1 + 220), &v16) ) break; v10 = v16; if ( v9 <= 510 ) v15[v9++] = v16; } while ( v10 != 44 ); v11 = &v15[v9]; v2 = 0; *(v11 - 1) = 0; v14 = atoi(v15); sub_B0B08(a1, 8, "LENGTH", &v14); if ( sub_819EC(a1, nullptr) ) return v2; v12 = 0; do { if ( sub_BBA38(*(_DWORD *)(a1 + 220), &v16) ) break; if ( v16 != 10 && v12 <= 510 && v16 != 13 ) v15[v12++] = v16; } while ( !sub_82442(a1) ); v2 = 0; v15[v12] = 0; sub_B0B08(a1, 8, "TITLE", v15); if ( sub_819EC(a1, nullptr) ) return v2; v13 = 0; do { if ( sub_BBA38(*(_DWORD *)(a1 + 220), &v16) ) break; if ( v16 != 10 && v13 <= 510 && v16 != 13 ) v15[v13++] = v16; } while ( !sub_82442(a1) ); v15[v13] = 0; sub_B0B08(a1, 8, "FILE", v15); } return v2; } } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source