// // sub_EDB7C from 0xedb7c to 0xedca4 (296 bytes) // // 1 xrefs: // > sub_F13AC @ 0xf1ce4 // // 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 __int64 __fastcall sub_EDB7C(unsigned __int64 result, unsigned int a2, int a3, char *a4) { unsigned __int64 v4; // x8 __int64 i; // x9 char *v6; // x12 int v7; // w11 __int64 j; // x9 char *v9; // x12 int v10; // w11 __int64 k; // x9 char *v12; // x11 int v13; // w15 __int64 v14; // x9 char *v15; // x11 int v16; // w13 v4 = result; switch ( a3 ) { case 0: result = (unsigned __int64)memcpy(a4, (const void *)result, 4LL * a2); break; case 1: for ( i = 0; i < (int)a2; ++i ) { v6 = &a4[4 * i]; v7 = *(_DWORD *)(result + 4 * i); *(_DWORD *)v6 = *((_DWORD *)v6 - 1) + v7; } break; case 2: for ( j = 0; j < (int)a2; ++j ) { v9 = &a4[4 * j]; v10 = *(_DWORD *)(result + 4 * j); *(_DWORD *)v9 = v10 + 2 * *((_DWORD *)v9 - 1) - *((_DWORD *)v9 - 2); } break; case 3: for ( k = 0; k < (int)a2; ++k ) { v12 = &a4[4 * k]; v13 = *(_DWORD *)(result + 4 * k); *(_DWORD *)v12 = *((_DWORD *)v12 - 3) + v13 + 3 * (*((_DWORD *)v12 - 1) - *((_DWORD *)v12 - 2)); } break; case 4: v14 = 0; v15 = a4 - 8; while ( v14 < (int)a2 ) { v16 = *(_DWORD *)(v4 + 4 * v14); result = *((unsigned int *)v15 - 2); ++v14; *((_DWORD *)v15 + 2) = v16 + 4 * (*((_DWORD *)v15 - 1) + *((_DWORD *)v15 + 1)) - 6 * *(_DWORD *)v15 - result; v15 += 4; } break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source