Function at 0x140067d60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
add rcx, 0x70
lea rdi, [rsi + 0x78]
mov r9d, dword [rsi + 0x78]
test r9d, r9d
je 0x140067df4
mov rax, qword [rcx]
dec r9d
mov dword [rdi], r9d
lea r8, [rax + 1]
mov qword [rcx], r8
movzx r8d, byte [rax]
test r9d, r9d
je 0x140067e0a
mov rax, qword [rcx]
dec r9d
mov dword [rdi], r9d
lea r10, [rax + 1]
mov qword [rcx], r10
movzx eax, byte [rax]
shl eax, 8
add r8d, eax
test r9d, r9d
je 0x140067e21
mov rax, qword [rcx]
dec r9d
mov dword [rdi], r9d
lea r10, [rax + 1]
mov qword [rcx], r10
movzx eax, byte [rax]
shl eax, 0x10
add r8d, eax
test r9d, r9d
je 0x140067e38
mov r10, qword [rcx]
dec r9d
mov dword [rdi], r9d
lea rax, [r10 + 1]
mov qword [rcx], rax
movzx eax, byte [r10]
shl eax, 0x18
add eax, r8d
mov dword [rdx], eax
xor eax, eax
jmp 0x140067e49
mov r8d, 0xffffffff
cmp dword [rsi + 0x60], 0
jne 0x140067e0a
cmp dword [rsi + 0x3c], 0
je 0x140068013
cmp dword [rsi + 0x60], 0
jne 0x140067e1a
cmp dword [rsi + 0x3c], 0
je 0x140067f56
add r8d, 0xffffff00
cmp dword [rsi + 0x60], 0
jne 0x140067e31
cmp dword [rsi + 0x3c], 0
je 0x140067ed6
add r8d, 0xffff0000
mov eax, 0xffffffff
cmp dword [rsi + 0x60], 0
jne 0x140067e49
cmp dword [rsi + 0x3c], 0
je 0x140067e55
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdx
mov ebx, dword [rsi + 0x14]
mov r14, qword [rsi + 0x20]
mov dword [rsi + 0x78], 0
xor r9d, r9d
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
nop dword [rax]
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r14
mov r8d, ebx
sub r8d, r9d
call r15
test eax, eax
jle 0x140067fd6
mov r9d, dword [rdi]
add r9d, eax
mov dword [rdi], r9d
mov r8d, ebx
sub r8d, r9d
jbe 0x140067fe9
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r14
call r15
test eax, eax
jle 0x140067fd6
mov r9d, dword [rdi]
add r9d, eax
mov dword [rdi], r9d
cmp r9d, ebx
jb 0x140067e80
jmp 0x140067fe9
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdx
mov ebx, dword [rsi + 0x14]
mov r14, qword [rsi + 0x20]
mov dword [rsi + 0x78], 0
xor r9d, r9d
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
nop dword [rax]
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r14
mov r8d, ebx
sub r8d, r9d
call r15
test eax, eax
jle 0x140068096
mov r9d, dword [rdi]
add r9d, eax
mov dword [rdi], r9d
mov r8d, ebx
sub r8d, r9d
jbe 0x1400680a9
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r14
call r15
test eax, eax
jle 0x140068096
mov r9d, dword [rdi]
add r9d, eax
mov dword [rdi], r9d
cmp r9d, ebx
jb 0x140067f00
jmp 0x1400680a9
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdx
mov ebx, dword [rsi + 0x14]
mov r14, qword [rsi + 0x20]
mov dword [rsi + 0x78], 0
xor r9d, r9d
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
nop dword [rax]
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r14
mov r8d, ebx
sub r8d, r9d
call r15
test eax, eax
jle 0x1400680ce
mov r9d, dword [rdi]
add r9d, eax
mov dword [rdi], r9d
mov r8d, ebx
sub r8d, r9d
jbe 0x1400680e1
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r14
call r15
test eax, eax
jle 0x1400680ce
mov r9d, dword [rdi]
add r9d, eax
mov dword [rdi], r9d
cmp r9d, ebx
jb 0x140067f80
jmp 0x1400680e1
test eax, eax
js 0x14006813f
mov dword [rsi + 0x3c], 1
mov r9d, dword [rsi + 0x78]
mov r10, qword [rsi + 0x20]
mov qword [rsi + 0x70], r10
test r9d, r9d
mov rdx, qword [rsp + 0x30]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x2c]
jne 0x140067dd7
jmp 0x140067e49
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdx
mov ebx, dword [rsi + 0x14]
mov r14, qword [rsi + 0x20]
mov dword [rsi + 0x78], 0
xor r9d, r9d
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
nop word cs:[rax + rax]
nop
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r14
mov r8d, ebx
sub r8d, r9d
call r15
test eax, eax
jle 0x140068106
mov r9d, dword [rdi]
add r9d, eax
mov dword [rdi], r9d
mov r8d, ebx
sub r8d, r9d
jbe 0x140068119
mov ecx, dword [rsi + 4]
mov edx, r9d
add rdx, r14
call r15
test eax, eax
jle 0x140068106
mov r9d, dword [rdi]
add r9d, eax
mov dword [rdi], r9d
cmp r9d, ebx
jb 0x140068040
jmp 0x140068119
test eax, eax
js 0x140068167
mov dword [rsi + 0x3c], 1
mov r9d, dword [rsi + 0x78]
mov rax, qword [rsi + 0x20]
mov qword [rsi + 0x70], rax
test r9d, r9d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x2c]
jne 0x140067db9
jmp 0x140067e31
test eax, eax
js 0x1400681ae
mov dword [rsi + 0x3c], 1
mov r9d, dword [rsi + 0x78]
mov rax, qword [rsi + 0x20]
mov qword [rsi + 0x70], rax
test r9d, r9d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x2c]
jne 0x140067d9b
jmp 0x140067e1a
test eax, eax
js 0x1400681f5
mov dword [rsi + 0x3c], 1
mov r9d, dword [rsi + 0x78]
mov rax, qword [rsi + 0x20]
mov qword [rsi + 0x70], rax
test r9d, r9d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8d, 0xffffffff
jne 0x140067d82
jmp 0x140067e0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
mov eax, 0xffffffff
jmp 0x140067e49
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
mov r9d, dword [rsi + 0x78]
mov eax, 0xffff0000
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x2c]
add r8d, eax
test r9d, r9d
jne 0x140067dd4
jmp 0x140067e38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
mov r9d, dword [rsi + 0x78]
mov eax, 0xffffff00
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x2c]
add r8d, eax
test r9d, r9d
jne 0x140067db6
jmp 0x140067e21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, rsi
mov edx, 0xffffffff
mov r8, rax
call fcn.140056740
mov r8d, 0xffffffff
mov r9d, dword [rsi + 0x78]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r9d, r9d
jne 0x140067d98
jmp 0x140067e0a