// // sub_C428C from 0xc428c to 0xc4398 (268 bytes) // // 1 xrefs: // > sub_BD598 @ 0xbd68e // // 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:51 +0000 // unsigned int __fastcall sub_C428C(int a1, _DWORD *a2, unsigned int a3) { unsigned int v3; // r6 void *v5; // r5 int v8; // r2 unsigned int v9; // r9 char *v10; // r0 unsigned int v11; // r1 int v12; // r2 unsigned int v13; // r3 char *v14; // r0 int v15; // r2 unsigned int v16; // r1 unsigned int v17; // r3 char *v18; // r0 void *v19; // r0 v3 = a3; if ( !a2 ) return sub_C3010((__int64 *)a1, a3); if ( a3 <= 0xFFFFFFBF ) { sub_C2FDC((_DWORD *)(a1 + 456)); v8 = *(a2 - 1); v5 = nullptr; v9 = v8 & 0xFFFFFFFC; if ( (int)(v8 & 0xFFFFFFFC) < 1 ) return (unsigned int)v5; if ( (v8 & 2) == 0 ) return (unsigned int)v5; v10 = (char *)(a2 - 2); if ( (unsigned int)(a2 - 2) < *(_DWORD *)(a1 + 16) ) return (unsigned int)v5; if ( *((unsigned __int8 *)a2 + v9 - 4) << 31 ) { v11 = (v3 + 19) & 0xFFFFFFF0; v12 = *(a2 - 1) & 1; if ( v3 < 0xB ) v11 = 16; if ( v9 >= v11 ) { v17 = v9 - v11; if ( v9 - v11 > 0xF ) { v18 = &v10[v11]; *(a2 - 1) = v12 | v11 | 2; *((_DWORD *)v18 + 1) = v17 | 3; *(_DWORD *)&v18[v17 + 4] |= 1u; sub_C3E58((_DWORD *)a1, (int)(v18 + 8)); } return (unsigned int)a2; } if ( *(_DWORD **)(a1 + 24) == (_DWORD *)((char *)a2 + v9 - 8) ) { v13 = *(_DWORD *)(a1 + 12) + v9; if ( v13 > v11 ) { v14 = &v10[v11]; v15 = v12 | v11 | 2; v16 = v13 - v11; *(a2 - 1) = v15; *((_DWORD *)v14 + 1) = v16 | 1; *(_DWORD *)(a1 + 12) = v16; *(_DWORD *)(a1 + 24) = v14; return (unsigned int)a2; } } v19 = (void *)sub_C3010((__int64 *)a1, v3); if ( v19 ) { v5 = v19; if ( v9 - 4 < v3 ) v3 = v9 - 4; qmemcpy(v19, a2, v3); sub_C3E58((_DWORD *)a1, (int)a2); return (unsigned int)v5; } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source