Function at 0x4917d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x7c
mov eax, dword [eax + 0x1c]
lea eax, [eax + edx*8]
mov edx, dword [esi + 0x10]
movzx ecx, word [eax + 4]
mov eax, dword [eax]
mov word [esp + 0x4a], cx
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x44], eax
sub eax, 0x2e
cmp eax, ecx
jb 0x491804
add ecx, dword [edx + 0x1c]
cmp eax, ecx
jbe 0x491830
mov dword [esp + 8], str.Zip:_Invalid_entry_pointer
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
mov eax, 0xfffffff8
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 8]
xor edx, edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xc]
mov edi, eax
mov dword [esp + 0x40], eax
movzx eax, word [ecx - 0x24]
mov word [ebx], ax
movzx eax, word [ecx - 0x22]
mov dword [ebx + 4], eax
mov eax, dword [ecx - 0x1e]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx - 0x1a]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx - 0x16]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx - 4]
mov dword [esp + 0x38], eax
add eax, 0x1e
adc edx, 0
cmp edi, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jl 0x491c21
jg 0x491897
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x4c], eax
jbe 0x491c21
mov edi, dword [esi]
lea ebp, [esp + 0x52]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004a9ae0
xor eax, dword [esp + 0x38]
or edx, eax
jne 0x491c47
mov dword [esp + 8], 0x1e
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
je 0x491982
cmp eax, 0x1e
jne 0x491991
cmp dword [esp + 0x52], 0x4034b50
jne 0x491c78
test byte [esp + 0x58], 8
jne 0x491af0
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x64]
mov byte [ebx + 8], 0
mov edx, dword [ebx + 0x14]
cmp eax, ecx
jne 0x491bd8
cmp edx, dword [esp + 0x68]
jne 0x491bd8
mov ebp, dword [ebx + 0xc]
mov edi, dword [esp + 0x60]
cmp ebp, edi
jne 0x491cae
movzx ecx, word [esp + 0x6c]
movzx eax, word [esp + 0x4a]
cmp cx, ax
jne 0x491cb5
xor edx, edx
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x34]
cmp dword [esp + 0x40], edx
jg 0x4919cd
jge 0x4919c7
mov dword [esp + 8], str.Zip:_Invalid_declared_length
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
mov eax, 0xfffffff8
jmp 0x491825
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4918c9
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], str.Zip:_failed_reading_lfh_name_from_offset__lld
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp], 5
call fcn.004750f0
mov eax, 0xfffffff5
jmp 0x491825
cmp dword [esp + 0x4c], eax
jbe 0x49195c
movzx ebp, cx
mov dword [esp], ebp
call sub.msvcrt.dll_malloc
mov esi, dword [esi]
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 8], edx
mov edi, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.004a9ae0
xor edx, dword [esp + 0x34]
xor eax, dword [esp + 0x30]
or edx, eax
jne 0x491cdb
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
je 0x491aa0
cmp ebp, eax
jne 0x491aaf
mov eax, dword [esp + 0x44]
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
mov dword [esp], edi
test eax, eax
jne 0x491d0c
call sub.msvcrt.dll_free
movzx eax, word [esp + 0x6c]
xor edx, edx
movzx esi, word [esp + 0x6e]
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x34]
xor edi, edi
add eax, esi
adc edx, edi
cmp dword [esp + 0x40], edx
jge 0x491b00
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.Zip:_bad_data_offset__lld_in_zip
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
mov eax, 0xfffffff8
jmp 0x491825
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x491a0c
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 8], str.Zip:_failed_reading_lfh_name_from_offset__lld
mov dword [esp + 4], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp], 5
call fcn.004750f0
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, 0xfffffff5
jmp 0x491825
mov byte [ebx + 8], 1
jmp 0x491937
jg 0x491b0c
cmp dword [esp + 0x4c], eax
jb 0x491a71
mov ecx, dword [ebx + 0x10]
xor edi, edi
mov esi, ecx
add esi, eax
adc edi, edx
cmp dword [esp + 0x40], edi
jg 0x491b67
jge 0x491b61
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 8], str.Zip:_bad_compressed_length_in_zip___lld___u____lld_
mov dword [esp + 4], 0
mov dword [esp], 5
mov dword [esp + 0x1c], edi
call fcn.004750f0
mov eax, 0xfffffff8
jmp 0x491825
cmp dword [esp + 0x4c], esi
jb 0x491b1f
cmp word [ebx], 0
jne 0x491bc8
mov ecx, dword [ebx + 0x14]
xor edi, edi
mov esi, ecx
add esi, eax
adc edi, edx
cmp dword [esp + 0x40], edi
jg 0x491bc8
jge 0x491bc2
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 8], str.Zip:_bad_uncompressed_length_in_zip___lld___u____lld_
mov dword [esp + 4], 0
mov dword [esp], 5
mov dword [esp + 0x1c], edi
call fcn.004750f0
mov eax, 0xfffffff8
jmp 0x491825
cmp dword [esp + 0x4c], esi
jb 0x491b80
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], edx
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Zip:_size_crc32_mismatch._expected__u___u___x__was__u___u___x
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
mov eax, 0xfffffff7
jmp 0x491825
mov dword [esp + 8], str.Zip:_bad_local_hdr_offset_in_zip
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
mov eax, 0xfffffff8
jmp 0x491825
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], str.Zip:_failed_seek_to_offset__lld
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp], 5
call fcn.004750f0
jmp 0x491991
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], str.Zip:_didnt_find_signature_at_start_of_lfh__offset_lld
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp], 5
call fcn.004750f0
mov eax, 0xfffffff8
jmp 0x491825
mov esi, edx
jmp 0x491be3
mov dword [esp + 8], str.Zip:_lfh_name_did_not_match_central_directory.
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
mov eax, 0xfffffff7
jmp 0x491825
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 8], str.Zip:_failed_seek_to_offset__lld
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp], 5
call fcn.004750f0
jmp 0x491aaf
call sub.msvcrt.dll_free
mov eax, 0xfffffff7
jmp 0x491825