Function at 0x4e9b80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], fcn.004049c0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x64], str.1.5.1
push 0x28c
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x84], 0x28c
call fcn.00503856
mov esi, eax
add esp, 4
mov dword [ebp - 0x8c], esi
test esi, esi
je 0x4e9bff
push 0x28c
push 0
push esi
call fcn.005091d0
add esp, 0xc
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x58], esi
cmp dword [ebp - 0x58], 0
je 0x4e9e2f
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x258], 0xf4240
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x25c], 0xf4240
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x260], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x4e9c4c
mov dword [eax + 0x40], fcn.00520f30
jmp 0x4e9c4e
xor eax, eax
push 0
push eax
mov dword [ebp - 0x74], eax
call fcn.0052bb60
add esp, 8
test eax, eax
je 0x4e9c68
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x4e9c8a
mov eax, dword [ebp - 0x68]
mov dword [ecx + 0x238], eax
mov eax, dword [ebp - 0x60]
mov dword [ecx + 0x23c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ecx + 0x240], eax
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x4e9ca3
mov eax, dword [ebp - 0x80]
mov dword [ecx + 0x4c], eax
mov eax, dword [ebp - 0x70]
mov dword [ecx + 0x44], eax
mov eax, dword [ebp - 0x78]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x4e9ccb
mov ecx, str.1.5.1
sub edx, ecx
mov al, byte [edx + ecx]
cmp al, byte [ecx]
je 0x4e9cc2
mov eax, dword [ebp - 0x58]
or dword [eax + 0x70], 0x20000
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e9cb1
jmp 0x4e9cd5
mov eax, dword [ebp - 0x58]
or dword [eax + 0x70], 0x20000
mov eax, dword [ebp - 0x58]
test dword [eax + 0x70], 0x20000
je 0x4e9d22
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4e9d1b
cmp byte [eax], 0x31
jne 0x4e9cf3
cmp byte [eax + 2], 0x35
je 0x4e9d22
test eax, eax
je 0x4e9d1b
push str.1.5.1
push eax
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.005029ca
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
add esp, 0x14
call fcn.004f0b60
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x5c], 0
jne 0x4e9d62
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0xb4], 0x2000
mov edx, dword [edx + 0xb4]
call fcn.004f5dd0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0xb0], 0
jne 0x4e9d62
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x98], 0x4ef480
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x9c], 0x4ef4d0
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x5c], 0
mov dword [eax + 0xa0], ecx
jne 0x4e9de2
mov eax, dword [ebp - 0x58]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.00526940
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x4e9dac.5
jmp dword [eax*4 + 0x4e9eb0]
mov edx, str.zlib_memory_error
jmp 0x4e9dcd
mov edx, str.zlib_stream_error
jmp 0x4e9dcd
mov edx, str.zlib_version_error
jmp 0x4e9dcd
mov edx, str.Unknown_zlib_error
mov ecx, dword [ebp - 0x58]
call fcn.004f0b60
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x5c], 0
je 0x4e9e40
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax + 0xb0]
test ecx, ecx
je 0x4e9e11
test eax, eax
je 0x4e9e11
mov edx, dword [ecx + 0x240]
push eax
test edx, edx
je 0x4e9e09
push ecx
call edx
add esp, 8
jmp 0x4e9e11
call fcn.00502847
add esp, 4
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0xb0], 0
call fcn.004f5c80
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax + 0xb0]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x58]
mov eax, dword [eax + 0xb4]
mov dword [ecx + 0x88], eax
test esi, esi
je 0x4e9e9c
cmp dword [esi + 0x50], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0x4f0d60
je 0x4e9e92
mov edx, str.Cant_set_both_read_data_fn_and_write_data_fn_in_the_same_structure
mov dword [esi + 0x50], 0
mov ecx, esi
call fcn.004f0b60
mov dword [esi + 0x14c], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret