// // sub_C28860 from 0xc28860 to 0xc28978 (280 bytes) // // 1 xrefs: // > sub_C280C8 @ 0xc281e8 // // 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 // void *__fastcall sub_C28860(void *result, __int64 a2, __int64 a3, int a4) { __int64 v4; // x23 int v5; // w25 unsigned int v6; // w27 __int64 v9; // x19 __int64 v10; // x22 int v11; // w12 __int64 *v12; // x2 __int64 v13; // x1 _BYTE *v14; // x3 unsigned __int8 *v15; // x6 __int64 v16; // x10 __int64 v17; // x9 _BYTE *v18; // x8 int v19; // w7 int v20; // w5 v4 = *((_QWORD *)result + 82); v5 = *((_DWORD *)result + 36); v6 = *((_DWORD *)result + 34); if ( a4 > 0 ) { v9 = (unsigned int)(a4 - 1) + 1LL; v10 = 0; do { result = memset(*(void **)(a3 + 8 * v10), 0, v6); v11 = *(_DWORD *)(v4 + 76); if ( v5 > 0 ) { v12 = (__int64 *)(v4 + 80); v13 = 0; do { result = nullptr; v14 = *(_BYTE **)(a3 + 8 * v10); v15 = (unsigned __int8 *)(*(_QWORD *)(a2 + 8 * v10) + v13); v16 = *(_QWORD *)(*(_QWORD *)(v4 + 48) + 8 * v13); v17 = *v12; v18 = &v14[v6]; if ( v6 ) { do { v19 = *v15; v20 = *(_DWORD *)(v17 + ((__int64)v11 << 6) + 4LL * (int)result); v15 += v5; result = (void *)(((_BYTE)result + 1) & 0xF); *v14++ += *(_BYTE *)(v16 + v19 + v20); } while ( v14 != v18 ); } ++v13; ++v12; } while ( v5 > (int)v13 ); } ++v10; *(_DWORD *)(v4 + 76) = ((_BYTE)v11 + 1) & 0xF; } while ( v10 != v9 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source