// // png_user_version_check from 0x64d2c4 to 0x64d376 (178 bytes) // // 1 xrefs: // > png_create_png_struct @ 0x64d3e8 // // 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_user_version_check(int a1, int a2) { unsigned __int8 *v2; // r5 int v3; // r7 int v4; // lr _BYTE *v5; // r6 int v6; // r2 int v7; // t1 int v8; // r4 int v9; // t1 int v10; // r2 bool v11; // zf char v12; // r2 int v13; // r2 int v17; // r0 int v18; // r0 int v19; // r0 _BYTE v20[132]; // [sp+0h] [bp-84h] BYREF if ( a2 ) { v2 = (unsigned __int8 *)(a2 - 1); v3 = *(_DWORD *)(a1 + 312); v4 = 0; v5 = &algn_9BB529[2]; do { v7 = *++v2; v6 = v7; v9 = (unsigned __int8)*++v5; v8 = v9; if ( v6 == v9 ) { v10 = v8; } else { v3 |= 0x20000u; *(_DWORD *)(a1 + 312) = v3; v10 = *v2; } if ( v10 == 46 ) ++v4; v11 = v10 == 0; if ( v10 ) v11 = v8 == 0; v12 = !v11; if ( v4 <= 1 ) v13 = v12 & 1; else v13 = 0; } while ( v13 ); } else { v3 = *(_DWORD *)(a1 + 312) | 0x20000; *(_DWORD *)(a1 + 312) = v3; } if ( (v3 & 0x20000) == 0 ) return 1; v17 = png_safecat(v20, 128, 0, "Application built with libpng-"); v18 = png_safecat(v20, 128, v17, a2); v19 = png_safecat(v20, 128, v18, " but running with "); png_safecat(v20, 128, v19, "1.6.16"); png_warning(a1, v20); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source