// // png_write_image from 0x66214c to 0x66218e (66 bytes) // // 3 xrefs: // > cocos2d::CCImage::_saveImageToPNG @ 0x5e21f6 // > cocos2d::CCImage::_saveImageToPNG @ 0x5e2226 // > png_write_png @ 0x66325a // // 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_write_image(int result, int a2) { int v2; // r6 int v4; // r9 unsigned int v5; // r3 int v6; // r7 int v7; // r5 unsigned int i; // r4 void *v9; // t1 if ( result ) { v2 = result; result = png_set_interlace_handling(result); v4 = result; if ( result > 0 ) { v5 = *(_DWORD *)(v2 + 452); v6 = 0; do { if ( v5 ) { v7 = a2 - 4; for ( i = 0; i < v5; ++i ) { v9 = *(void **)(v7 + 4); v7 += 4; result = png_write_row(v2, v9); v5 = *(_DWORD *)(v2 + 452); } } ++v6; } while ( v6 != v4 ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source