// // cocos2d::tgaFlipImage from 0x5ecbfc to 0x5ecc88 (140 bytes) // // 1 xrefs: // > cocos2d::tgaLoad @ 0x5ecda4 // // 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 cocos2d::tgaFlipImage(int a1) { size_t v2; // r4 void *v3; // r6 int v4; // r8 int i; // r7 int v6; // r5 int v7; // r9 int v8; // [sp+4h] [bp-8h] v2 = *(__int16 *)(a1 + 6) * (*(unsigned __int8 *)(a1 + 5) >> 3); v3 = malloc(v2); if ( v3 ) { v4 = 0; for ( i = 0; ; ++i ) { v6 = *(__int16 *)(a1 + 8); v4 += v2; if ( i >= v6 / 2 ) break; v7 = ~i; v8 = *(_DWORD *)(a1 + 12); memcpy(v3, (const void *)(v8 + v4 - v2), v2); memcpy((void *)(*(_DWORD *)(a1 + 12) + v4 - v2), (const void *)(v8 + v2 * (v6 + v7)), v2); memcpy((void *)(*(_DWORD *)(a1 + 12) + v2 * (v7 + *(__int16 *)(a1 + 8))), v3, v2); } free(v3); *(_DWORD *)(a1 + 16) = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source