// // png_set_unknown_chunk_location from 0xbe4ca0 to 0xbe4d60 (192 bytes) // // 1 xrefs: // > @ 0x99780 // // 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 png_set_unknown_chunk_location(__int64 result, __int64 a2, int a3, char a4) { int v4; // w4 __int64 i; // x2 char v9; // w4 if ( a2 != 0 && a3 >= 0 && result && a3 < *(_DWORD *)(a2 + 296) ) { v4 = a4 & 0xB; if ( (a4 & 0xB) != 0 ) { result = -v4 & (unsigned int)v4; for ( i = *(_QWORD *)(a2 + 288) + 32LL * a3; (_DWORD)result != v4; result = -v4 & (unsigned int)v4 ) v4 &= ~(_DWORD)result; *(_BYTE *)(i + 24) = v4; } else { png_app_error(result, "invalid unknown chunk location"); result = a4 & 4; if ( (a4 & 4) != 0 ) v9 = 8; else v9 = 1; *(_BYTE *)(*(_QWORD *)(a2 + 288) + 32LL * a3 + 24) = v9; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source