Function at 0x46b1a4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x68], str.1.5.1
push 0x28c
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x88], 0x28c
call fcn.004013d6
mov esi, eax
add esp, 4
mov dword [ebp - 0x90], esi
cmp esi, edi
je 0x46b20a
push 0x28c
push edi
push esi
call fcn.00402394
add esp, 0xc
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x46b41c
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x60]
mov eax, 0xf4240
mov dword [ecx + 0x258], eax
mov dword [edx + 0x25c], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0x260], edi
mov eax, ecx
mov dword [ebp - 0x80], ecx
cmp eax, edi
je 0x46b253
mov dword [eax + 0x40], fcn.005e67dc
jmp 0x46b255
xor eax, eax
push edi
push eax
mov dword [ebp - 0x74], eax
call fcn.0046b4ac
add esp, 8
test eax, eax
je 0x46b26d
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x46b292
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0x238], edx
mov edx, dword [ebp - 0x6c]
mov dword [eax + 0x23c], ecx
mov dword [eax + 0x240], edx
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x46b2ab
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp + 8]
mov dword [eax + 0x4c], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], ecx
mov edx, dword [ebp - 0x68]
mov ebx, 1
mov esi, 0x20000
cmp edx, edi
je 0x46b2db
mov eax, str.1.5.1
sub edx, eax
nop
mov cl, byte [edx + eax]
cmp cl, byte [eax]
je 0x46b2d1
mov ecx, dword [ebp - 0x60]
or dword [ecx + 0x70], esi
mov cl, byte [eax]
add eax, ebx
test cl, cl
jne 0x46b2c4
jmp 0x46b2e1
mov eax, dword [ebp - 0x60]
or dword [eax + 0x70], esi
mov edx, dword [ebp - 0x60]
test dword [edx + 0x70], esi
je 0x46b326
mov eax, dword [ebp - 0x68]
cmp eax, edi
je 0x46b323
cmp byte [eax], 0x31
jne 0x46b2fb
cmp byte [eax + 2], 0x35
je 0x46b326
cmp eax, edi
je 0x46b323
push str.1.5.1
push eax
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x5c]
push 0x50
push eax
call fcn.005e694e
mov esi, dword [ebp - 0x60]
add esp, 0x14
lea ecx, [ebp - 0x5c]
call fcn.005d1630
mov dword [ebp - 0x64], ebx
mov ecx, dword [ebp - 0x64]
test ecx, ecx
jne 0x46b362
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x60]
mov dword [edx + 0xb4], 0x2000
mov ecx, dword [eax + 0xb4]
call fcn.0046b527
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x60]
mov dword [ecx + 0xb0], eax
cmp dword [edx + 0xb0], edi
jne 0x46b362
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x60]
mov dword [eax + 0x98], 0x46b5f8
mov eax, dword [ebp - 0x60]
mov dword [ecx + 0x9c], 0x472412
mov ecx, dword [ebp - 0x64]
mov dword [eax + 0xa0], edx
test ecx, ecx
jne case.0x46b3a2.0
mov eax, dword [ebp - 0x60]
add eax, 0x78
call fcn.0046b57c
add eax, 6
cmp eax, 6
ja case.0x46b3a2.5
jmp dword [eax*4 + 0x46b490]
mov ecx, str.zlib_memory_error
jmp 0x46b3c3
mov ecx, str.zlib_stream_error
jmp 0x46b3c3
mov ecx, str.zlib_version_error
jmp 0x46b3c3
mov ecx, str.Unknown_zlib_error
mov esi, dword [ebp - 0x60]
call fcn.005d1630
mov dword [ebp - 0x64], ebx
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
test edx, edx
je 0x46b42f
mov ecx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x46b401
cmp ecx, edi
je 0x46b401
mov edx, dword [eax + 0x240]
cmp edx, edi
je 0x46b3fc
push ecx
push eax
call edx
add esp, 8
jmp 0x46b401
call fcn.00418b6f
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x60]
mov dword [ecx + 0xb0], edi
mov ecx, dword [ebp - 0x6c]
push edx
mov edx, dword [ebp - 0x70]
call fcn.005d3240
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x60]
mov edx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x60]
mov dword [ecx + 0x84], edx
mov ecx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x60]
mov edx, dword [eax + 0xb4]
mov dword [ecx + 0x88], edx
cmp esi, edi
je 0x46b479
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], 0x5d179a
cmp dword [esi + 0x50], edi
je 0x46b473
mov ecx, str.Cant_set_both_read_data_fn_and_write_data_fn_in_the_same_structure
mov dword [esi + 0x50], edi
call fcn.005d1630
mov dword [esi + 0x14c], edi
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
mov esp, ebp
pop ebp
ret