Function at 0x140086380
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rcx], 0xffffffffffffffff
mov dword [rcx + 8], 0
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
mov byte [rcx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
je 0x1400864ba
mov rcx, qword [rsi + 0x18]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x1400864bd
cmp byte [rsi + 0x20], 0
jne 0x1400864cd
lea r15, [rsi + 0x10]
mov rax, 0xffffffffffffffff
mov qword [rsi], rax
mov rcx, qword [rdi]
mov qword [rsi], rcx
mov qword [rdi], rax
mov eax, dword [rdi + 8]
mov dword [rsi + 8], eax
mov dword [rdi + 8], 0
mov r12, qword [rdi + 0x10]
mov qword [rdi + 0x10], 0
lea r13, [r12 + 1]
cmp r13, 2
jb 0x140086428
call fcn.1400412c0
cmp qword [r15], r12
je 0x14008645b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jae 0x140086506
cmp r13, 2
jb 0x140086453
mov qword [r15], r12
call fcn.1400412c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [rdi + 0x18]
mov qword [rdi + 0x18], 0
lea r12, [r15 + 1]
cmp r12, 2
jae 0x140086539
cmp qword [rsi + 0x18], r15
jne 0x140086543
mov al, byte [rdi + 0x20]
mov byte [rsi + 0x20], al
mov byte [rdi + 0x20], 0
mov rax, qword [rdi + 0x18]
inc rax
cmp rax, 2
jae 0x140086574
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140171860
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
mov rbx, qword [rsi]
cmp byte [rsi + 0x20], 0
mov qword [rsp + 0x40], rbx
je 0x1400864de
jmp 0x1400864d5
mov rbx, qword [rsi]
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x40]
mov rdx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x1400863e8
call fcn.1400412c0
mov r14, qword [r15]
mov rcx, qword [0x14035abe0]
test rcx, rcx
je 0x1400865d3
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x140211850.0]
mov qword [r15], 0
jmp 0x140086445
call fcn.1400412c0
jmp 0x140086475
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400865a5
cmp r12, 2
jb 0x140086567
mov qword [rsi + 0x18], r15
call fcn.1400412c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14008647f
call fcn.1400412c0
mov rbx, qword [rdi + 0x18]
mov rcx, qword [0x14035abe0]
test rcx, rcx
je 0x1400865e4
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [case.0x140211850.0]
mov qword [rdi + 0x18], 0
jmp 0x14008649a
call fcn.1400412c0
mov r14, qword [rsi + 0x18]
mov rcx, qword [0x14035abe0]
test rcx, rcx
je 0x1400865f2
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x140211850.0]
mov qword [rsi + 0x18], 0
jmp 0x140086558
call fcn.1400bf420
mov rcx, qword [0x14035abe0]
jmp 0x14008651e
call fcn.1400bf420
mov rcx, qword [0x14035abe0]
jmp 0x140086589
call fcn.1400bf420
mov rcx, qword [0x14035abe0]
jmp 0x1400865ba