Function at 0x420700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ecx]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [ebp - 0x2c], eax
mov ebx, eax
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
sar ebx, 0x1f
mov esi, ebx
mov dword [ebp - 0x34], esi
mov dword [esp], eax
call sub.msvcrt.dll_rewind
cmp esi, 0
jle 0x420b30
mov dword [esp], 0x10015
call fcn.00521070
test eax, eax
mov ebx, eax
je 0x420c71
cmp dword [ebp - 0x34], 0
jl 0x420ab0
jle 0x420aa3
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], 0x10015
sub esi, 0x10015
mov eax, dword [edi]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x420c16
mov esi, dword [ebp - 0x2c]
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fread
cmp esi, eax
mov eax, dword [ebp - 0x2c]
jne 0x420bea
sub eax, 4
jns 0x4207e6
jmp 0x420ab7
sub eax, 1
cmp eax, 0xffffffff
nop
je 0x420ab7
cmp byte [ebx + eax], 0x50
lea esi, [ebx + eax]
jne 0x4207d8
movzx edx, byte [ebx + eax + 1]
movzx ecx, byte [ebx + eax + 2]
shl edx, 8
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [ebx + eax + 3]
or edx, 0x50
shl ecx, 0x18
or edx, ecx
cmp edx, 0x6054b50
jne 0x4207d8
mov edx, dword [ebp - 0x2c]
lea ecx, [edi + 4]
mov dword [esp], esi
sub edx, eax
mov dword [esp + 4], edx
mov dword [ebp - 0x2c], edx
call fcn.00420560
mov edx, dword [ebp - 0x2c]
sub esp, 8
test eax, eax
mov dword [ebp - 0x38], eax
jne 0x420a6e
mov esi, dword [edi + 8]
test esi, esi
jne 0x420bc2
movzx eax, word [edi + 0xe]
cmp word [edi + 0xc], ax
jne 0x420bc2
mov eax, dword [edi + 0x14]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x420c42
xor esi, esi
cmp word [edi + 0xe], 0
lea eax, [edi + 0x24]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
mov edx, eax
je 0x420ae5
mov dword [ebp - 0x30], ebx
jmp 0x4208b5
mov ecx, dword [ebp - 0x2c]
lea ebx, [ebp - 0x1c]
add esi, 1
mov dword [esp], ebx
call fcn.00477b90
movzx eax, word [edi + 0xe]
sub esp, 4
cmp eax, esi
jle 0x420ae0
mov dword [esp], 0x68
xor ebx, ebx
call fcn.00521100
xor edx, edx
xor ecx, ecx
mov word [eax + 8], dx
xor edx, edx
mov word [eax + 0xa], cx
xor ecx, ecx
mov word [eax + 0xc], bx
xor ebx, ebx
mov word [eax + 0xe], dx
xor edx, edx
mov word [eax + 0x10], cx
xor ecx, ecx
mov word [eax + 0x20], bx
xor ebx, ebx
mov word [eax + 0x22], dx
xor edx, edx
mov word [eax + 0x30], cx
xor ecx, ecx
mov word [eax + 0x32], bx
xor ebx, ebx
mov word [eax + 0x34], dx
xor edx, edx
mov word [eax + 0x36], cx
xor ecx, ecx
mov word [eax + 0x38], bx
xor ebx, ebx
mov word [eax + 0x3a], dx
xor edx, edx
mov word [eax + 0x48], cx
xor ecx, ecx
mov word [eax + 0x4a], bx
xor ebx, ebx
mov word [eax + 0x4c], dx
mov word [eax + 0x4e], cx
mov ecx, eax
mov byte [eax], 0
mov byte [eax + 1], 0
mov dword [eax + 4], vtable.d9WorkQueue10WorkThreadE.0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], vtable.d8ZipEntry15LocalFileHeaderE.0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov word [eax + 0x50], bx
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov edx, dword [edi]
mov dword [ebp - 0x1c], eax
mov dword [esp], edx
call fcn.0042b930
sub esp, 4
test eax, eax
je 0x420895
mov dword [esp + 8], str.initFromCDE_failed_n
mov ebx, dword [ebp - 0x30]
mov dword [esp + 4], 0x536208
mov dword [esp], 3
mov dword [ebp - 0x2c], eax
call fcn.004750f0
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
test esi, esi
je 0x420a69
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x2c], vtable.d8ZipEntry15LocalFileHeaderE.0
test eax, eax
je 0x420a00
mov dword [esp], eax
call fcn.00521040
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x420a15
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call fcn.00521040
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x420a2a
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call fcn.00521040
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x24]
mov dword [esi + 4], vtable.d9WorkQueue10WorkThreadE.0
test eax, eax
je 0x420a46
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call fcn.00521040
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x420a5b
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call fcn.00521040
mov edx, dword [ebp - 0x2c]
mov dword [esp], esi
mov dword [ebp - 0x2c], edx
call fcn.00521050
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
jmp 0x420a90
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Failure_reading__ld_bytes_of_EOCD_values
mov dword [esp + 4], 0x536208
mov dword [esp], 3
call fcn.004750f0
nop
mov dword [esp], ebx
call fcn.00521040
mov eax, dword [ebp - 0x38]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x38], 0x10015
ja 0x420778
xor esi, esi
jmp 0x420788
mov dword [esp + 8], str.EOCD_not_found__not_Zip_n
mov dword [esp + 4], 0x536208
mov dword [esp], 3
call fcn.004750f0
mov dword [ebp - 0x38], 0xffffffd8
jmp 0x420a90
mov edx, ebx
mov ebx, dword [ebp - 0x30]
mov eax, dword [edi]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], edx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fread
cmp eax, 4
je 0x420b70
mov dword [esp + 8], str.EOCD_check_read_failed_n
mov dword [esp + 4], 0x536208
mov dword [esp], 3
call fcn.004750f0
mov dword [ebp - 0x38], 0xffffffd8
jmp 0x420a90
jl 0x420b3c
cmp dword [ebp - 0x38], 0x15
ja 0x420752
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], str.Length_is__ld____too_small_n
mov dword [esp + 4], 0x536208
mov dword [esp], 3
mov dword [esp + 0xc], eax
call fcn.004750f0
mov dword [ebp - 0x38], 0xffffffd8
jmp 0x420a98
movzx eax, byte [ebp - 0x1b]
movzx edx, byte [ebp - 0x1a]
shl eax, 8
shl edx, 0x10
or eax, edx
movzx edx, byte [ebp - 0x1c]
or eax, edx
movzx edx, byte [ebp - 0x19]
shl edx, 0x18
or eax, edx
cmp eax, 0x6054b50
je 0x420a90
mov dword [esp + 8], str.EOCD_read_check_failed_n
mov dword [esp + 4], 0x536208
mov dword [esp], 3
call fcn.004750f0
mov dword [ebp - 0x38], 0x80000000
jmp 0x420a90
mov dword [esp + 8], str.Archive_spanning_not_supported_n
mov dword [esp + 4], 0x536208
mov dword [esp], 3
call fcn.004750f0
mov dword [ebp - 0x38], 0xffffffd8
jmp 0x420a90
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.short_file__wanted__ld_n
mov dword [esp + 4], 0x536208
mov dword [esp], 3
call fcn.004750f0
mov dword [ebp - 0x38], 0x80000000
jmp 0x420a90
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Failure_seeking_to_end_of_zip_at__ld
mov dword [esp + 4], 0x536208
mov dword [esp], 3
call fcn.004750f0
mov dword [ebp - 0x38], 0x80000000
jmp 0x420a90
mov eax, dword [edi + 0x14]
mov dword [esp + 8], str.Failure_seeking_to_central_dir_offset__ld_n
mov dword [esp + 4], 0x536208
mov dword [esp], 3
mov dword [esp + 0xc], eax
call fcn.004750f0
mov dword [ebp - 0x38], 0x80000000
jmp 0x420a90
mov dword [esp + 0xc], 0x10015
mov dword [esp + 8], str.Failure_allocating__d_bytes_for_EOCD_search
mov dword [esp + 4], 0x536208
mov dword [esp], 3
call fcn.004750f0
mov dword [ebp - 0x38], 0xfffffff4
jmp 0x420a98