Function at 0x546350
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x6687b8]
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.005d3435
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [ebp - 0x90], esi
je 0x5463b9
push 0x2b0
push edi
push esi
call fcn.005da970
add esp, 0xc
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x5465cd
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 0x546402
mov dword [eax + 0x40], fcn.005da06c
jmp 0x546404
xor eax, eax
push edi
push eax
mov dword [ebp - 0x80], eax
call fcn.005f4cf0
add esp, 8
test eax, eax
je 0x54641c
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
je 0x54643e
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 0x54645a
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 0x546489
mov eax, str.1.5.0
sub edx, eax
mov cl, byte [edx + eax]
cmp cl, byte [eax]
je 0x54647f
mov ecx, dword [ebp - 0x5c]
or dword [ecx + 0x70], esi
mov cl, byte [eax]
add eax, ebx
test cl, cl
jne 0x546472
jmp 0x54648f
mov eax, dword [ebp - 0x5c]
or dword [eax + 0x70], esi
mov edx, dword [ebp - 0x5c]
test dword [edx + 0x70], esi
je 0x5464d4
mov eax, dword [ebp - 0x64]
cmp eax, edi
je 0x5464d1
cmp byte [eax], 0x31
jne 0x5464a9
cmp byte [eax + 2], 0x35
je 0x5464d4
cmp eax, edi
je 0x5464d1
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.005d7813
mov esi, dword [ebp - 0x5c]
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.0054c4a0
mov dword [ebp - 0x60], ebx
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x546510
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.005600d0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0xb0], eax
cmp dword [edx + 0xb0], edi
jne 0x546510
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x98], 0x54af30
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 0x9c], 0x54af80
mov ecx, dword [ebp - 0x60]
test ecx, ecx
mov dword [eax + 0xa0], edx
jne case.0x546550.0
mov esi, dword [ebp - 0x5c]
add esi, 0x78
call fcn.0055e790
add eax, 6
cmp eax, 6
ja case.0x546550.5
jmp dword [eax*4 + 0x546640]
mov ecx, str.zlib_memory_error
jmp 0x546571
mov ecx, str.zlib_stream_error
jmp 0x546571
mov ecx, str.zlib_version_error
jmp 0x546571
mov ecx, str.Unknown_zlib_error
mov esi, dword [ebp - 0x5c]
call fcn.0054c4a0
mov dword [ebp - 0x60], ebx
mov edx, dword [ebp - 0x60]
test edx, edx
mov eax, dword [ebp - 0x5c]
je 0x5465e0
mov edx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
je 0x5465b2
cmp edx, edi
je 0x5465b2
mov ecx, dword [eax + 0x240]
cmp ecx, edi
push edx
je 0x5465aa
push eax
call ecx
add esp, 8
jmp 0x5465b2
call fcn.005d27e0
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.0055ff90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d28b3
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 0x54662a
cmp dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], 0x54c6b0
je 0x546624
mov ecx, str.Cant_set_both_read_data_fn_and_write_data_fn_in_the_same_structure
mov dword [esi + 0x50], edi
call fcn.0054c4a0
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.005d28b3
mov esp, ebp
pop ebp
ret