// // png_create_png_struct from 0x64d388 to 0x64d43e (182 bytes) // // 2 xrefs: // > png_create_read_struct_2 @ 0x655600 // > png_create_write_struct_2 @ 0x661e40 // // 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 // void *__fastcall png_create_png_struct(int a1, int a2, int a3, int a4, int a5, int a6, int a7) { void *result; // r0 void *v11; // r6 jmp_buf env; // [sp+8h] [bp-4E8h] BYREF _DWORD v14[250]; // [sp+108h] [bp-3E8h] BYREF memset(v14, 0, sizeof(v14)); v14[212] = 0x7FFFFFFF; v14[213] = 0x7FFFFFFF; png_set_mem_fn(v14, a5, a6, a7); png_set_error_fn(v14, a2, a3, a4); if ( setjmp(env) ) return nullptr; v14[66] = 0; v14[64] = &longjmp; v14[65] = env; if ( !png_user_version_check((int)v14, a1) ) return nullptr; result = (void *)png_malloc_warn(v14, 1000); v11 = result; if ( result ) { v14[91] = result; memset(&v14[64], 0, 12); v14[89] = png_zalloc; v14[90] = png_zfree; memcpy(result, v14, 0x3E8u); return v11; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source