Function at 0x597fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x7dcee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp + 0x1c]
push eax
mov dword [ebp - 0x74], edx
mov edx, dword [ebp + 0x20]
push ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], 0
push 1
call fcn.005965e0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
add esp, 0xc
test eax, eax
je 0x598286
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov eax, 0xf4240
mov dword [ecx + 0x248], eax
mov dword [edx + 0x24c], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
push 0x40
push fcn.00697a20
mov dword [eax + 0x250], 0x7fff
push edx
mov dword [ecx + 0xe0], 0x7a1200
call fcn.00595840
push 0
push eax
call fcn.00697ad4
add esp, 0x14
test eax, eax
je 0x598064
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x58]
push ecx
push edx
push eax
call fcn.00596750
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x58]
push edx
push eax
push ecx
call fcn.005958e0
mov ecx, dword [ebp - 0x68]
add esp, 0x20
test ecx, ecx
je 0x5980d0
mov edx, str.1.4.19
xor esi, esi
lea eax, [ecx - 1]
sub edx, ecx
mov cl, byte [eax + 1]
inc eax
cmp cl, byte [edx + eax]
je 0x5980b7
mov ecx, dword [ebp - 0x58]
or dword [ecx + 0x70], 0x20000
mov cl, byte [eax]
cmp cl, 0x2e
jne 0x5980bf
inc esi
cmp esi, 2
jge 0x5980da
test cl, cl
je 0x5980da
cmp byte [edx + eax], 0
jne 0x5980a4
jmp 0x5980da
mov eax, dword [ebp - 0x58]
or dword [eax + 0x70], 0x20000
mov edx, dword [ebp - 0x58]
test dword [edx + 0x70], 0x20000
je 0x598188
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x598148
push 0
call fcn.005951f0
mov cl, byte [esi]
add esp, 4
cmp cl, byte [eax]
jne 0x598123
cmp cl, 0x31
jne 0x598118
push 0
call fcn.005951f0
mov cl, byte [esi + 2]
add esp, 4
cmp cl, byte [eax + 2]
jne 0x598123
cmp byte [esi], 0x30
jne 0x598188
cmp byte [esi + 2], 0x39
jge 0x598188
test esi, esi
je 0x598148
push esi
push str.Application_was_compiled_with_png.h_from_libpng__.20s
lea edx, [ebp - 0x54]
push 0x50
push edx
call fcn.00696275
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push eax
push ecx
call fcn.00595940
add esp, 0x18
push 0
call fcn.005951f0
push eax
push str.Application__is__running_with_png.c_from_libpng__.20s
lea edx, [ebp - 0x54]
push 0x50
push edx
call fcn.00696275
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push eax
push ecx
call fcn.00595940
mov edx, dword [ebp - 0x58]
push str.Incompatible_libpng_version_in_application_and_library
push edx
call fcn.00595940
mov esi, 1
add esp, 0x24
mov dword [ebp - 0x5c], esi
jmp 0x59818d
mov esi, 1
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x5981cf
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0xb4], 0x2000
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebp - 0x58]
push eax
push ecx
call fcn.00596860
mov edx, dword [ebp - 0x58]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 0x58]
add esp, 8
cmp dword [eax + 0xb0], 0
jne 0x5981cf
mov dword [ebp - 0x5c], esi
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x98], 0x594b80
mov ecx, dword [ebp - 0x58]
mov dword [edx + 0x9c], fcn.00594be0
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0xa0], eax
test edx, edx
jne case.0x59821a.0
mov eax, dword [ebp - 0x58]
push 0x38
add eax, 0x78
push 0x6e37bc
push eax
call fcn.00611740
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x59821a.5
jmp dword [eax*4 + 0x5982e0]
mov ecx, dword [ebp - 0x58]
push str.zlib_memory_error
push ecx
jmp 0x598240
mov edx, dword [ebp - 0x58]
push str.zlib_version_error
push edx
jmp 0x598240
mov eax, dword [ebp - 0x58]
push str.Unknown_zlib_error
push eax
call fcn.00595940
add esp, 8
mov dword [ebp - 0x5c], esi
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x598297
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0xb0]
mov ecx, dword [ebp - 0x58]
push eax
push ecx
call fcn.00596830
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
push eax
mov dword [edx + 0xb0], 0
mov edx, dword [ebp - 0x58]
push ecx
push edx
call fcn.00596690
add esp, 0x14
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0069528d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x84], edx
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp - 0x58]
push 0
push 0
push eax
mov dword [ecx + 0x88], edx
call fcn.005998a0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.0069528d
mov esp, ebp
pop ebp
ret