// // sub_8BD8CC from 0x8bd8cc to 0x8bde40 (1396 bytes) // // 1 xrefs: // > sub_8C411C @ 0x8c65e8 // // 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:03:58 +0000 // int __fastcall sub_8BD8CC(_DWORD *a1, int a2, _DWORD *a3) { unsigned int v3; // r3 int v5; // r3 int v6; // r0 _DWORD *v11; // [sp+18h] [bp-64h] BYREF unsigned int v12; // [sp+1Ch] [bp-60h] BYREF int v13; // [sp+20h] [bp-5Ch] _QWORD *v14; // [sp+24h] [bp-58h] _DWORD *v15; // [sp+28h] [bp-54h] unsigned int i; // [sp+2Ch] [bp-50h] unsigned __int8 *v17; // [sp+30h] [bp-4Ch] _QWORD *v18; // [sp+34h] [bp-48h] unsigned int j; // [sp+38h] [bp-44h] char *v20; // [sp+3Ch] [bp-40h] _QWORD *v21; // [sp+40h] [bp-3Ch] unsigned int n; // [sp+44h] [bp-38h] unsigned __int16 *v23; // [sp+48h] [bp-34h] _QWORD *v24; // [sp+4Ch] [bp-30h] unsigned int k; // [sp+50h] [bp-2Ch] __int16 *v26; // [sp+54h] [bp-28h] _QWORD *v27; // [sp+58h] [bp-24h] unsigned int ii; // [sp+5Ch] [bp-20h] unsigned int *v29; // [sp+60h] [bp-1Ch] _QWORD *v30; // [sp+64h] [bp-18h] unsigned int m; // [sp+68h] [bp-14h] int *v32; // [sp+6Ch] [bp-10h] _QWORD *v33; // [sp+70h] [bp-Ch] unsigned int jj; // [sp+74h] [bp-8h] v3 = *(unsigned __int16 *)(a2 + 2); if ( v3 > 0x11 || ((1 << v3) & 0x3035A) == 0 ) return 2; v13 = sub_8BAA64(a1, a2, (int *)&v12, 8u, (int *)&v11); if ( !v13 && v11 ) { v5 = *(unsigned __int16 *)(a2 + 2); if ( v5 == 16 ) { v15 = v11; for ( i = 0; i < v12; ++i ) { if ( (a1[3] & 0x80) != 0 ) TIFFSwabLong8(v15); v13 = sub_8C04F0(*v15, v15[1]); if ( v13 ) { TIFFfree(v11); return v13; } v15 += 2; } *a3 = v11; return 0; } else if ( v5 == 17 ) { *a3 = v11; if ( (a1[3] & 0x80) != 0 ) TIFFSwabArrayOfLong8(*a3, v12); return 0; } else { v6 = TIFFmalloc(8 * v12); v14 = (_QWORD *)v6; if ( v6 ) { switch ( *(_WORD *)(a2 + 2) ) { case 1: v17 = (unsigned __int8 *)v11; v18 = v14; for ( j = 0; j < v12; ++j ) *v18++ = *v17++; break; case 3: v23 = (unsigned __int16 *)v11; v24 = v14; for ( k = 0; k < v12; ++k ) { if ( (a1[3] & 0x80) != 0 ) TIFFSwabShort(v23); *v24++ = *v23++; } break; case 4: v29 = v11; v30 = v14; for ( m = 0; m < v12; ++m ) { if ( (a1[3] & 0x80) != 0 ) TIFFSwabLong(v29); *v30++ = *v29++; } break; case 6: v20 = (char *)v11; v21 = v14; for ( n = 0; n < v12; ++n ) *v21++ = *v20++; break; case 8: v26 = (__int16 *)v11; v27 = v14; for ( ii = 0; ii < v12; ++ii ) { if ( (a1[3] & 0x80) != 0 ) TIFFSwabShort(v26); *v27++ = *v26++; } break; case 9: v32 = v11; v33 = v14; for ( jj = 0; jj < v12; ++jj ) { if ( (a1[3] & 0x80) != 0 ) TIFFSwabLong(v32); *v33++ = *v32++; } break; default: break; } TIFFfree(v11); if ( v13 ) { TIFFfree(v14); return v13; } else { *a3 = v14; return 0; } } else { TIFFfree(v11); return 7; } } } else { *a3 = 0; return v13; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source