Function at 0x4012b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3cc
mov eax, dword [0x43401c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4012d0
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.0041470e
add esp, 4
mov ebx, eax
mov dword [ebp - 0x3cc], ebx
push esi
push edi
push ebx
call fcn.00415500
mov ecx, dword [str..zip]
lea eax, [ebp - 0x39c]
add esp, 0xc
mov dword [ebx + esi - 4], ecx
mov byte [ebx + esi], 0
push 0x100
push 0x40
push 0x8000
push edi
push eax
call fcn.00418bed
add esp, 0x14
cmp dword [ebp - 0x39c], 0xffffffff
jne 0x401335
push str.The_input_file_could_not_be_opened_n
jmp 0x401b7e
push 0x80
push 0x40
push 0x8301
lea eax, [ebp - 0x3a0]
push ebx
push eax
call fcn.00418bed
add esp, 0x14
cmp dword [ebp - 0x3a0], 0xffffffff
jne 0x401364
push str.The_output_file_could_not_be_opened_n
jmp 0x401b7e
push 0x934
call fcn.004146cd
add esp, 4
mov ebx, eax
mov dword [ebp - 0x3a8], ebx
push 2
push 0xfffff6cc
push dword [ebp - 0x39c]
call fcn.0041a516
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40139d
push str.Couldnt_move_the_cursor_to_ZipEncryptionHeaderCustom_n
jmp 0x401b7e
push 0x934
push ebx
push dword [ebp - 0x39c]
call fcn.00416c70
add esp, 0xc
cmp eax, 0x934
je 0x4013c2
push str.Couldnt_read_ZipEncryptionHeaderCustom_n
jmp 0x401b7e
cmp dword [ebx], 0x934
je 0x4013d7
push str.Incorrect_nHeaderSize_in_ZipEncryptionHeaderCustom_n
call fcn.00401010
add esp, 4
movups xmm0, xmmword [ebx + 4]
lea esi, [ebx + 0x24]
mov ecx, 0x20
lea edi, [ebp - 0xf8]
movups xmmword [ebp - 0x44], xmm0
movups xmm0, xmmword [ebx + 0x14]
movups xmmword [ebp - 0x34], xmm0
rep movsd dword es:[edi], dword [esi]
movups xmm0, xmmword [ebx + 0xa4]
xor esi, esi
lea edi, [ebp - 0x1f8]
add ebx, 0x134
movups xmmword [ebp - 0x24], xmm0
push ecx
lea eax, [ebp - 0x3ac]
mov dword [ebp - 0x3a4], 0x10
push eax
sub esp, 0x10
lea eax, [ebp - 0x3a4]
mov ecx, ebx
push eax
push edi
call fcn.004010e0
add esp, 0x20
test eax, eax
jne 0x401b79
cmp dword [ebp - 0x3ac], 1
jne 0x401b79
cmp dword [ebp - 0x3a4], 0x10
jne 0x401b79
inc esi
add edi, 0x10
sub ebx, 0xffffff80
cmp esi, 0x10
jl 0x401410
mov esi, dword [ebp - 0x3a8]
lea eax, [ebp - 0x3b4]
push ecx
push eax
sub esp, 0x10
mov dword [ebp - 0x3b0], 0x10
lea eax, [ebp - 0x3b0]
lea ecx, [esi + 0xb4]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004010e0
add esp, 0x20
test eax, eax
jne 0x401b72
cmp dword [ebp - 0x3b4], 1
jne 0x401b72
cmp dword [ebp - 0x3b0], 0x10
jne 0x401b72
push 0x934
push esi
call fcn.00414700
push 8
call fcn.004146cd
add esp, 0xc
mov esi, eax
push 2
push 0xfffff6c4
push dword [ebp - 0x39c]
call fcn.0041a516
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4014f6
push str.Couldnt_move_the_cursor_to_ZipExtensionHeader_n
jmp 0x401b7e
push 8
push esi
push dword [ebp - 0x39c]
call fcn.00416c70
add esp, 0xc
cmp eax, 8
je 0x401516
push str.Couldnt_read_ZipExtensionHeader_n
jmp 0x401b7e
cmp dword [esi], 8
je 0x401525
push str.Incorrect_Size_in_ZipExtensionHeader_n
jmp 0x401b7e
cmp word [esi + 4], 2
je 0x401536
push str.Incorrect_EncryptionType_in_ZipExtensionHeader_n
jmp 0x401b7e
cmp word [esi + 6], 0
je 0x401547
push str.Incorrect_SignatureType_in_ZipExtensionHeader_n
jmp 0x401b7e
push 8
push esi
call fcn.00414700
push 0x16
call fcn.004146cd
add esp, 0xc
mov ebx, eax
push 2
push 0xfffff6ae
push dword [ebp - 0x39c]
call fcn.0041a516
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x401581
push str.Couldnt_move_the_cursor_to_ZipEndRecord_n
jmp 0x401b7e
push 0x16
push ebx
push dword [ebp - 0x39c]
call fcn.00416c70
add esp, 0xc
cmp eax, 0x16
je 0x4015a1
push str.Couldnt_read_ZipEndRecordSize_n
jmp 0x401b7e
cmp dword [ebx], 0x6054b50
je 0x4015b3
push str.Incorrect_header_in_ZipEndRecord_n
jmp 0x401b7e
mov eax, 0x8000
cmp word [ebx + 4], ax
je 0x4015c8
push str.Incorrect_disk_number_in_ZipEndRecord_n
jmp 0x401b7e
cmp word [ebx + 6], 0
je 0x4015d9
push str.Incorrect_disk_number_cd_in_ZipEndRecord_n
jmp 0x401b7e
movzx eax, word [ebx + 8]
test ax, ax
jne 0x4015ec
push str.Incorrect_total_entries_disk_in_ZipEndRecord_n
jmp 0x401b7e
movzx ecx, word [ebx + 0xa]
test cx, cx
jne 0x4015ff
push str.Incorrect_total_entries_in_ZipEndRecord_n
jmp 0x401b7e
cmp cx, ax
je 0x40160e
push str.Mismatch_of_total_entries_with_total_entries_disk_in_ZipEndRecord_n
jmp 0x401b7e
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x40161f
push str.Incorrect_size_central_dir_in_ZipEndRecord_n
jmp 0x401b7e
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x401630
push str.Incorrect_start_cd_offset_in_ZipEndRecord_n
jmp 0x401b7e
add eax, ecx
cmp eax, esi
je 0x401640
push str.The_ZipCentralDirectory_end_offset_does_not_match_with_ZipEndRecord_start_offset_in_ZipEndRecord_n
jmp 0x401b7e
mov eax, 0x93c
cmp word [ebx + 0x14], ax
je 0x401655
push str.Incorrect_file_comment_length_in_ZipEndRecord_n
jmp 0x401b7e
push ecx
call fcn.0041470e
add esp, 4
mov edi, eax
mov dword [ebp - 0x3c8], edi
push 0
push dword [ebx + 0x10]
push dword [ebp - 0x39c]
call fcn.0041a516
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401688
push str.Couldnt_move_the_cursor_to_ZipCentralDirectories_n
jmp 0x401b7e
mov esi, dword [ebx + 0xc]
push esi
push edi
push dword [ebp - 0x39c]
call fcn.00416c70
add esp, 0xc
cmp eax, esi
je 0x4016a9
push str.Couldnt_read_ZipCentralDirectories_n
jmp 0x401b7e
lea eax, [ebp - 0x1f8]
mov edx, esi
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00401220
add esp, 8
test al, al
jne 0x4016ce
push str.Couldnt_decrypt_ZipCentralDirectories_n
jmp 0x401b7e
lea eax, [ebp - 0x398]
push eax
call fcn.00402000
add esp, 4
lea eax, [ebp - 0x398]
push dword [ebx + 0xc]
push edi
push eax
call fcn.00402080
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x398]
push eax
call fcn.00402190
push 0x20
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004184b1
add esp, 0x14
test eax, eax
je 0x401720
push str.Mismatch_of_CDR_hash_with_hash_digest_in_ZipCentralDirectories_n
jmp 0x401b7e
push 0x437538
lea eax, [ebp - 0x3b8]
push eax
push 0
push dword [0x43755c]
lea eax, [ebp - 0x64]
push 3
push 0x20
push eax
lea eax, [ebp - 0xf8]
push 0x80
push eax
call fcn.004073a0
add esp, 0x24
test eax, eax
jne 0x401b6b
cmp dword [ebp - 0x3b8], 1
jne 0x401b6b
mov eax, dword [ebx + 0xc]
lea edx, [edi + 0x2e]
add eax, edi
mov dword [ebp - 0x3ac], edx
mov dword [ebp - 0x3c4], eax
mov esi, edi
cmp edx, eax
ja 0x401a06
movzx edi, word [esi + 0x1c]
movzx ecx, word [esi + 0x20]
movzx eax, word [esi + 0x1e]
add ecx, edi
add ecx, eax
cmp dword [esi], 0x2014b50
mov dword [ebp - 0x3a8], ecx
lea eax, [ecx + edx]
mov dword [ebp - 0x3c0], eax
jne 0x401acc
cmp word [esi + 4], 0x14
jne 0x401ac2
cmp word [esi + 6], 0x14
jne 0x401ab8
cmp word [esi + 8], 0
jne 0x401aae
movzx eax, word [esi + 0xa]
test ax, ax
je 0x4017eb
cmp eax, 8
je 0x4017eb
cmp eax, 0xb
je 0x4017eb
cmp eax, 0xc
jne 0x401a2c
cmp word [esi + 0xe], 0
je 0x401aa4
test di, di
je 0x401a9a
cmp word [esi + 0x22], 0
jne 0x401a90
cmp word [esi + 0x24], 0
jne 0x401a86
cmp dword [esi + 0x26], 0
jne 0x401a7c
mov eax, dword [esi + 0x2a]
add ecx, 0x1e
push 0
add eax, ecx
push eax
push dword [ebp - 0x39c]
call fcn.0041a516
add esp, 0xc
cmp eax, 0xffffffff
je 0x401a72
push dword [esi + 0x14]
call fcn.0041470e
mov edi, dword [esi + 0x14]
add esp, 4
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x3bc], edi
push edi
push eax
push dword [ebp - 0x39c]
call fcn.00416c70
add esp, 0xc
cmp eax, edi
jne 0x401a68
movzx eax, word [esi + 0xa]
cmp eax, 0xb
je 0x401881
cmp eax, 0xc
jne 0x4018f7
mov edx, dword [esi + 0x18]
mov ecx, edi
shl ecx, 0xc
mov eax, edx
xor eax, ecx
mov dword [ebp - 0x14], eax
xor eax, eax
test edi, edi
mov edi, dword [esi + 0x10]
sete al
mov dword [ebp - 0x10], eax
mov eax, edi
xor eax, ecx
mov ecx, dword [ebp - 0x3a4]
mov dword [ebp - 0xc], eax
xor eax, eax
test edx, edx
mov edx, dword [ebp - 0x3bc]
sete al
shr edi, 2
xor eax, edx
not edi
mov dword [ebp - 8], eax
and edi, 0xf
shl edi, 4
lea eax, [ebp - 0x1f8]
add eax, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401220
add esp, 8
test al, al
je 0x401a5e
xor eax, eax
mov ecx, 8
cmp word [esi + 0xa], 0xb
cmove eax, ecx
mov word [esi + 0xa], ax
push 0x1e
call fcn.004146cd
mov edi, eax
add esp, 4
mov dword [edi], 0x4034b50
movzx ecx, word [esi + 6]
mov word [edi + 4], cx
movzx ecx, word [esi + 8]
mov word [edi + 6], cx
movzx ecx, word [esi + 0xa]
mov word [edi + 8], cx
movzx ecx, word [esi + 0xc]
mov word [edi + 0xa], cx
movzx eax, word [esi + 0xe]
mov word [edi + 0xc], ax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xe], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x12], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x16], eax
movzx eax, word [esi + 0x1c]
mov word [edi + 0x1a], ax
movzx eax, word [esi + 0x1e]
mov word [edi + 0x1c], ax
push 0
push dword [esi + 0x2a]
push dword [ebp - 0x3a0]
call fcn.0041a516
add esp, 0xc
cmp eax, 0xffffffff
je 0x401a54
push 0x1e
push edi
push dword [ebp - 0x3a0]
call fcn.0041968b
add esp, 0xc
cmp eax, 0x1e
jne 0x401a4a
push dword [ebp - 0x3a8]
push dword [ebp - 0x3ac]
push dword [ebp - 0x3a0]
call fcn.0041968b
add esp, 0xc
cmp eax, dword [ebp - 0x3a8]
jne 0x401a40
push dword [esi + 0x14]
push dword [ebp - 0x3a4]
push dword [ebp - 0x3a0]
call fcn.0041968b
add esp, 0xc
cmp eax, dword [esi + 0x14]
jne 0x401a36
push 0x1e
push edi
call fcn.00414700
push 1
push dword [ebp - 0x3a4]
call fcn.00414700
mov eax, dword [ebp - 0x3c0]
add esp, 0x10
mov esi, eax
lea edx, [eax + 0x2e]
mov dword [ebp - 0x3ac], edx
cmp edx, dword [ebp - 0x3c4]
jbe 0x401783
mov edi, dword [ebp - 0x3c8]
push 0
push dword [ebx + 0x10]
push dword [ebp - 0x3a0]
call fcn.0041a516
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401ad6
push str.Couldnt_move_the_cursor_to_ZipCentralDirectories_in_OutFile_n
jmp 0x401b7e
push str.Unsupported_comp_method_in_ZipCentralDirectory_n
jmp 0x401b7e
push str.Couldnt_write_FileData_to_OutFile_n
jmp 0x401b7e
push str.Couldnt_write_FileName_to_OutFile_n
jmp 0x401b7e
push str.Couldnt_write_ZipLocalHeader_to_OutFile_n
jmp 0x401b7e
push str.Couldnt_move_the_cursor_to_ZipLocalHeader_in_OutFile_n
jmp 0x401b7e
push str.Couldnt_decrypt_FileData_n
jmp 0x401b7e
push str.Couldnt_read_FileData_n
jmp 0x401b7e
push str.Couldnt_move_the_cursor_to_FileData_n
jmp 0x401b7e
push str.Incorrect_external_file_attr_in_ZipCentralDirectory_n
jmp 0x401b7e
push str.Incorrect_internal_file_attr_in_ZipCentralDirectory_n
jmp 0x401b7e
push str.Incorrect_disk_number_start_in_ZipCentralDirectory_n
jmp 0x401b7e
push str.Incorrect_filename_length_in_ZipCentralDirectory_n
jmp 0x401b7e
push str.Incorrect_last_mod_date_in_ZipCentralDirectory_n
jmp 0x401b7e
push str.Incorrect_bit_flag_in_ZipCentralDirectory_n
jmp 0x401b7e
push str.Incorrect_version_in_ZipCentralDirectory_n
jmp 0x401b7e
push str.Incorrect_made_ver_in_ZipCentralDirectory_n
jmp 0x401b7e
push str.Incorrect_header_in_ZipCentralDirectory_n
jmp 0x401b7e
push dword [ebx + 0xc]
push edi
push dword [ebp - 0x3a0]
call fcn.0041968b
add esp, 0xc
cmp eax, dword [ebx + 0xc]
je 0x401af7
push str.Couldnt_write_ZipCentralDirectories_to_OutFile_n
jmp 0x401b7e
xor eax, eax
push 0x16
mov word [ebx + 4], ax
mov word [ebx + 0x14], ax
push ebx
push dword [ebp - 0x3a0]
call fcn.0041968b
add esp, 0xc
cmp eax, 0x16
je 0x401b1e
push str.Couldnt_write_ZipEndRecord_to_OutFile_n
jmp 0x401b7e
push 0x16
push ebx
call fcn.00414700
push 1
push edi
call fcn.00414700
push dword [ebp - 0x3a0]
call fcn.00418fe0
add esp, 0x14
push dword [ebp - 0x39c]
call fcn.00418fe0
add esp, 4
push 1
push dword [ebp - 0x3cc]
call fcn.00414700
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146bc
mov esp, ebp
pop ebp
ret
push str.Couldnt_rsa_verify_hash_ex_ZipCentralDirectories_n
jmp 0x401b7e
push str.Failed_to_decrypt_cdr_key_in_ZipEncryptionHeaderCustom_n
jmp 0x401b7e
push str.Failed_to_decrypt_Keys_in_ZipEncryptionHeaderCustom_n
call fcn.00401010
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004146bc
mov esp, ebp
pop ebp
ret