// // png_calculate_crc from 0xbc56f8 to 0xbc57a0 (168 bytes) // // 37 xrefs: // > png_push_crc_finish @ 0xbcf0a4 // > png_push_crc_finish @ 0xbcf0fc // > png_push_read_IDAT @ 0xbd00d0 // > png_push_read_IDAT @ 0xbd0140 // > png_crc_read @ 0xbdee2c // > png_read_chunk_header @ 0xbe1f60 // > png_write_chunk_start @ 0xbeb344 // > png_write_chunk_data @ 0xbeb3c0 // > png_write_chunk @ 0xbeb4cc // > png_write_IHDR @ 0xbeb72c // > png_write_PLTE @ 0xbeb9b4 // > png_compress_IDAT @ 0xbebbf8 // > png_compress_IDAT @ 0xbebdb4 // > png_write_IEND @ 0xbebfac // > png_write_gAMA_fixed @ 0xbec098 // > png_write_sRGB @ 0xbec188 // > png_write_iCCP @ 0xbec310 // > png_write_sPLT @ 0xbec4c0 // > png_write_sBIT @ 0xbec718 // > png_write_cHRM_fixed @ 0xbec8b0 // > png_write_tRNS @ 0xbeca2c // > png_write_tRNS @ 0xbecab4 // > png_write_tRNS @ 0xbecb7c // > png_write_bKGD @ 0xbecc90 // > png_write_bKGD @ 0xbecd98 // > png_write_bKGD @ 0xbece70 // > png_write_hIST @ 0xbecf34 // > png_write_tEXt @ 0xbed094 // > png_write_zTXt @ 0xbed254 // > png_write_iTXt @ 0xbed4d4 // > png_write_iTXt @ 0xbed654 // > png_write_oFFs @ 0xbed844 // > png_write_pCAL @ 0xbed9d0 // > png_write_sCAL_s @ 0xbedc6c // > png_write_pHYs @ 0xbedd9c // > png_write_tIME @ 0xbedef0 // > @ 0x9d0b0 // // 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_calculate_crc(_DWORD *a1, __int64 a2, __int64 a3) { __int64 v5; // x19 __int64 result; // x0 __int64 v7; // x1 __int64 v8; // x1 v5 = a3; if ( (a1[148] & 0x20000000) != 0 ) { result = a1[90] & 0x300; if ( (a1[90] & 0x300) == 0x300 ) return result; } else { result = (unsigned int)a1[90]; if ( (result & 0x800) != 0 ) return result; } if ( a3 ) { result = (unsigned int)a1[165]; do { while ( (_DWORD)v5 ) { v7 = a2; a2 += (unsigned int)v5; result = crc32(result, v7, (unsigned int)v5); v5 -= (unsigned int)v5; if ( !v5 ) goto LABEL_8; } v8 = a2; a2 += 0xFFFFFFFFLL; result = crc32(result, v8, 0xFFFFFFFFLL); v5 -= 0xFFFFFFFFLL; } while ( v5 ); LABEL_8: a1[165] = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source