// // png_set_tIME from 0x66041c to 0x660480 (100 bytes) // // 1 xrefs: // > png_handle_tIME @ 0x65e154 // // 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_set_tIME(int result, int a2, int a3) { bool v3; // zf int v4; // r3 _DWORD *v5; // r3 int v7; // r1 v3 = a3 == 0; if ( a3 ) v3 = a2 == 0; v4 = v3; if ( !result ) v4 |= 1u; if ( !v4 && (*(_DWORD *)(result + 308) & 0x200) == 0 ) { if ( (unsigned int)*(unsigned __int8 *)(a3 + 2) - 1 > 0xB || (unsigned int)*(unsigned __int8 *)(a3 + 3) - 1 > 0x1E || *(unsigned __int8 *)(a3 + 4) > 0x17u || *(unsigned __int8 *)(a3 + 5) > 0x3Bu || *(unsigned __int8 *)(a3 + 6) > 0x3Cu ) { return png_warning(result, "Ignoring invalid time value"); } else { v5 = (_DWORD *)(a2 + 140); result = *(_DWORD *)a3; v7 = *(_DWORD *)(a3 + 4); *v5 = *(_DWORD *)a3; v5[1] = v7; *(_DWORD *)(a2 + 8) |= 0x200u; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source