Function at 0x140001df0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x4060
call fcn.140050e30
sub rsp, rax
mov rax, qword [0x1400690b8]
xor rax, rsp
mov qword [rsp + 0x4050], rax
mov r12d, r9d
mov r15, r8
mov rsi, rdx
mov r13, rcx
test rdx, rdx
je 0x140001f39
xor ebp, ebp
lea rax, [0x140060350]
mov ebx, ebp
cmp dword [rsp + 0x40c8], ebx
lea ecx, [rbp + 0x10]
cmovne rbx, rax
call fcn.14002f338
mov r14, rax
test rax, rax
je 0x140001f39
test rbx, rbx
je 0x140001e89
mov eax, dword [rbx]
test eax, eax
je 0x140001e89
nop dword [rax]
cmp eax, 2
je 0x140001f69
mov eax, dword [rbx + 4]
add rbx, 8
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x140001e70
mov eax, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
mov dword [r14 + 8], eax
mov ebx, ebp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [0x140069020]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001f29
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x140001ed8
cmp eax, 2
jne 0x140001f73
test ebx, ebx
jle 0x140001f73
mov ecx, 0xc8
cmp ebx, ecx
cmovl ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
sub ebx, 0xc8
lea r8d, [r9 + 1]
call qword [0x140069020]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001ec4
mov qword [r14], rdi
test rdi, rdi
jne 0x140001f7e
mov rcx, r14
call fcn.14002f340
mov eax, 0xfffffffe
mov rcx, qword [rsp + 0x4050]
xor rcx, rsp
call fcn.140028cd0
mov rbx, qword [rsp + 0x40b8]
add rsp, 0x4060
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
jmp 0x140001e8b
cmp rdi, 0xffffffffffffffff
jne 0x140001f29
mov qword [r14], rbp
jmp 0x140001f31
mov rax, qword [rsp + 0x40c0]
test rax, rax
je 0x140001fcb
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x4c]
mov edx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x48], eax
cmp eax, 0xffffffff
jne 0x140001fb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001fbe
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140001fcb
mov rcx, r14
call fcn.1400057c0
jmp 0x140001f39
mov rsi, rbp
mov rbp, 0xffffffffffffffff
nop word [rax + rax]
mov rcx, qword [r14]
lea r9, [rsp + 0x40]
mov r8d, 0x4000
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002052
mov rbx, rbp
mov rcx, rbx
mov rbx, rcx
cmp rcx, rbp
je 0x14000209c
test rcx, rcx
je 0x140002095
lea rdi, [rbx + rsi]
lfence
mov dword [rsp + 0x28], 1
mov r9d, r12d
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x50]
mov rcx, r13
cmp rdi, r15
ja 0x14000207a
mov r8, rbx
call fcn.1400021a0
test eax, eax
je 0x1400020a1
mov rsi, rdi
jmp 0x140001fe0
mov ebx, dword [rsp + 0x40]
test rbx, rbx
je 0x140002009
cmp dword [r14 + 8], 0
je 0x14000201d
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1400054e0
cmp rbx, rax
mov rcx, rbp
cmove rcx, rbx
jmp 0x14000200c
mov r8, r15
sub r8, rsi
call fcn.1400021a0
neg eax
mov rsi, r15
sbb ecx, ecx
sub ecx, 1
mov ebp, ecx
jne 0x1400020a1
jmp 0x140002097
xor ebp, ebp
cmp rsi, r15
jae 0x1400020a1
mov ebp, 0xfffffffe
mov rcx, qword [r14]
call qword [0x140069018]
mov rcx, r14
call fcn.14002f340
mov eax, ebp
jmp 0x140001f3e