// // png_user_version_check from 0xbc57a0 to 0xbc58dc (316 bytes) // // 2 xrefs: // > png_create_png_struct @ 0xbc59a0 // > @ 0x8bdb8 // // 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_user_version_check(__int64 a1, __int64 a2) { int v4; // w4 __int64 v5; // x0 int v6; // w2 int v7; // w3 int v8; // w1 __int64 result; // x0 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x0 _BYTE v13[128]; // [xsp+38h] [xbp+38h] BYREF v4 = *(_DWORD *)(a1 + 360); if ( a2 ) { v5 = 0; v6 = 0; do { v8 = (unsigned __int8)a1616[v5]; if ( *(unsigned __int8 *)(a2 + v5) == v8 ) { v7 = (unsigned __int8)a1616[v5]; } else { v4 |= 0x20000u; *(_DWORD *)(a1 + 360) = v4; v7 = *(unsigned __int8 *)(a2 + v5); } ++v5; if ( v7 == 46 ) ++v6; } while ( v7 != 0 && v8 != 0 && v6 <= 1 ); } else { v4 |= 0x20000u; *(_DWORD *)(a1 + 360) = v4; } result = 1; if ( (v4 & 0x20000) != 0 ) { v10 = png_safecat(v13, 128, 0, "Application built with libpng-"); v11 = png_safecat(v13, 128, v10, a2); v12 = png_safecat(v13, 128, v11, " but running with "); png_safecat(v13, 128, v12, "1.6.16"); png_warning(a1, v13); return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source