// // sub_703C28 from 0x703c28 to 0x703d9e (374 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // unsigned __int8 *__fastcall sub_703C28(int a1, int a2, int a3, int a4, int a5) { unsigned __int8 *v5; // r5 _BYTE *v6; // r11 unsigned __int8 *result; // r0 int v8; // r10 int v9; // r4 int v10; // r3 int v11; // r1 int v12; // r12 int v13; // lr int v14; // r9 int v15; // r2 int v16; // r6 char v17; // r2 int v18; // r12 int v19; // r6 int v20; // r2 int v21; // r12 int v22; // r1 int v23; // [sp+4h] [bp-20h] int v25; // [sp+Ch] [bp-18h] _BYTE *v27; // [sp+18h] [bp-Ch] char *v28; // [sp+1Ch] [bp-8h] v25 = 2 * a3 + 1; v5 = (unsigned __int8 *)off_A2DB98; v6 = off_A2DB9C; result = (unsigned __int8 *)(a1 - 4); v8 = 16; v27 = off_A2DBA4; v28 = (char *)off_A2DBA0; do { while ( 1 ) { v9 = result[2]; v10 = result[3]; v11 = result[4]; v12 = v9 - result[5]; v23 = result[5]; v13 = result[1]; v14 = result[6]; if ( v25 < 4 * v5[v10 - v11] + v5[v12] ) goto LABEL_12; if ( a4 < v5[*result - v13] ) goto LABEL_12; if ( a4 < v5[v13 - v9] ) goto LABEL_12; v15 = v5[v9 - v10]; if ( a4 < v15 ) goto LABEL_12; if ( a4 < v5[result[7] - v14] ) goto LABEL_12; if ( a4 < v5[v14 - v23] ) goto LABEL_12; v16 = v5[v23 - v11]; if ( a4 < v16 ) goto LABEL_12; if ( a5 < v15 || a5 < v16 ) break; v17 = v27[3 * (v11 - v10) + (char)v27[v12]]; v18 = (9 * v17 + 63) >> 7; v19 = (18 * v17 + 63) >> 7; v20 = (27 * v17 + 63) >> 7; result[1] = v6[v13 + v18]; result[2] = v6[v9 + v19]; result[3] = v6[v10 + v20]; result[4] = v6[v11 - v20]; result[5] = v6[v23 - v19]; result[6] = v6[v14 - v18]; LABEL_12: --v8; result += a2; if ( !v8 ) return result; } --v8; v21 = (char)v27[v12] + 3 * (v11 - v10); v22 = v11 - v28[(v21 + 4) >> 3]; result[3] = v6[v10 + v28[(v21 + 3) >> 3]]; result[4] = v6[v22]; result += a2; } while ( v8 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source