Function at 0x461660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4d16b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x64], str.1.5.0
push 0x2b0
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x88], 0x2b0
call fcn.00482392
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [ebp - 0x90], esi
je 0x4616c9
push 0x2b0
push edi
push esi
call fcn.004854b0
add esp, 0xc
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4618dd
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
mov eax, 0xf4240
mov dword [ecx + 0x258], eax
mov dword [edx + 0x25c], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0x260], edi
mov eax, ecx
cmp eax, edi
mov dword [ebp - 0x7c], ecx
je 0x461712
mov dword [eax + 0x40], fcn.00484f64
jmp 0x461714
xor eax, eax
push edi
push eax
mov dword [ebp - 0x80], eax
call fcn.0049e53c
add esp, 8
test eax, eax
je 0x46172c
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
je 0x46174e
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0x238], edx
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x23c], ecx
mov dword [eax + 0x240], edx
mov eax, dword [ebp - 0x5c]
cmp eax, edi
je 0x46176a
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x78]
mov dword [eax + 0x4c], ecx
mov ecx, dword [ebp - 0x74]
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], ecx
mov edx, dword [ebp - 0x64]
cmp edx, edi
mov ebx, 1
mov esi, 0x20000
je 0x461799
mov eax, str.1.5.0
sub edx, eax
mov cl, byte [edx + eax]
cmp cl, byte [eax]
je 0x46178f
mov ecx, dword [ebp - 0x5c]
or dword [ecx + 0x70], esi
mov cl, byte [eax]
add eax, ebx
test cl, cl
jne 0x461782
jmp 0x46179f
mov eax, dword [ebp - 0x5c]
or dword [eax + 0x70], esi
mov edx, dword [ebp - 0x5c]
test dword [edx + 0x70], esi
je 0x4617e4
mov eax, dword [ebp - 0x64]
cmp eax, edi
je 0x4617e1
cmp byte [eax], 0x31
jne 0x4617b9
cmp byte [eax + 2], 0x35
je 0x4617e4
cmp eax, edi
je 0x4617e1
push str.1.5.0
push eax
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.00482d6f
mov esi, dword [ebp - 0x5c]
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.004665c0
mov dword [ebp - 0x60], ebx
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x461820
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x5c]
mov dword [edx + 0xb4], 0x2000
mov ecx, dword [eax + 0xb4]
call fcn.0046fa50
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0xb0], eax
cmp dword [edx + 0xb0], edi
jne 0x461820
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x98], 0x466900
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 0x9c], 0x466950
mov ecx, dword [ebp - 0x60]
test ecx, ecx
mov dword [eax + 0xa0], edx
jne case.0x461860.0
mov esi, dword [ebp - 0x5c]
add esi, 0x78
call fcn.004789f0
add eax, 6
cmp eax, 6
ja case.0x461860.5
jmp dword [eax*4 + 0x461950]
mov ecx, str.zlib_memory_error
jmp 0x461881
mov ecx, str.zlib_stream_error
jmp 0x461881
mov ecx, str.zlib_version_error
jmp 0x461881
mov ecx, str.Unknown_zlib_error
mov esi, dword [ebp - 0x5c]
call fcn.004665c0
mov dword [ebp - 0x60], ebx
mov edx, dword [ebp - 0x60]
test edx, edx
mov eax, dword [ebp - 0x5c]
je 0x4618f0
mov edx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
je 0x4618c2
cmp edx, edi
je 0x4618c2
mov ecx, dword [eax + 0x240]
cmp ecx, edi
push edx
je 0x4618ba
push eax
call ecx
add esp, 8
jmp 0x4618c2
call fcn.0047fdbd
add esp, 4
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0xb0], edi
mov ecx, dword [ebp - 0x68]
push edx
mov edx, dword [ebp - 0x6c]
call fcn.0046f910
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f460
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x5c]
mov edx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 0x84], edx
mov ecx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x5c]
cmp esi, edi
mov edx, dword [eax + 0xb4]
mov dword [ecx + 0x88], edx
je 0x46193a
cmp dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], 0x467dc0
je 0x461934
mov ecx, str.Cant_set_both_read_data_fn_and_write_data_fn_in_the_same_structure
mov dword [esi + 0x50], edi
call fcn.004665c0
mov dword [esi + 0x14c], edi
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f460
mov esp, ebp
pop ebp
ret