// // sub_C76010 from 0xc76010 to 0xc76248 (568 bytes) // // 1 xrefs: // > sub_C76D40 @ 0xc76de8 // // 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 // _BYTE *__fastcall sub_C76010(_BYTE *result, int a2, int a3, int a4, int a5) { int v5; // w2 __int64 v6; // x16 __int64 v7; // x15 __int64 v8; // x13 __int64 v9; // x14 _BYTE *v10; // x19 int v11; // w10 int v12; // w23 int v13; // w7 int v14; // w8 __int64 v15; // x5 int v16; // w25 int v17; // w22 int v18; // w6 int v19; // w11 int v20; // w5 int v21; // w24 int v22; // w26 int v23; // w6 int v24; // w6 int v25; // w8 v5 = 2 * a3 + 1; v6 = -3 * a2; v7 = -2 * a2; v8 = -a2; v9 = 2 * a2; v10 = result + 16; do { while ( 1 ) { v11 = (unsigned __int8)result[v7]; v12 = (unsigned __int8)result[a2]; v13 = (unsigned __int8)result[v8]; v14 = (unsigned __int8)*result; v15 = v11 - v12; v16 = (unsigned __int8)result[v6]; v17 = (unsigned __int8)result[v9]; if ( v5 < byte_F54BCF[v15] + 4 * byte_F54BCF[v13 - v14] ) goto LABEL_12; if ( a4 < byte_F54BCF[(unsigned __int8)result[-4 * a2] - v16] ) goto LABEL_12; if ( a4 < byte_F54BCF[v16 - v11] ) goto LABEL_12; v18 = byte_F54BCF[v11 - v13]; if ( a4 < v18 ) goto LABEL_12; if ( a4 < byte_F54BCF[(unsigned __int8)result[3 * a2] - v17] ) goto LABEL_12; if ( a4 < byte_F54BCF[v17 - v12] ) goto LABEL_12; v19 = byte_F54BCF[v12 - v14]; if ( a4 < v19 ) goto LABEL_12; if ( a5 < v18 || a5 < v19 ) break; v20 = byte_F546CC[3 * (v14 - v13) + byte_F546CC[v15]]; v21 = (9 * v20 + 63) >> 7; v22 = (18 * v20 + 63) >> 7; v23 = (27 * v20 + 63) >> 7; result[v6] = byte_F53FDF[v16 + v21]; result[v7] = byte_F53FDF[v11 + v22]; result[v8] = byte_F53FDF[v13 + v23]; *result = byte_F53FDF[v14 - v23]; result[a2] = byte_F53FDF[v12 - v22]; result[v9] = byte_F53FDF[v17 - v21]; LABEL_12: if ( ++result == v10 ) return result; } v24 = 3 * (v14 - v13) + byte_F546CC[v15]; v25 = v14 - byte_F54250[(v24 + 4) >> 3]; result[v8] = byte_F53FDF[v13 + byte_F54250[(v24 + 3) >> 3]]; *result++ = byte_F53FDF[v25]; } while ( result != v10 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source