Function at 0x405b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x18]
mov ebx, dword [eax + 0x1c]
movzx edi, word [eax]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0042c0f0
xor edx, ebx
xor eax, esi
or edx, eax
jne 0x405f8e
test di, di
je 0x405b6d
cmp di, 8
mov eax, 0xffffffff
je 0x405d12
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [esp], 0x8000
call fcn.00437c40
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [ebp - 0x64], eax
jne 0x405c10
jmp 0x405d0b
cmp ebx, eax
jne 0x405c4c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [eax]
sub esp, 8
test al, al
je 0x405de7
mov eax, dword [ebp - 0x70]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00410a90
add dword [ebp - 0x5c], ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x64], eax
jbe 0x405d0b
mov ebx, dword [ebp - 0x64]
mov eax, 0x8000
sub ebx, dword [ebp - 0x5c]
cmp ebx, 0x8000
cmova ebx, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov edx, eax
jne 0x405bc0
mov dword [ebp - 0x60], eax
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x405c24
mov edx, dword [ebp - 0x60]
mov dword [esp + 0x10], ebx
mov edi, 0xfffffff5
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.CopyFileToFile:_copy_read_failed___ld_vs__ld_
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.0040fb90
test esi, esi
je 0x405c81
mov dword [esp], esi
call fcn.00437b90
test edi, edi
jne 0x406014
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp byte [ecx + 8], 0
je 0x405b65
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov edi, eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
je 0x405cf7
cmp eax, 0x10
jne 0x405cfe
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
cmp edx, 0x8074b50
je 0x405fbc
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call esi
cmp dword [eax], 4
je 0x405cab
lea esp, [ebp - 0xc]
mov eax, 0xfffffff5
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
jmp 0x405c75
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x50]
mov dword [ebp - 0x5c], edx
mov esi, dword [eax]
mov dword [esp], 0x8000
call fcn.00437c40
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_memset
mov dword [esp], 0x8000
call fcn.00437c40
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x64], eax
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0x5c]
mov ecx, 0xe
mov dword [ebp - 0x60], edi
mov eax, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], 0x441fb2
mov dword [esp + 4], 0xfffffff1
mov dword [esp], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x8000
mov dword [ebp - 0x24], 2
call fcn.00411030
test eax, eax
je 0x405df1
cmp eax, 0xfffffffa
je 0x405f60
mov dword [esp + 0xc], eax
mov edi, 0xfffffffe
mov dword [esp + 8], str.Call_to_inflateInit2_failed__zerr_d_
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.0040fb90
jmp 0x405ef8
mov edi, 0xfffffff5
jmp 0x405c75
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jne 0x405e46
mov eax, dword [ebp - 0x70]
mov edi, 0x8000
cmp eax, 0x8000
cmovbe edi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov edx, eax
je 0x405f20
cmp edi, eax
jne 0x405f35
sub dword [ebp - 0x70], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004114b0
mov edi, eax
mov eax, dword [ebp - 0x40]
cmp edi, 1
ja 0x405fc7
test eax, eax
je 0x405e77
cmp edi, 1
jne 0x405e03
cmp eax, 0x8000
je 0x405eb0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [esp], ecx
sub edx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
call dword [eax]
sub esp, 8
test al, al
je 0x40600a
mov ecx, dword [ebp - 0x64]
test edi, edi
mov dword [ebp - 0x40], 0x8000
mov dword [ebp - 0x44], ecx
je 0x405e03
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x68], eax
jne 0x405ec1
mov edx, dword [ebp - 0x70]
xor edi, edi
test edx, edx
je 0x405eed
mov ecx, dword [ebp - 0x68]
mov edi, 0xfffffff7
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Zip:_size_mismatch_on_inflated_file___lu_vs__u_
mov dword [esp + 4], 0
mov dword [esp + 0x10], ecx
mov dword [esp], 5
call fcn.0040fb90
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.00413c90
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x405f07
mov dword [esp], eax
call fcn.00437b90
test ebx, ebx
je 0x405c81
mov dword [esp], ebx
call fcn.00437b90
jmp 0x405c81
mov dword [ebp - 0x5c], eax
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x405e1a
mov edx, dword [ebp - 0x5c]
mov dword [esp + 0x10], edi
mov edi, 0xfffffff5
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Zip:_inflate_read_failed___ld_vs__ld_
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.0040fb90
jmp 0x405eed
mov dword [esp + 0xc], 0x441fb2
mov edi, 0xfffffffe
mov dword [esp + 8], str.Installed_zlib_is_not_compatible_with_linked_version___s_
mov dword [esp + 4], 0
mov dword [esp], 6
call fcn.0040fb90
jmp 0x405ef8
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], str.Zip:_lseek_to_data_at__lld_failed
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.0040fb90
mov eax, 0xfffffff5
jmp 0x405b65
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x4c]
jmp 0x405cdb
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0xc], edi
mov edi, 0xfffffffe
mov dword [esp + 8], str.Zip:_inflate_zerr_d__nIn_p_aIn_u_nOut_p_aOut_u_
mov dword [esp + 4], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], 5
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x10], eax
call fcn.0040fb90
jmp 0x405eed
mov edi, 0xfffffff7
jmp 0x405eed
mov eax, edi
jmp 0x405b65