// // sub_E498D8 from 0xe498d8 to 0xe499f0 (280 bytes) // // 3 xrefs: // > png_image_begin_read_from_stdio @ 0xe4c378 // > png_image_begin_read_from_file @ 0xe4c42c // > png_image_begin_read_from_memory @ 0xe4c51c // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:10:07 +0000 // __int64 __fastcall sub_E498D8(__int64 a1) { __int64 *v2; // x0 __int64 v3; // x19 __int64 v4; // x21 int v5; // w1 char v6; // w2 int v7; // w0 int v8; // w2 int v9; // w0 unsigned int v10; // w0 v2 = *(__int64 **)a1; v3 = *v2; v4 = v2[1]; png_set_benign_errors(*v2, 1); png_read_info(v3, v4); v5 = *(_DWORD *)(v3 + 560); *(_DWORD *)(a1 + 16) = *(_DWORD *)(v3 + 564); *(_DWORD *)(a1 + 12) = v5; v6 = *(_BYTE *)(v3 + 687); if ( (v6 & 2) != 0 ) v7 = 3; else v7 = 1; if ( (*(_BYTE *)(v3 + 687) & 4) == 0 && !*(_WORD *)(v3 + 680) ) v7 = v6 & 2; v8 = v6 & 1; if ( *(_BYTE *)(v3 + 688) == 16 ) v7 |= 4u; v9 = v7 | (8 * v8); *(_DWORD *)(a1 + 20) = v9; if ( (v9 & 2) != 0 && (*(_WORD *)(v3 + 1370) & 0x8042) == 2 ) *(_DWORD *)(a1 + 24) |= 1u; if ( *(_BYTE *)(v3 + 687) ) { if ( *(_BYTE *)(v3 + 687) != 3 ) { *(_DWORD *)(a1 + 28) = 256; return 1; } v10 = *(unsigned __int16 *)(v3 + 672); } else { v10 = 1 << *(_BYTE *)(v3 + 688); } if ( v10 >= 0x101 ) v10 = 256; *(_DWORD *)(a1 + 28) = v10; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source