// // sub_C7D7AC from 0xc7d7ac to 0xc7d84c (160 bytes) // // 1 xrefs: // > sub_C7FCE4 @ 0xc7fdec // // 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 // __int64 __fastcall sub_C7D7AC(__int64 result, unsigned __int8 *a2) { __int64 v2; // x2 unsigned __int8 *v3; // x8 int v4; // w3 int v5; // w5 int v6; // w4 int v7; // w4 int v8; // w3 int v9; // w5 int v10; // w5 int v11; // w4 v2 = result; v3 = a2 + 256; LODWORD(result) = 0; do { v4 = *a2; v2 += 32; a2 += 32; v5 = *(unsigned __int8 *)(v2 - 31) - *(a2 - 31); v6 = *(unsigned __int8 *)(v2 - 30) - *(a2 - 30); v7 = result + (*(unsigned __int8 *)(v2 - 32) - v4) * (*(unsigned __int8 *)(v2 - 32) - v4) + v5 * v5 + v6 * v6; v8 = *(unsigned __int8 *)(v2 - 29) - *(a2 - 29); v9 = *(unsigned __int8 *)(v2 - 28) - *(a2 - 28); v10 = v7 + v8 * v8 + v9 * v9; v11 = *(unsigned __int8 *)(v2 - 27) - *(a2 - 27); result = v10 + v11 * v11 + (*(unsigned __int8 *)(v2 - 26) - *(a2 - 26)) * (*(unsigned __int8 *)(v2 - 26) - *(a2 - 26)) + (*(unsigned __int8 *)(v2 - 25) - *(a2 - 25)) * (*(unsigned __int8 *)(v2 - 25) - (unsigned int)*(a2 - 25)); } while ( a2 != v3 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source