Function at 0x476205
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0xd8]
mov dword [esi + 0x8d8], eax
mov eax, dword [esi + 0x6c]
push edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [esi + 0x84], 1
mov dword [esi + 0x109bc], ebx
cmp eax, ebx
jbe 0x476270
shl eax, 2
push eax
call fcn.0047da45
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x476270
cmp dword [esi + 0x6c], ebx
jbe 0x476270
mov ecx, dword [esi + 0x6c]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x70]
cmp eax, ebx
jbe 0x476296
shl eax, 2
push eax
call fcn.0047da45
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x476296
cmp dword [esi + 0x70], ebx
jbe 0x476296
mov ecx, dword [esi + 0x70]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x28], ebx
and dword [ebp - 0xc], 0
lea eax, [esi + 0xd8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push 4
lea edi, [esi + 0xc8]
push edi
push esi
mov ebx, 0x401
mov dword [esi + 0x8d8], eax
call fcn.00470043
add esp, 0xc
test eax, eax
je 0x476427
push 4
push 0x4ba298
push edi
call fcn.0047e22e
add esp, 0xc
test eax, eax
jne 0x476433
push esi
call fcn.0046f7c5
pop ecx
test eax, eax
jne 0x4764aa
movzx eax, word [esi + 0x10954]
push 2
push eax
push esi
call fcn.0047060b
add esp, 0xc
test eax, eax
je 0x476326
cmp eax, dword [ebp - 4]
jle 0x47631d
mov dword [ebp - 4], eax
cmp eax, 1
jg 0x4764b2
movzx eax, word [esi + 0x10956]
push 3
push eax
push esi
call fcn.0047060b
add esp, 0xc
test eax, eax
je 0x47634e
cmp eax, dword [ebp - 4]
jle 0x476345
mov dword [ebp - 4], eax
cmp eax, 1
jg 0x4764e4
movzx eax, word [esi + 0x10958]
push 0
push eax
push esi
call fcn.0047060b
add esp, 0xc
test eax, eax
je 0x476376
cmp eax, dword [ebp - 4]
jle 0x47636d
mov dword [ebp - 4], eax
cmp eax, 1
jg 0x47650d
cmp dword [esi + 0x74], 0
jne 0x4763ee
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4763c2
xor edi, edi
test eax, eax
jbe 0x476415
lea ebx, [esi + 0x109f0]
push dword [esi + 0x18]
mov eax, dword [esi + 0xc0]
push dword [eax + edi*4]
push ebx
call fcn.00479e1c
add esp, 0xc
test eax, eax
jne 0x4763b4
inc edi
cmp edi, dword [esi + 0x6c]
jb 0x476393
jmp 0x476415
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4763c2
mov dword [eax + edi*4], 1
xor edi, edi
cmp dword [esi + 0x70], edi
jbe 0x4763ee
lea ebx, [esi + 0x109f0]
push dword [esi + 0x18]
mov eax, dword [esi + 0xc4]
push dword [eax + edi*4]
push ebx
call fcn.00479e1c
add esp, 0xc
test eax, eax
jne 0x476400
inc edi
cmp edi, dword [esi + 0x70]
jb 0x4763cf
call fcn.004746ae
test eax, eax
je 0x476412
inc dword [ebp - 0xc]
add dword [ebp - 0x18], 0x20
jmp 0x476415
cmp dword [ebp - 0x14], 0
je 0x476415
mov eax, dword [ebp - 0x14]
mov dword [eax + edi*4], 1
jmp 0x476415
inc dword [ebp - 8]
inc dword [ebp - 0x24]
cmp dword [ebp - 0xc], 0x40
jb 0x4762af
jmp 0x47654a
mov dword [ebp - 4], 0x33
jmp 0x476543
mov ax, word [ebp - 0x24]
cmp ax, word [esi + 0x1096e]
jne 0x47645e
push 4
push 0x4ba2a0
push edi
call fcn.0047e22e
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x34], eax
jmp 0x476543
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
push ebx
lea eax, [eax + ecx + 1]
push eax
lea edi, [esi + 0x8dc]
push str.error:__expected_central_file_header_signature_not_found__file__lu_._n
push edi
call fcn.0047c59e
add esp, 0xc
push eax
push edi
push esi
call dword [esi + 0x10b54]
push ebx
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.0047c59e
pop ecx
pop ecx
push eax
push edi
push esi
call dword [esi + 0x10b54]
mov dword [ebp - 4], 3
jmp 0x476543
mov dword [ebp - 4], eax
jmp 0x476543
push ebx
push str.central
lea eax, [esi + 0x88dc]
push eax
lea eax, [esi + 0x109f0]
push eax
lea edi, [esi + 0x8dc]
call fcn.00474630
pop ecx
pop ecx
push eax
push str._s:__bad_filename_length___s__n
push edi
call fcn.0047c59e
add esp, 0x10
jmp 0x47653a
push ebx
push str.central
lea eax, [esi + 0x88dc]
push eax
lea eax, [esi + 0x109f0]
push eax
lea edi, [esi + 0x8dc]
call fcn.00474630
pop ecx
pop ecx
push eax
push str._s:__bad_extra_field_length___s__n
jmp 0x4764d9
push 0x421
lea eax, [esi + 0x88dc]
push eax
lea eax, [esi + 0x109f0]
push eax
lea edi, [esi + 0x8dc]
call fcn.00474630
push eax
push str._s:__bad_file_comment_length_n
push edi
call fcn.0047c59e
add esp, 0x14
push eax
push edi
push esi
call dword [esi + 0x10b54]
mov dword [ebp + 8], 1
mov eax, dword [esi + 0x10910]
push dword [ebp - 4]
mov ebx, dword [esi + 0x108e8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x108ec]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
call fcn.0047586c
add esp, 0x1c
test eax, eax
je 0x47659f
cmp eax, dword [ebp - 4]
jle 0x476590
mov dword [ebp - 4], eax
cmp dword [esi + 0x109c0], 1
jg 0x4765eb
cmp dword [ebp - 4], 0x50
je 0x4765eb
push 0
push dword [ebp - 0x18]
lea edi, [esi + 0x10908]
push dword [edi]
call fcn.00487192
push 0x2000
push dword [esi + 0x108e4]
mov dword [esi + 0x10910], eax
push dword [edi]
call fcn.00487020
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x28], 0x40
add esp, 0x18
cmp dword [ebp + 8], 0
mov dword [esi + 0x108e8], ebx
mov dword [esi + 0x108ec], eax
je 0x4762a2
jmp 0x4765ef
and dword [ebp + 8], 0
mov edi, dword [ebp - 0x2c]
test edi, edi
jbe 0x47671e
mov eax, edi
shl eax, 2
push eax
call fcn.0047da45
pop ecx
mov ebx, eax
xor ecx, ecx
mov dword [ebp - 0x28], ebx
cmp ebx, ecx
jne 0x47664d
push 0x401
lea edi, [esi + 0x8dc]
push str.warning:__cannot_alloc_memory_to_sort_dir_times_perms_etc._n
push edi
call fcn.0047c59e
pop ecx
pop ecx
push eax
push edi
push esi
call dword [esi + 0x10b54]
mov edi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x476644
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.0047d643
pop ecx
cmp edi, ebx
jne 0x476639
jmp 0x476720
mov dword [ebp - 0x18], ecx
cmp edi, 1
jne 0x47665c
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
jmp 0x47667e
cmp edi, ecx
jbe 0x47666d
mov eax, dword [ebp - 0x20]
mov dword [ebx + ecx*4], eax
mov eax, dword [eax]
inc ecx
cmp ecx, edi
jb 0x476663
push 0x474679
push 4
push edi
push ebx
call fcn.00482d20
add esp, 0x10
and dword [ebp - 0x20], 0
test edi, edi
jbe 0x4766e5
mov eax, dword [ebp - 0x20]
mov edi, dword [ebx + eax*4]
push edi
push esi
call fcn.00471427
pop ecx
pop ecx
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4766d3
inc dword [ebp - 0x18]
push 0x201
push dword [edi + 4]
lea ebx, [esi + 0x8dc]
push str.warning:__set_times_attribs_failed_for__s_n
push ebx
call fcn.0047c59e
add esp, 0xc
push eax
push ebx
push esi
call dword [esi + 0x10b54]
cmp dword [ebp - 4], 0
mov ebx, dword [ebp - 0x28]
jne 0x4766d3
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
push edi
call fcn.0047d643
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
pop ecx
cmp eax, dword [ebp - 0x2c]
jb 0x476686
push ebx
call fcn.0047d643
xor eax, eax
pop ecx
cmp dword [esi + 0x44], eax
jne 0x47671e
cmp dword [esi + 0x38], eax
jne 0x47671e
cmp dword [ebp - 0x18], eax
jbe 0x47671e
push eax
push dword [ebp - 0x18]
lea edi, [esi + 0x8dc]
push str._____failed_setting_attrib_times_for__lu_dir_entries
push edi
call fcn.0047c59e
add esp, 0xc
push eax
push edi
push esi
call dword [esi + 0x10b54]
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x47679d
cmp dword [ebp + 8], ebx
je 0x476792
xor ebx, ebx
cmp dword [esi + 0x6c], ebx
jbe 0x476792
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp dword [ecx + ebx*4], eax
jne 0x47678c
cmp dword [esi + 0xa0], eax
jne 0x476778
cmp dword [esi + 0xa4], eax
jne 0x476778
mov eax, dword [esi + 0xc0]
push 0x401
push dword [eax + ebx*4]
lea edi, [esi + 0x8dc]
push str.caution:_filename_not_matched:___s_n
push edi
call fcn.0047c59e
add esp, 0xc
push eax
push edi
push esi
call dword [esi + 0x10b54]
jmp 0x47677f
push esi
call fcn.0046fd32
pop ecx
cmp dword [ebp - 4], 1
jg 0x47678c
mov dword [ebp - 4], 0xb
inc ebx
cmp ebx, dword [esi + 0x6c]
jb 0x476731
push dword [ebp - 0x1c]
call fcn.0047d643
pop ecx
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
je 0x4767f3
cmp dword [ebp + 8], ebx
je 0x4767e8
xor ebx, ebx
cmp dword [esi + 0x70], ebx
jbe 0x4767e8
mov eax, dword [ebp - 0x14]
cmp dword [eax + ebx*4], 0
jne 0x4767e2
mov eax, dword [esi + 0xc4]
push 0x401
push dword [eax + ebx*4]
lea edi, [esi + 0x8dc]
push str.caution:_excluded_filename_not_matched:___s_n
push edi
call fcn.0047c59e
add esp, 0xc
push eax
push edi
push esi
call dword [esi + 0x10b54]
inc ebx
cmp ebx, dword [esi + 0x70]
jb 0x4767ae
push dword [ebp - 0x14]
call fcn.0047d643
pop ecx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x476800
mov eax, dword [ebp - 4]
jmp 0x4769e6
cmp dword [ebp - 0x34], ebx
je 0x47684d
push 0x401
lea edi, [esi + 0x8dc]
push str._nnote:__didnt_find_end_of_central_dir_signature_at_end_of_central_dir._n
push edi
call fcn.0047c59e
pop ecx
pop ecx
push eax
push edi
push esi
call dword [esi + 0x10b54]
push 0x401
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.0047c59e
pop ecx
pop ecx
push eax
push edi
push esi
call dword [esi + 0x10b54]
cmp dword [ebp - 4], ebx
jne 0x47684d
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
cmp dword [esi + 0x44], ebx
je 0x47699f
mov eax, dword [ebp - 0x30]
mov ecx, dword [esi + 0x38]
sub eax, edx
cmp ecx, 2
jge 0x47696e
mov ecx, 0x4a3fbe
cmp dword [ebp - 4], ebx
je 0x47689f
cmp dword [ebp - 4], 1
mov eax, str.warning_
je 0x476881
mov eax, ecx
push ebx
push dword [esi + 0x10904]
lea edi, [esi + 0x8dc]
push eax
push str.At_least_one__serror_was_detected_in__s._n
push edi
call fcn.0047c59e
add esp, 0x10
jmp 0x476901
cmp eax, ebx
jne 0x4768c0
push ebx
push dword [esi + 0x10904]
push str.Caution:__zero_files_tested_in__s._n
lea edi, [esi + 0x8dc]
push edi
call fcn.0047c59e
add esp, 0xc
jmp 0x476901
cmp dword [esi + 0x74], ebx
je 0x4768da
mov edi, dword [ebp - 8]
add edx, edi
jne 0x4768da
push ebx
push dword [esi + 0x10904]
push str.No_errors_detected_in_compressed_data_of__s._n
jmp 0x4768af
cmp eax, 1
je 0x4768e4
mov ecx, 0x49e65c
push ebx
push ecx
push eax
push dword [esi + 0x10904]
lea edi, [esi + 0x8dc]
push str.No_errors_detected_in__s_for_the__lu_file_s_tested._n
push edi
call fcn.0047c59e
add esp, 0x14
push eax
push edi
push esi
call dword [esi + 0x10b54]
cmp dword [ebp - 8], ebx
jbe 0x47693b
cmp dword [ebp - 8], 1
mov eax, 0x4a3fbe
je 0x47691f
mov eax, 0x49e65c
push ebx
push eax
push dword [ebp - 8]
push str._lu_file_s_skipped_because_of_unsupported_compression_or_encoding._n
push edi
call fcn.0047c59e
add esp, 0x10
push eax
push edi
push esi
call dword [esi + 0x10b54]
cmp dword [ebp - 0x10], ebx
jbe 0x47699f
cmp dword [ebp - 0x10], 1
mov eax, 0x4a3fbe
je 0x476950
mov eax, 0x49e65c
push ebx
push eax
push dword [ebp - 0x10]
push str._lu_file_s_skipped_because_of_incorrect_password._n
push edi
call fcn.0047c59e
add esp, 0x10
push eax
push edi
push esi
call dword [esi + 0x10b54]
jmp 0x47699f
cmp ecx, ebx
jne 0x47699f
cmp dword [ebp - 4], ebx
jne 0x47699f
cmp eax, ebx
jne 0x47699f
push ebx
push dword [esi + 0x10904]
lea edi, [esi + 0x8dc]
push str.Caution:__zero_files_tested_in__s._n
push edi
call fcn.0047c59e
add esp, 0xc
push eax
push edi
push esi
call dword [esi + 0x10b54]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
cmp ecx, ebx
jne 0x4769bd
cmp eax, 1
jg 0x4769bd
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
and eax, 0x46
add eax, 0xb
jmp 0x4769e6
cmp ecx, dword [ebp - 0x10]
jne 0x4769cb
cmp eax, 1
jg 0x4769cb
push 0x52
jmp 0x4769d7
cmp dword [ebp - 8], ebx
jbe 0x4769da
cmp eax, 1
jg 0x4769da
push 0x51
pop eax
jmp 0x4769e6
cmp dword [ebp - 0x10], ebx
jbe 0x4769e6
cmp eax, ebx
jne 0x4769e6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret