Function at 0x412d66
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rdx
mov qword [rbp + 0xf0], r8
mov qword [rbp + 0xf8], r9
mov eax, dword [rbp + 0x100]
mov word [rbp + 0xc], ax
mov dword [rbp + 0xcc], 0
mov word [rbp + 0xc6], 0
mov word [rbp + 0x5a], 0
mov word [rbp + 0x58], 0
mov word [rbp + 0xaa], 0
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax]
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0x90], 0
mov eax, dword [rbp + 0x108]
test eax, eax
jns 0x412e1b
mov dword [rbp + 0x108], 6
mov eax, dword [rbp + 0x108]
and eax, 0xf
mov dword [rbp + 0xc8], eax
cmp qword [rbp + 0xe0], 0
je 0x412e79
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x58]
test rax, rax
je 0x412e79
mov rax, qword [rbp + 0xe0]
mov eax, dword [rax + 0x14]
cmp eax, 2
jne 0x412e79
cmp qword [rbp + 0xe8], 0
je 0x412e79
movzx eax, word [rbp + 0xc]
test ax, ax
je 0x412e70
cmp qword [rbp + 0xf8], 0
je 0x412e79
cmp dword [rbp + 0xc8], 0xa
jbe 0x412e83
mov eax, 0
jmp 0x41374b
mov eax, dword [rbp + 0x108]
and eax, 0x400
test eax, eax
je 0x412e9c
mov eax, 0
jmp 0x41374b
mov rax, qword [rbp + 0xe8]
mov rcx, rax
call sym.mz_zip_writer_validate_archive_name
test eax, eax
sete al
test al, al
je 0x412ebe
mov eax, 0
jmp 0x41374b
mov rax, qword [rbp + 0xe8]
mov rcx, rax
call sym.strlen
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffff
jbe 0x412eeb
mov eax, 0
jmp 0x41374b
mov rcx, qword [rbp + 0xe0]
call sym.mz_zip_writer_compute_padding_needed_for_file_alignment
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0xe0]
mov eax, dword [rax + 0x10]
cmp eax, 0xffff
je 0x412f43
mov rax, qword [rbp + 0xe0]
mov rdx, qword [rax]
mov eax, dword [rbp + 0x84]
add rdx, rax
movzx eax, word [rbp + 0xc]
movzx eax, ax
add rdx, rax
mov rax, qword [rbp + 0x88]
add rax, rdx
lea rdx, [rax + 0x4c]
mov eax, 0xffffffff
cmp rdx, rax
jbe 0x412f4d
mov eax, 0
jmp 0x41374b
lea rdx, [rbp + 0x58]
lea rax, [rbp + 0x5a]
mov rcx, qword [rbp + 0xf0]
mov r8, rdx
mov rdx, rax
call sym.mz_zip_get_file_modified_time
test eax, eax
sete al
test al, al
je 0x412f7a
mov eax, 0
jmp 0x41374b
mov rax, qword [rbp + 0xf0]
lea rdx, [0x004b5b19]
mov rcx, rax
call sym.mz_fopen
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
jne 0x412fab
mov eax, 0
jmp 0x41374b
mov rax, qword [rbp + 0x90]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym._fseeki64
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym._ftelli64
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x90]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym._fseeki64
mov eax, 0xffffffff
cmp qword [rbp + 0x98], rax
jbe 0x41301c
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.fclose
mov eax, 0
jmp 0x41374b
cmp qword [rbp + 0x98], 3
ja 0x413030
mov dword [rbp + 0xc8], 0
mov eax, dword [rbp + 0x84]
lea edx, [rax + 0x1e]
mov rax, qword [rbp + 0xb8]
mov r8d, edx
mov rdx, rax
mov rcx, qword [rbp + 0xe0]
call sym.mz_zip_writer_write_zeros
test eax, eax
sete al
test al, al
je 0x413074
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.fclose
mov eax, 0
jmp 0x41374b
mov eax, dword [rbp + 0x84]
add qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xe0]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x4130c3
mov rax, qword [rbp + 0xe0]
mov eax, dword [rax + 0x18]
sub eax, 1
mov eax, eax
and rax, qword [rbp + 0xa0]
test rax, rax
je 0x4130c3
mov r8d, 0x27ed
lea rdx, [0x004b57c0]
lea rcx, str._local_dir_header_ofs___pZip__m_file_offset_alignment___1____0
call sym._assert
mov eax, dword [rbp + 0x84]
mov rdx, qword [rbp + 0xb8]
add rax, rdx
add rax, 0x1e
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0x30]
mov r8d, 0x1e
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x48]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x50]
mov r9, qword [rbp + 0x88]
mov r8, qword [rbp + 0xe8]
mov rdx, qword [rbp + 0xb8]
call rax
cmp qword [rbp + 0x88], rax
setne al
test al, al
je 0x413149
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.fclose
mov eax, 0
jmp 0x41374b
mov rax, qword [rbp + 0x88]
add qword [rbp + 0xb8], rax
cmp qword [rbp + 0x98], 0
je 0x41355a
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x20]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x38]
mov r8d, 0x10000
mov edx, 1
call rax
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
jne 0x4131b7
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.fclose
mov eax, 0
jmp 0x41374b
cmp dword [rbp + 0xc8], 0
jne 0x4132e0
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x4132cd
mov rax, qword [rbp + 0x28]
mov edx, 0x10000
cmp rax, 0x10000
cmova rax, rdx
mov dword [rbp + 0x74], eax
mov edx, dword [rbp + 0x74]
mov rcx, qword [rbp + 0x90]
mov rax, qword [rbp + 0x78]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rdx, rax
mov eax, dword [rbp + 0x74]
cmp rdx, rax
jne 0x41324b
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x48]
mov r8d, dword [rbp + 0x74]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x50]
mov r10, qword [rbp + 0x78]
mov rdx, qword [rbp + 0xb8]
mov r9, r8
mov r8, r10
call rax
mov rdx, rax
mov eax, dword [rbp + 0x74]
cmp rdx, rax
je 0x413252
mov eax, 1
jmp 0x413257
mov eax, 0
test al, al
je 0x413290
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x28]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rbp + 0x78]
call rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.fclose
mov eax, 0
jmp 0x41374b
mov ecx, dword [rbp + 0x74]
mov rdx, qword [rbp + 0x78]
mov eax, dword [rbp + 0xcc]
mov r8, rcx
mov ecx, eax
call sym.mz_crc32
mov dword [rbp + 0xcc], eax
mov rdx, qword [rbp + 0x28]
mov eax, dword [rbp + 0x74]
sub rdx, rax
mov rax, rdx
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x74]
add qword [rbp + 0xb8], rax
jmp 0x4131c4
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0xb0], rax
jmp 0x41353e
mov dword [rbp + 0xac], 0
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x20]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x38]
mov r8d, 0x4df78
mov edx, 1
call rax
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x41334d
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x28]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rbp + 0x78]
call rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.fclose
mov eax, 0
jmp 0x41374b
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], 0
mov eax, dword [rbp + 0xc8]
mov r8d, 0
mov edx, 0xfffffff1
mov ecx, eax
call sym.tdefl_create_comp_flags_from_zip_params
mov ecx, eax
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x68]
mov r9d, ecx
mov r8, rdx
lea rdx, [sym.mz_zip_writer_add_put_buf_callback]
mov rcx, rax
call sym.tdefl_init
test eax, eax
setne al
test al, al
je 0x4133fc
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x28]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rbp + 0x68]
call rax
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x28]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rbp + 0x78]
call rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.fclose
mov eax, 0
jmp 0x413539
mov rax, qword [rbp + 0x28]
mov edx, 0x10000
cmp rax, 0x10000
cmova rax, rdx
mov eax, eax
mov qword [rbp + 0x60], rax
mov rcx, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x78]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
cmp qword [rbp + 0x60], rax
setne al
test al, al
jne 0x4134bd
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x78]
mov eax, dword [rbp + 0xcc]
mov r8, rcx
mov ecx, eax
call sym.mz_crc32
mov dword [rbp + 0xcc], eax
mov rax, qword [rbp + 0x28]
sub rax, qword [rbp + 0x60]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x41347d
mov r8d, 0
jmp 0x413483
mov r8d, 4
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x68]
mov r9d, r8d
mov r8, rcx
mov rcx, rax
call sym.tdefl_compress_buffer
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], 1
jne 0x4134b2
mov dword [rbp + 0xac], 1
jmp 0x4134c1
cmp dword [rbp + 0x5c], 0
jne 0x4134c0
jmp 0x4133fc
nop
jmp 0x4134c1
nop
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x28]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rbp + 0x68]
call rax
cmp dword [rbp + 0xac], 0
jne 0x413518
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x28]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rbp + 0x78]
call rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.fclose
mov eax, 0
jmp 0x413539
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0xb8], rax
mov word [rbp + 0xc6], 8
jmp 0x41353e
jmp 0x41374b
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x28]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rbp + 0x78]
call rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x90], 0
mov eax, 0xffffffff
cmp qword [rbp + 0xb0], rax
ja 0x413590
mov eax, 0xffffffff
cmp qword [rbp + 0xb8], rax
jbe 0x41359a
mov eax, 0
jmp 0x41374b
movzx eax, word [rbp + 0x58]
movzx r8d, ax
movzx eax, word [rbp + 0x5a]
movzx ecx, ax
movzx edx, word [rbp + 0xc6]
mov rax, qword [rbp + 0x88]
movzx r10d, ax
lea rax, [rbp + 0x30]
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], edx
mov edx, dword [rbp + 0xcc]
mov dword [rsp + 0x30], edx
mov rdx, qword [rbp + 0xb0]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x98]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, r10d
mov rdx, rax
mov rcx, qword [rbp + 0xe0]
call sym.mz_zip_writer_create_local_dir_header
test eax, eax
sete al
test al, al
je 0x413621
mov eax, 0
jmp 0x41374b
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x48]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rdx + 0x50]
lea r8, [rbp + 0x30]
mov rdx, qword [rbp + 0xa0]
mov r9d, 0x1e
call rax
cmp rax, 0x1e
setne al
test al, al
je 0x41365f
mov eax, 0
jmp 0x41374b
movzx r9d, word [rbp + 0xaa]
movzx eax, word [rbp + 0x58]
movzx r8d, ax
movzx eax, word [rbp + 0x5a]
movzx ecx, ax
movzx edx, word [rbp + 0xc6]
movzx eax, word [rbp + 0xc]
movzx eax, ax
mov r10, qword [rbp + 0x88]
movzx r11d, r10w
mov r10, qword [rbp + 0xe8]
mov dword [rsp + 0x78], r9d
mov r9, qword [rbp + 0xa0]
mov qword [rsp + 0x70], r9
mov dword [rsp + 0x68], r8d
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], edx
mov edx, dword [rbp + 0xcc]
mov dword [rsp + 0x48], edx
mov rdx, qword [rbp + 0xb0]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rbp + 0x98]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, r11d
mov rdx, r10
mov rcx, qword [rbp + 0xe0]
call sym.mz_zip_writer_add_to_central_dir
test eax, eax
sete al
test al, al
je 0x41371e
mov eax, 0
jmp 0x41374b
mov rax, qword [rbp + 0xe0]
mov eax, dword [rax + 0x10]
lea edx, [rax + 1]
mov rax, qword [rbp + 0xe0]
mov dword [rax + 0x10], edx
mov rax, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0xb8]
mov qword [rax], rdx
mov eax, 1
add rsp, 0x150
pop rbp
ret