Function at 0x140002080
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.140052470
sub rsp, rax
mov rax, qword [0x14006a0d0]
xor rax, rsp
mov qword [rsp + 0x4050], rax
mov r12d, r9d
mov r15, r8
mov rbp, rdx
mov r13, rcx
test rdx, rdx
je 0x1400021ca
xor r14d, r14d
lea rax, [0x140061440]
mov ebx, r14d
cmp dword [rsp + 0x40c8], ebx
lea ecx, [r14 + 0x10]
cmovne rbx, rax
call fcn.140030838
mov rdi, rax
test rax, rax
je 0x1400021ca
test rbx, rbx
je 0x140002119
mov eax, dword [rbx]
test eax, eax
je 0x140002119
nop dword [rax]
cmp eax, 2
je 0x1400021fa
mov eax, dword [rbx + 4]
add rbx, 8
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x140002100
mov eax, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rdi + 8], eax
mov ebx, r14d
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [0x14006a020]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400021ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x140002169
cmp eax, 2
jne 0x140002204
test ebx, ebx
jle 0x140002204
mov ecx, 0xc8
cmp ebx, ecx
cmovl ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x20], 3
sub ebx, 0xc8
lea r8d, [r9 + 1]
call qword [0x14006a020]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002155
mov qword [rdi], rsi
test rsi, rsi
jne 0x14000220f
mov rcx, rdi
call fcn.140030840
mov eax, 0xfffffffe
mov rcx, qword [rsp + 0x4050]
xor rcx, rsp
call fcn.140029f00
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 0x14000211c
cmp rsi, 0xffffffffffffffff
jne 0x1400021ba
mov qword [rdi], r14
jmp 0x1400021c2
mov rax, qword [rsp + 0x40c0]
test rax, rax
je 0x14000225c
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x44]
mov edx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x140002247
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000224f
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14000225c
mov rcx, rdi
call fcn.140005a40
jmp 0x1400021ca
mov rbp, r14
mov r14, 0xffffffffffffffff
nop word [rax + rax]
mov rcx, qword [rdi]
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 0x1400022e2
mov rbx, r14
mov rcx, rbx
mov rbx, rcx
cmp rcx, r14
je 0x14000232d
test rcx, rcx
je 0x140002325
lea rsi, [rbx + rbp]
lfence
mov dword [rsp + 0x28], 1
mov r9d, r12d
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x50]
mov rcx, r13
cmp rsi, r15
ja 0x140002309
mov r8, rbx
call fcn.140002440
test eax, eax
je 0x140002333
mov rbp, rsi
jmp 0x140002270
mov ebx, dword [rsp + 0x40]
test rbx, rbx
je 0x140002299
cmp dword [rdi + 8], 0
je 0x1400022ad
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140005760
cmp rbx, rax
mov rcx, r14
cmove rcx, rbx
jmp 0x14000229c
mov r8, r15
sub r8, rbp
call fcn.140002440
neg eax
mov rbp, r15
sbb ecx, ecx
sub ecx, 1
mov r14d, ecx
jne 0x140002333
jmp 0x140002328
xor r14d, r14d
cmp rbp, r15
jae 0x140002333
mov r14d, 0xfffffffe
mov rcx, qword [rdi]
call qword [0x14006a018]
mov rcx, rdi
call fcn.140030840
mov eax, r14d
jmp 0x1400021cf