Function at 0x406a30
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x41c718]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
push esi
cmp eax, 0x2000
push edi
jg 0x406ae8
mov eax, dword [0x41cdd8]
push ebx
push ebx
push eax
call fcn.004121e5
mov ecx, dword [0x41c718]
mov edx, dword [0x41cd20]
mov eax, dword [0x41cdd8]
push ecx
push edx
push eax
call fcn.0041227f
mov edx, dword [0x41c718]
add esp, 0x18
cmp eax, edx
mov dword [0x41cd24], eax
jne 0x406d6d
mov ecx, dword [0x41cd20]
lea eax, [ecx + edx - 0x16]
cmp eax, ecx
mov dword [0x41cdc4], eax
jb 0x406d6d
cmp byte [eax], 0x50
jne 0x406ac0
push 4
push 0x41cd28
push eax
call fcn.0040dc90
mov ecx, dword [0x41cd20]
add esp, 0xc
test eax, eax
je 0x406acf
mov eax, dword [0x41cdc4]
dec eax
cmp eax, ecx
mov dword [0x41cdc4], eax
jae 0x406a9c
jmp 0x406d6d
mov esi, dword [0x41cdc4]
mov eax, dword [0x41cd24]
sub ecx, esi
add eax, ecx
mov dword [0x41cd24], eax
jmp 0x406ca9
mov esi, eax
and esi, 0x80001fff
jns 0x406afa
dec esi
or esi, 0xffffe000
inc esi
cmp esi, 0x12
jle 0x406bad
mov edx, dword [0x41cdd8]
sub eax, esi
push 0
push eax
push edx
call fcn.004121e5
mov ecx, dword [0x41cdd8]
mov dword [0x424f78], eax
mov eax, dword [0x41cd20]
push esi
push eax
push ecx
call fcn.0041227f
add esp, 0x18
cmp eax, esi
mov dword [0x41cd24], eax
jne 0x406d6d
mov ecx, dword [0x41cd20]
lea eax, [ecx + esi - 0x16]
cmp eax, ecx
mov dword [0x41cdc4], eax
jb 0x406b9a
cmp byte [eax], 0x50
jne 0x406b73
push 4
push 0x41cd28
push eax
call fcn.0040dc90
mov ecx, dword [0x41cd20]
add esp, 0xc
test eax, eax
je 0x406b7f
mov eax, dword [0x41cdc4]
dec eax
cmp eax, ecx
mov dword [0x41cdc4], eax
jae 0x406b4f
jmp 0x406b9a
mov edi, dword [0x41cdc4]
mov eax, dword [0x41cd24]
mov edx, ecx
mov ebx, 1
sub edx, edi
add eax, edx
mov dword [0x41cd24], eax
mov eax, dword [0x41c710]
push 3
push ecx
push eax
call fcn.0040e270
add esp, 0xc
jmp 0x406bb4
sub eax, esi
mov dword [0x424f78], eax
mov eax, dword [esp + 0x2c]
sub eax, esi
mov esi, 1
add eax, 0x1fff
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
sar edi, 0xd
test ebx, ebx
jne 0x406ca4
cmp esi, edi
jg 0x406d60
mov eax, dword [0x424f78]
mov ecx, dword [0x41cdd8]
sub eax, 0x2000
push 0
push eax
push ecx
mov dword [0x424f78], eax
call fcn.004121e5
mov edx, dword [0x41cd20]
mov eax, dword [0x41cdd8]
push 0x2000
push edx
push eax
call fcn.0041227f
add esp, 0x18
cmp eax, 0x2000
mov dword [0x41cd24], eax
jne 0x406d65
mov ecx, dword [0x41cd20]
lea eax, [ecx + 0x1fff]
cmp eax, ecx
mov dword [0x41cdc4], eax
jb 0x406c8a
cmp byte [eax], 0x50
jne 0x406c63
push 4
push 0x41cd28
push eax
call fcn.0040dc90
mov ecx, dword [0x41cd20]
add esp, 0xc
test eax, eax
je 0x406c6f
mov eax, dword [0x41cdc4]
dec eax
cmp eax, ecx
mov dword [0x41cdc4], eax
jae 0x406c3f
jmp 0x406c8a
mov ebx, dword [0x41cdc4]
mov eax, dword [0x41cd24]
mov edx, ecx
sub edx, ebx
mov ebx, 1
add eax, edx
mov dword [0x41cd24], eax
mov eax, dword [0x41c710]
push 3
push ecx
push eax
call fcn.0040e270
add esp, 0xc
inc esi
test ebx, ebx
je 0x406bda
mov eax, dword [0x41cd24]
mov ecx, dword [0x424f78]
mov esi, dword [0x41cd20]
sub ecx, esi
mov esi, dword [0x41cdc4]
add ecx, esi
mov ebx, 0x16
mov dword [0x41cd7c], ecx
lea ebp, [esp + 0x10]
test eax, eax
jne 0x406d1d
mov edx, dword [0x41cd20]
mov eax, dword [0x41cdd8]
push 0x2000
push edx
push eax
call fcn.0041227f
add esp, 0xc
mov dword [0x41cd24], eax
test eax, eax
je 0x406dc0
jl 0x406dd8
mov ecx, dword [0x424f78]
mov esi, dword [0x41cd20]
add ecx, 0x2000
mov dword [0x41cdc4], esi
mov dword [0x424f78], ecx
cmp ebx, eax
mov edx, ebx
jb 0x406d25
mov edx, eax
mov ecx, edx
mov edi, ebp
mov eax, ecx
add ebp, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x41cdc4]
mov eax, dword [0x41cd24]
add esi, edx
sub eax, edx
sub ebx, edx
mov dword [0x41cdc4], esi
mov dword [0x41cd24], eax
jne 0x406cce
jmp 0x406df7
mov eax, dword [0x41cd24]
test ebx, ebx
jne 0x406ca9
mov eax, dword [0x41a8cc]
test eax, eax
jne 0x406d88
mov eax, dword [0x41cef0]
test eax, eax
je 0x406da1
mov eax, dword [0x41a8b4]
test eax, eax
jne 0x406da1
mov ecx, dword [0x41cddc]
push ecx
push str.__s__n
push 0x419ea0
call fcn.0040dba4
add esp, 0xc
push str.__End_of_central_directory_signature_not_found.__Either_this_file_is_not_n__a_zipfile__or_it_constitutes_one_disk_of_a_multi_part_archive.__In_the_n__latter_case_the_central_directory_and_zipfile_comment_will_be_found_on_n__the_last_disk_s__of_this_archive._n
push 0x419ea0
call fcn.0040dba4
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, 0x16
sub eax, ebx
test eax, eax
jne 0x406df7
pop edi
pop esi
pop ebp
mov eax, 0x33
pop ebx
add esp, 0x18
ret
push str.error:__zipfile_read_error_n
push 0x419ea0
call fcn.0040dba4
add esp, 8
mov eax, 0x33
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
movzx dx, byte [esp + 0x14]
xor ecx, ecx
xor eax, eax
mov ch, byte [esp + 0x15]
mov ah, byte [esp + 0x17]
or ecx, edx
xor edx, edx
mov word [0x41cf00], cx
mov dh, byte [esp + 0x19]
movzx cx, byte [esp + 0x16]
or eax, ecx
xor ecx, ecx
mov word [0x41cf02], ax
mov ch, byte [esp + 0x1b]
movzx ax, byte [esp + 0x18]
or edx, eax
mov eax, dword [esp + 0x1f]
mov word [0x41cf04], dx
and eax, 0xff
movzx dx, byte [esp + 0x1a]
or ecx, edx
mov edx, dword [esp + 0x1d]
mov word [0x41cf06], cx
mov ecx, dword [esp + 0x1e]
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x1c]
shl eax, 8
add eax, edx
mov edx, dword [esp + 0x22]
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x23]
mov esi, ecx
pop edi
and esi, 0xff
mov dword [0x41cf08], eax
shl esi, 8
add esi, edx
mov edx, dword [esp + 0x1d]
shl esi, 8
and edx, 0xff
add esi, edx
mov edx, dword [esp + 0x1c]
shl esi, 8
and edx, 0xff
add esi, edx
xor edx, edx
mov dh, byte [esp + 0x21]
mov dword [0x41cf0c], esi
movzx cx, ch
add esi, eax
or edx, ecx
mov dword [0x41cdcc], esi
pop esi
pop ebp
mov word [0x41cf10], dx
xor eax, eax
pop ebx
add esp, 0x18
ret