// // png_process_IDAT_data from 0xbcfe68 to 0xbd0028 (448 bytes) // // 3 xrefs: // > png_push_read_IDAT @ 0xbd00e0 // > png_push_read_IDAT @ 0xbd0150 // > @ 0x7f050 // // 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_process_IDAT_data(unsigned __int64 a1, __int64 a2, __int64 a3) { __int64 result; // x0 unsigned int v5; // w0 unsigned int v6; // w1 int v7; // w0 __int64 v8; // x1 unsigned int v9; // w20 unsigned int v10; // w2 unsigned int v11; // w1 int v12; // w0 if ( !a3 || !a2 ) png_error(a1, "No IDAT data (internal error)"); *(_QWORD *)(a1 + 376) = a2; result = (unsigned int)a3; *(_DWORD *)(a1 + 384) = a3; LABEL_4: if ( (_DWORD)result ) { while ( 1 ) { if ( (*(_DWORD *)(a1 + 360) & 8) != 0 ) return png_warning(a1, "Extra compression data in IDAT"); if ( !*(_DWORD *)(a1 + 408) ) { v5 = *(unsigned __int8 *)(a1 + 690); v6 = *(_DWORD *)(a1 + 584); if ( v5 <= 7 ) v7 = ((v6 * (unsigned __int64)*(unsigned __int8 *)(a1 + 690) + 7) >> 3) + 1; else v7 = (v5 >> 3) * v6 + 1; v8 = *(_QWORD *)(a1 + 608); *(_DWORD *)(a1 + 408) = v7; *(_QWORD *)(a1 + 400) = v8; } v9 = inflate(a1 + 376, 2); if ( v9 > 1 ) break; if ( *(_QWORD *)(a1 + 400) == *(_QWORD *)(a1 + 608) ) goto LABEL_15; if ( *(_DWORD *)(a1 + 588) >= *(_DWORD *)(a1 + 568) || *(unsigned __int8 *)(a1 + 685) > 6u ) { png_warning(a1, "Extra compressed data in IDAT"); *(_DWORD *)(a1 + 368) = 0; result = *(_DWORD *)(a1 + 360) | 8u; *(_DWORD *)(a1 + 360) = result; return result; } if ( *(_DWORD *)(a1 + 408) ) { LABEL_15: if ( v9 == 1 ) goto LABEL_20; } else { png_push_process_row(a1); if ( v9 == 1 ) { LABEL_20: result = *(unsigned int *)(a1 + 384); *(_DWORD *)(a1 + 360) |= 8u; goto LABEL_4; } } result = *(unsigned int *)(a1 + 384); if ( !(_DWORD)result ) return result; } v10 = *(_DWORD *)(a1 + 588); v11 = *(_DWORD *)(a1 + 568); v12 = *(_DWORD *)(a1 + 360) | 8; *(_DWORD *)(a1 + 368) = 0; *(_DWORD *)(a1 + 360) = v12; if ( v10 < v11 && *(unsigned __int8 *)(a1 + 685) <= 6u ) png_error(a1, "Decompression error in IDAT"); return png_warning(a1, "Truncated compressed data in IDAT"); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source