// // png_write_sRGB from 0x664994 to 0x664a08 (116 bytes) // // 1 xrefs: // > png_write_info_before_PLTE @ 0x66194a // // 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_sRGB(int result, int a2) { char v2; // r5 _DWORD *v3; // r4 _BYTE v4[4]; // [sp+4h] [bp-10h] BYREF _BYTE v5[4]; // [sp+8h] [bp-Ch] BYREF _BYTE v6[8]; // [sp+Ch] [bp-8h] BYREF v2 = a2; v3 = (_DWORD *)result; if ( a2 > 3 ) result = png_warning(result, "Invalid sRGB rendering intent specified"); v4[0] = v2; if ( v3 ) { v3[225] = 34; png_save_uint_32(v5, 1); png_save_uint_32(v6, 1934772034); png_write_data((int)v3); v3[119] = 1934772034; png_reset_crc((int)v3); png_calculate_crc(v3, (int)v6, 4); v3[225] = 66; png_write_chunk_data(v3, (int)v4, 1); return png_write_chunk_end((int)v3); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source