// // sub_98F928 from 0x98f928 to 0x98fb48 (544 bytes) // // 4 xrefs: // > sub_98ED1C @ 0x98ed60 // > sub_98ED1C @ 0x98ef5a // > sub_98ED1C @ 0x98f13c // > sub_98ED1C @ 0x98f374 // // 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:06:33 +0000 // int __fastcall sub_98F928(unsigned __int8 *a1, unsigned __int8 *a2, int a3) { unsigned __int8 *v3; // r5 unsigned __int8 *v5; // r6 int v6; // r0 bool v7; // zf unsigned __int8 *v8; // r8 unsigned __int8 *v9; // r9 int result; // r0 unsigned __int8 *v11; // r10 __int64 v12; // kr00_8 __int64 v13; // kr08_8 unsigned int v14; // r3 int *v15; // r0 size_t v16; // r5 char *v17; // r6 int v18; // r9 int v19; // r5 unsigned __int8 *v20; // r8 __int64 v21; // kr10_8 __int64 v22; // kr18_8 unsigned int v23; // r3 int *v24; // r0 size_t v25; // r5 char *v26; // r6 int v27; // r5 void *v28; // r4 size_t v29; // r2 char *v30; // r1 int v31; // r9 __int64 v32; // kr20_8 int v33; // [sp+0h] [bp-20h] BYREF size_t v34; // [sp+4h] [bp-1Ch] char *v35; // [sp+8h] [bp-18h] v3 = a1; v5 = a2; if ( a2 - a1 < 2 ) return (int)v3; v6 = *a1; v7 = v6 == 111; if ( v6 != 111 ) v7 = v6 == 100; if ( v7 && v3[1] == 110 ) { v8 = v3 + 2; if ( v6 == 111 ) { v9 = (unsigned __int8 *)sub_98FE50(v3 + 2, a2, a3); result = (int)v3; if ( v9 != v8 ) { v11 = sub_987AD4(v9, v5, (__int64 *)a3); result = (int)v9; if ( v11 != v9 ) { v12 = *(_QWORD *)a3; if ( (unsigned int)(-1431655765 * ((HIDWORD(v12) - (int)v12) >> 3)) >= 2 ) { v13 = *(_QWORD *)(HIDWORD(v12) - 8); v14 = *(unsigned __int8 *)(HIDWORD(v12) - 12); if ( (v14 & 1) == 0 ) LODWORD(v13) = v14 >> 1; v15 = sub_9879F8((_BYTE *)(HIDWORD(v12) - 24), (const void *)v12, v13); v16 = v15[1]; v17 = (char *)v15[2]; v33 = *v15; v34 = v16; v35 = v17; *v15 = 0; v15[1] = 0; v15[2] = 0; v18 = *(_DWORD *)(a3 + 4); v19 = v18; do { *(_DWORD *)(a3 + 4) = v19 - 24; if ( (*(_BYTE *)(v19 - 12) & 1) != 0 ) free(*(void **)(v19 - 4)); if ( (*(_BYTE *)(v19 - 24) & 1) != 0 ) free(*(void **)(v19 - 16)); v19 = *(_DWORD *)(a3 + 4); } while ( v19 != v18 - 24 ); LABEL_32: v28 = v35; v29 = v34; v30 = v35; if ( (v33 & 1) == 0 ) { v30 = (char *)&v33 + 1; v29 = (unsigned __int8)v33 >> 1; } sub_9879F8((_BYTE *)(v18 - 48), v30, v29); if ( (v33 & 1) != 0 ) free(v28); return (int)v11; } return (int)v11; } } return result; } if ( v8 != a2 ) { v31 = sub_98FB54(v3 + 2, a2, a3); if ( (unsigned __int8 *)v31 == v8 ) v31 = sub_991654(v3 + 2, v5, a3); if ( (unsigned __int8 *)v31 == v8 ) { v5 = v3 + 2; } else { v32 = *(_QWORD *)a3; v5 = v3 + 2; if ( (_DWORD)v32 != HIDWORD(v32) ) { sub_9878A2((_DWORD *)(HIDWORD(v32) - 24), 0, (unsigned int)"~", 1u); v5 = (unsigned __int8 *)v31; } } } if ( v5 != v8 ) return (int)v5; return (int)v3; } result = sub_991654(v3, a2, a3); if ( (unsigned __int8 *)result == v3 ) { v20 = (unsigned __int8 *)sub_98FE50(v3, v5, a3); result = (int)v3; if ( v20 != v3 ) { v11 = sub_987AD4(v20, v5, (__int64 *)a3); result = (int)v20; if ( v11 != v20 ) { v21 = *(_QWORD *)a3; if ( (unsigned int)(-1431655765 * ((HIDWORD(v21) - (int)v21) >> 3)) >= 2 ) { v22 = *(_QWORD *)(HIDWORD(v21) - 8); v23 = *(unsigned __int8 *)(HIDWORD(v21) - 12); if ( (v23 & 1) == 0 ) LODWORD(v22) = v23 >> 1; v24 = sub_9879F8((_BYTE *)(HIDWORD(v21) - 24), (const void *)v21, v22); v25 = v24[1]; v26 = (char *)v24[2]; v33 = *v24; v34 = v25; v35 = v26; *v24 = 0; v24[1] = 0; v24[2] = 0; v18 = *(_DWORD *)(a3 + 4); v27 = v18; do { *(_DWORD *)(a3 + 4) = v27 - 24; if ( (*(_BYTE *)(v27 - 12) & 1) != 0 ) free(*(void **)(v27 - 4)); if ( (*(_BYTE *)(v27 - 24) & 1) != 0 ) free(*(void **)(v27 - 16)); v27 = *(_DWORD *)(a3 + 4); } while ( v27 != v18 - 24 ); goto LABEL_32; } return (int)v11; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source