Function at 0x4971e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x2c], 0
push edi
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [esi + 0xd8]
mov dword [ebp - 0x24], edi
mov dword [esi + 0x8d8], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [esi + 0x84], 1
mov dword [esi + 0x109bc], edi
test eax, eax
je 0x497259
shl eax, 2
push eax
call fcn.00531933
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x497259
xor eax, eax
cmp dword [esi + 0x6c], eax
jbe 0x497259
nop dword [eax + eax]
mov dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esi + 0x6c]
jb 0x497250
mov eax, dword [esi + 0x70]
test eax, eax
je 0x497289
shl eax, 2
push eax
call fcn.00531933
mov ebx, eax
add esp, 4
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x497289
xor eax, eax
cmp dword [esi + 0x70], eax
jbe 0x497289
nop dword [eax]
mov dword [ebx + eax*4], edi
inc eax
cmp eax, dword [esi + 0x70]
jb 0x497280
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], ebx
lea ecx, [esi + 0xd8]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], ecx
lea eax, [esi + 0xc8]
mov dword [esi + 0x8d8], ecx
push 4
mov edx, eax
mov ecx, esi
call fcn.004925f0
add esp, 4
test eax, eax
je 0x4975d7
push 4
lea eax, [esi + 0xc8]
push 0x5d6c84
push eax
call fcn.00539a10
add esp, 0xc
test eax, eax
jne 0x497558
mov ecx, esi
call fcn.0048e0b0
test eax, eax
jne 0x497551
movzx edx, word [esi + 0x10954]
mov ecx, esi
push 2
call fcn.004934d0
add esp, 4
test eax, eax
je 0x497320
cmp eax, edi
cmovg edi, eax
mov dword [ebp - 4], edi
cmp eax, 1
jg 0x4974c0
movzx ebx, word [esi + 0x10956]
test ebx, ebx
je 0x4973b3
mov eax, dword [esi + 0x10918]
test eax, eax
je 0x497342
push eax
call fcn.0052fd09
add esp, 4
push ebx
call fcn.00531933
add esp, 4
mov dword [esi + 0x10918], eax
test eax, eax
jne 0x49739e
push 0x401
push ecx
push ebx
lea edi, [esi + 0x8dc]
push str.warning:__extra_field_too_long___d_.__Ignoring..._n
push edi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov edx, dword [esi + 0x10910]
mov ecx, esi
sub edx, dword [esi + 0x10914]
sub edx, dword [esi + 0x108e4]
add edx, dword [esi + 0x108e8]
add edx, ebx
call fcn.00492840
jmp 0x4973b3
push ebx
mov edx, eax
mov ecx, esi
call fcn.004925f0
add esp, 4
test eax, eax
je 0x497504
movzx eax, word [esi + 0x10958]
test eax, eax
je 0x4973df
mov edx, dword [esi + 0x10910]
mov ecx, esi
sub edx, dword [esi + 0x10914]
sub edx, dword [esi + 0x108e4]
add edx, dword [esi + 0x108e8]
add edx, eax
call fcn.00492840
cmp dword [esi + 0x74], 0
je 0x497407
mov ecx, esi
call fcn.00497b00
mov ecx, dword [ebp - 0xc]
test eax, eax
mov eax, dword [ebp - 8]
je 0x497402
inc eax
add ecx, 0x20
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jmp 0x49744b
inc dword [ebp - 0x18]
jmp 0x49744b
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x497471
xor edi, edi
test eax, eax
je 0x497445
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esi + 0xc0]
lea edx, [esi + 0x109f0]
push dword [esi + 0x18]
mov ecx, dword [eax + edi*4]
call fcn.004911f0
add esp, 4
cmp eax, 1
je 0x497463
inc edi
cmp edi, dword [esi + 0x6c]
jb 0x497420
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 4]
inc ebx
mov dword [ebp - 0x34], ebx
cmp eax, 0x40
jae 0x4975e6
jmp 0x4972a9
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x497471
mov dword [eax + edi*4], 1
xor edi, edi
cmp dword [esi + 0x70], edi
jbe 0x4973e5
nop dword [eax]
mov eax, dword [esi + 0xc4]
lea edx, [esi + 0x109f0]
push dword [esi + 0x18]
mov ecx, dword [eax + edi*4]
call fcn.004911f0
add esp, 4
cmp eax, 1
je 0x4974aa
inc edi
cmp edi, dword [esi + 0x70]
jb 0x497480
jmp 0x4973e5
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
test ebx, ebx
je 0x49744b
mov dword [ebx + edi*4], 1
jmp 0x49744b
push 0x401
push ecx
push 0x5cc628
lea edx, [esi + 0x88dc]
lea ecx, [esi + 0x109f0]
lea edi, [esi + 0x8dc]
call fcn.0049a550
push eax
push str._s:__bad_filename_length___s__n
push edi
call fcn.00436c30
add esp, 0x14
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov edi, dword [ebp - 4]
jmp 0x4975df
push 0x401
push ecx
push 0x5cc628
lea edx, [esi + 0x88dc]
lea ecx, [esi + 0x109f0]
lea edi, [esi + 0x8dc]
call fcn.0049a550
push eax
push str._s:__bad_extra_field_length___s__n
push edi
call fcn.00436c30
add esp, 0x14
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov edi, 0x33
cmp dword [ebp - 4], edi
cmovge edi, dword [ebp - 4]
jmp 0x4975dc
mov edi, eax
jmp 0x4975dc
cmp bx, word [esi + 0x1096e]
jne 0x497582
push 4
lea eax, [esi + 0xc8]
push 0x5d6c80
push eax
call fcn.00539a10
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x38], eax
jmp 0x4975df
mov eax, dword [ebp - 8]
lea edi, [esi + 0x8dc]
mov ecx, dword [ebp - 0x30]
inc eax
push 0x401
push ecx
add eax, ecx
push eax
push str.error:__expected_central_file_header_signature_not_found__file__lu_._n
push edi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
push 0x401
push ecx
push str.___please_check_that_you_have_transferred_or_created_the_zipfile_in_the_n__appropriate_BINARY_mode_and_that_you_have_compiled_UnZip_properly__n
push edi
call fcn.00436c30
add esp, 0xc
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov edi, 3
jmp 0x4975dc
mov edi, 0x33
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
mov eax, dword [esi + 0x108e8]
mov ecx, esi
mov edx, dword [ebp - 8]
mov ebx, dword [esi + 0x10910]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x108ec]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00497e10
add esp, 0x18
test eax, eax
je 0x49763a
cmp eax, edi
cmovg edi, eax
cmp dword [esi + 0x109c0], 1
mov dword [ebp - 4], edi
jg 0x49768e
cmp edi, 0x50
je 0x49768e
push 0
push ebx
push dword [esi + 0x10908]
call fcn.005441f1
add esp, 0xc
mov dword [esi + 0x10910], eax
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00543773
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [ebp - 0x30], 0x40
cmp dword [ebp - 0x10], 0
mov dword [esi + 0x108e8], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x108ec], eax
jne 0x497695
mov ebx, dword [ebp - 0x34]
jmp 0x497299
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4977f3
shl eax, 2
push eax
call fcn.00531933
mov edi, eax
add esp, 4
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4976ff
push 0x401
push ecx
lea edi, [esi + 0x8dc]
push str.warning:__cannot_alloc_memory_to_sort_dir_times_perms_etc._n
push edi
call fcn.00436c30
add esp, 0xc
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4977f3
mov eax, dword [ecx]
push ecx
mov dword [ebp - 0x14], eax
call fcn.0052fd09
mov ecx, dword [ebp - 0x14]
add esp, 4
test ecx, ecx
jne 0x4976e5
jmp 0x4977f3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 0
cmp eax, 1
jne 0x497715
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
jmp 0x497744
xor ecx, ecx
test eax, eax
je 0x497733
mov edx, dword [ebp - 0x14]
nop
mov dword [edi + ecx*4], edx
inc ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
cmp ecx, eax
jb 0x497720
push 0x49a5b0
push 4
push eax
push edi
call fcn.0052fd30
add esp, 0x10
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x4977b4
nop dword [eax + eax]
mov eax, dword [edi + ebx*4]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x30], eax
call fcn.0048f330
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4977a3
mov eax, dword [ebp - 0x30]
lea edi, [esi + 0x8dc]
inc dword [ebp - 0x34]
push 0x201
push ecx
push dword [eax + 4]
push str.warning:__set_times_attribs_failed_for__s_n
push edi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov eax, dword [ebp - 4]
test eax, eax
mov edi, dword [ebp - 0xc]
cmove eax, dword [ebp - 0x40]
mov dword [ebp - 4], eax
push dword [ebp - 0x30]
call fcn.0052fd09
inc ebx
add esp, 4
cmp ebx, dword [ebp - 0x1c]
jb 0x497750
push edi
call fcn.0052fd09
add esp, 4
cmp dword [esi + 0x44], 0
jne 0x4977f3
cmp dword [esi + 0x38], 0
jne 0x4977f3
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4977f3
push 0
push ecx
push eax
lea edi, [esi + 0x8dc]
push str._____failed_setting_attrib_times_for__lu_dir_entries
push edi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x497881
cmp dword [ebp - 0x10], 0
je 0x497878
xor ebx, ebx
cmp dword [esi + 0x6c], ebx
jbe 0x497878
lea ecx, [ebx + 0xb]
nop
cmp dword [eax + ebx*4], 0
jne 0x497872
cmp dword [esi + 0xa0], 0
jne 0x49785d
cmp dword [esi + 0xa4], 0
jne 0x49785d
mov eax, dword [esi + 0xc0]
lea edi, [esi + 0x8dc]
push 0x401
push ecx
push dword [eax + ebx*4]
push str.caution:_filename_not_matched:___s_n
push edi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov ecx, 0xb
jmp 0x497863
inc dword [esi + 0x9c]
mov eax, dword [ebp - 4]
cmp eax, 1
cmovle eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
inc ebx
cmp ebx, dword [esi + 0x6c]
jb 0x497810
push eax
call fcn.0052fd09
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4978db
cmp dword [ebp - 0x10], 0
je 0x4978d2
xor ebx, ebx
cmp dword [esi + 0x70], ebx
jbe 0x4978d2
cmp dword [eax + ebx*4], 0
jne 0x4978cc
mov eax, dword [esi + 0xc4]
lea edi, [esi + 0x8dc]
push 0x401
push ecx
push dword [eax + ebx*4]
push str.caution:_excluded_filename_not_matched:___s_n
push edi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov eax, dword [ebp - 0x28]
inc ebx
cmp ebx, dword [esi + 0x70]
jb 0x497895
push eax
call fcn.0052fd09
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x4978eb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x38], 0
je 0x497944
push 0x401
push ecx
lea edi, [esi + 0x8dc]
push str._nnote:__didnt_find_end_of_central_dir_signature_at_end_of_central_dir._n
push edi
call fcn.00436c30
add esp, 0xc
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
push 0x401
push ecx
push str.___please_check_that_you_have_transferred_or_created_the_zipfile_in_the_n__appropriate_BINARY_mode_and_that_you_have_compiled_UnZip_properly__n
push edi
call fcn.00436c30
add esp, 0xc
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov ebx, dword [ebp - 4]
mov eax, 1
test ebx, ebx
cmove ebx, eax
jmp 0x497947
mov ebx, dword [ebp - 4]
cmp dword [esi + 0x44], 0
mov eax, dword [ebp - 0x20]
je 0x497a89
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
cmp dword [esi + 0x38], 2
jge 0x497a89
mov edx, 0x5b9638
test ebx, ebx
je 0x49799a
push 0
push ecx
push dword [esi + 0x10904]
cmp ebx, 1
lea edi, [esi + 0x8dc]
mov eax, str.warning_
cmovne eax, edx
push eax
push str.At_least_one__serror_was_detected_in__s._n
push edi
call fcn.00436c30
add esp, 0x14
jmp 0x497a11
test ecx, ecx
jne 0x4979bc
push ecx
push ecx
push dword [esi + 0x10904]
lea edi, [esi + 0x8dc]
push str.Caution:__zero_files_tested_in__s._n
push edi
call fcn.00436c30
add esp, 0x10
jmp 0x497a11
cmp dword [esi + 0x74], 0
je 0x4979e5
add eax, dword [ebp - 0x18]
jne 0x4979e5
push eax
push ecx
push dword [esi + 0x10904]
lea edi, [esi + 0x8dc]
push str.No_errors_detected_in_compressed_data_of__s._n
push edi
call fcn.00436c30
add esp, 0x10
jmp 0x497a11
push 0
mov eax, edx
lea edi, [esi + 0x8dc]
push ecx
cmp ecx, 1
mov edx, 0x5cc080
cmovne eax, edx
push eax
push ecx
push dword [esi + 0x10904]
push str.No_errors_detected_in__s_for_the__lu_file_s_tested._n
push edi
call fcn.00436c30
add esp, 0x18
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x497a51
push 0
cmp ecx, 1
mov edx, 0x5cc080
push ecx
mov eax, 0x5b9638
cmovne eax, edx
push eax
push ecx
push str._lu_file_s_skipped_because_of_unsupported_compression_or_encoding._n
push edi
call fcn.00436c30
add esp, 0x14
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x497a89
push 0
cmp eax, 1
mov edx, 0x5cc080
mov ecx, 0x5b9638
cmovne ecx, edx
push ecx
push ecx
push eax
push str._lu_file_s_skipped_because_of_incorrect_password._n
push edi
call fcn.00436c30
add esp, 0x14
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x2c], 0
jne 0x497aaa
cmp ebx, 1
jg 0x497aaa
xor eax, eax
cmp eax, dword [ebp - 0x18]
sbb ebx, ebx
and ebx, 0x46
add ebx, 0xb
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x2c], eax
jne 0x497ac2
cmp ebx, 1
jg 0x497ac2
mov ebx, 0x52
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0
je 0x497adb
cmp ebx, 1
jg 0x497adb
mov ebx, 0x51
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x497ae9
test ebx, ebx
mov eax, 1
cmove ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret