// // sub_8CCA4 from 0x8cca4 to 0x8cd80 (220 bytes) // // 1 xrefs: // > sub_8D6F8 @ 0x8e494 // // 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_8CCA4(__int64 a1) { __int64 v1; // x8 __int64 v2; // x9 int v3; // w10 int v4; // w11 int v5; // w10 int v6; // w10 int v7; // w9 v1 = *(_QWORD *)(a1 + 8); switch ( *(_BYTE *)(a1 + 297) ) { case 0: case 3: v2 = *(int *)(a1 + 272); v3 = byte_114028[v2]; goto LABEL_8; case 1: LODWORD(v2) = *(_DWORD *)(a1 + 272); v3 = (128 - (int)v2) >> 1; goto LABEL_8; case 2: LODWORD(v2) = *(_DWORD *)(a1 + 272); if ( (int)v2 > 127 ) v3 = -64; else v3 = 64; LABEL_8: *(_DWORD *)(v1 + 84) = v3; break; default: v3 = *(_DWORD *)(v1 + 84); LODWORD(v2) = *(_DWORD *)(a1 + 272); break; } v4 = *(_DWORD *)(v1 + 72); v5 = (v3 * *(unsigned __int8 *)(a1 + 277)) >> 5; *(_DWORD *)(v1 + 84) = v5; if ( (v2 & 0x80000000) != 0 ) { if ( ((v4 - v5) & 0x8000) != 0 ) { v5 = v4; *(_DWORD *)(v1 + 84) = v4; } v6 = -v5; } else { if ( v4 + v5 < 65 ) goto LABEL_16; v6 = 64 - v4; } *(_DWORD *)(v1 + 84) = v6; LABEL_16: v7 = v2 + *(unsigned __int8 *)(a1 + 276); if ( v7 > 255 ) v7 -= 256; *(_DWORD *)(a1 + 272) = v7; *(_BYTE *)(v1 + 60) |= 4u; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source