// // png_image_begin_read_from_memory from 0x6578a4 to 0x65790e (106 bytes) // // 0 xrefs: // // 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_image_begin_read_from_memory(_DWORD *a1, int a2, int a3) { const char *v3; // r1 bool v4; // zf if ( !a1 ) return 0; if ( a1[1] != 1 ) { v3 = "png_image_begin_read_from_memory: incorrect PNG_IMAGE_VERSION"; return png_image_error((int)a1, (int)v3); } v4 = a2 == 0; if ( a2 ) v4 = a3 == 0; if ( v4 ) { v3 = "png_image_begin_read_from_memory: invalid argument"; return png_image_error((int)a1, (int)v3); } if ( !sub_657580(a1) ) return 0; *(_DWORD *)(*a1 + 12) = a2; *(_DWORD *)(*a1 + 16) = a3; *(_DWORD *)(*(_DWORD *)*a1 + 288) = a1; *(_DWORD *)(*(_DWORD *)*a1 + 284) = sub_653280; return png_safe_execute((int)a1, sub_655964, (int)a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source