// // png_do_swap from 0x660d88 to 0x660dc0 (56 bytes) // // 2 xrefs: // > png_do_read_transformations @ 0x65a9f2 // > png_do_write_transformations @ 0x66377e // // 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 // int __fastcall png_do_swap(int result, int a2) { int v2; // r4 int v3; // r1 int v4; // r3 char v5; // r2 if ( *(_BYTE *)(result + 9) == 16 ) { v2 = *(_DWORD *)result * *(unsigned __int8 *)(result + 10); if ( v2 ) { v3 = a2 + 2; v4 = 0; do { result = *(unsigned __int8 *)(v3 - 2); ++v4; v5 = *(_BYTE *)(v3 - 1); v3 += 2; *(_BYTE *)(v3 - 3) = result; *(_BYTE *)(v3 - 4) = v5; } while ( v4 != v2 ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source