Function at 0x1400415a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov edx, 1
mov r8d, 4
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x140041788
mov ebp, 0xffffffff
cmp dword [rsi], 0x4034b50
jne 0x140041733
lea rcx, [rsi + 4]
mov edx, 1
mov r8d, 2
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 2
jne 0x14004188b
lea rcx, [rsi + 6]
mov edx, 1
mov r8d, 2
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 2
jne 0x14004189d
lea rcx, [rsi + 8]
mov edx, 1
mov r8d, 2
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 2
jne 0x1400418af
lea rcx, [rsi + 0xc]
mov edx, 1
mov r8d, 4
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x1400418c1
lea rcx, [rsi + 0x10]
mov edx, 1
mov r8d, 4
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x1400418d3
lea rcx, [rsi + 0x14]
mov edx, 1
mov r8d, 4
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x1400418e5
lea rcx, [rsi + 0x18]
mov edx, 1
mov r8d, 4
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 4
jne 0x1400418f7
lea rbx, [rsi + 0x1c]
mov edx, 1
mov r8d, 2
mov rcx, rbx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 2
jne 0x140041909
lea r15, [rsi + 0x1e]
mov edx, 1
mov r8d, 2
mov rcx, r15
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 2
jne 0x14004191b
movzx edx, word [rbx]
mov rcx, rdi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
mov ebp, eax
test eax, eax
je 0x140041744
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ebx, word [r15]
test rbx, rbx
je 0x140041771
movzx r12d, bx
cmp r12d, 0x1000
jb 0x1400417a8
lea rcx, [rbx + 0x27]
call fcn.140117ae8
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x1400417b3
pmovzxdq xmm0, qword [rsi + 0x14]
movdqu xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x30], 0
xor ebp, ebp
jmp 0x140041733
lea rcx, str.read_uint32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ebp, 0xffffffff
cmp dword [rsi], 0x4034b50
je 0x1400415e3
jmp 0x140041733
mov rcx, rbx
call fcn.140117ae8
mov r14, rax
mov rcx, r14
xor edx, edx
mov r8, rbx
call fcn.1400af920
movzx r15d, word [r15]
mov edx, 1
mov rcx, r14
mov r8, r15
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, r15
jne 0x14004198c
lea r8, [rsi + 0x20]
mov r9d, dword [rsi + 0x14]
mov ecx, dword [rsi + 0x18]
movzx r10d, word [rsi + 0x1e]
test r10d, r10d
je 0x140041820
xor r11d, r11d
nop dword [rax]
mov eax, r11d
movzx edx, word [r14 + rax + 2]
cmp word [r14 + rax], 1
je 0x14004186f
movzx eax, dx
add r11d, eax
add r11d, 4
cmp r11d, r10d
jb 0x140041800
mov qword [r8], r9
mov qword [rsi + 0x28], rcx
mov qword [rsi + 0x30], 0
xor ebp, ebp
test r14, r14
je 0x140041733
cmp r12d, 0x1000
jb 0x14004185f
mov rax, qword [r14 - 8]
add r14, 0xfffffffffffffff8
sub r14, rax
cmp r14, 0x20
jae 0x1400419cf
add rbx, 0x27
mov r14, rax
mov rcx, r14
mov rdx, rbx
call fcn.140117b2c
jmp 0x140041733
add rax, r14
add rax, 4
cmp r9d, 0xffffffff
je 0x14004192d
mov r10d, r9d
xor r9d, r9d
jmp 0x140041939
lea rcx, str.read_uint16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140041605
lea rcx, str.read_uint16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140041627
lea rcx, str.read_uint16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140041649
lea rcx, str.read_uint32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x14004166b
lea rcx, str.read_uint32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x14004168d
lea rcx, str.read_uint32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x1400416af
lea rcx, str.read_uint32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x1400416d1
lea rcx, str.read_uint16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x1400416f6
lea rcx, str.read_uint16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x14004171b
mov r10, qword [rax]
add rax, 8
mov r9w, 8
mov qword [r8], r10
cmp ecx, 0xffffffff
je 0x14004195f
mov ecx, ecx
mov qword [rsi + 0x28], rcx
mov qword [rsi + 0x30], 0
cmp r9w, dx
jae 0x140041980
mov eax, dword [rax]
mov dword [rsi + 0x38], eax
jmp 0x14004182f
movzx r9d, r9w
add r9d, 8
mov rcx, qword [rax]
add rax, 8
mov qword [rsi + 0x28], rcx
mov qword [rsi + 0x30], 0
cmp r9w, dx
jb 0x140041955
mov dword [rsi + 0x38], 0
jmp 0x14004182f
lea rcx, str.ZipFileRead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
cmp r12d, 0x1000
jb 0x1400419ba
mov rax, qword [r14 - 8]
add r14, 0xfffffffffffffff8
sub r14, rax
cmp r14, 0x20
jae 0x1400419cf
add rbx, 0x27
mov r14, rax
mov rcx, r14
mov rdx, rbx
call fcn.140117b2c
mov ebp, 3
jmp 0x140041733
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3