Function at 0x140114c20
Capabilities:
Check if file exists

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], 0xfffffffffffffffe
mov rsi, rcx
test r8, r8
je 0x140114db1
js 0x140114f59
mov rdi, r8
mov rbx, rdx
movzx eax, byte [0x1403392d8]
xor ecx, ecx
mov rdx, r8
call fcn.140110e60
test rax, rax
je 0x140114f5e
mov qword [rbp + 0x250], rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x1403392d8]
xor ecx, ecx
mov rdx, rdi
call fcn.140110e60
test rax, rax
je 0x140114f6b
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rdi
mov byte [rbp - 0x40], 0
lea rdx, [0x1402a3aec]
lea rcx, [rbp - 0x58]
mov r8d, 1
call case.0x14010b81d.51
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x240], rax
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x48]
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x210]
mov qword [rbp + 0x248], rdx
call fcn.140109510
mov rax, qword [rbp + 0x210]
mov r15, qword [rbp + 0x218]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140114d65
mov rcx, qword [rbp + 0x220]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], rcx
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x1f8]
lea rdx, [rbp - 0x58]
call case.0x1400dcfb7.972
mov r12, qword [rbp + 0x1f8]
mov r15, qword [rbp + 0x200]
cmp r12, rbx
jne 0x140114dd9
mov rdi, qword [rbp + 0x250]
mov qword [rsi], r15
mov dword [rsi + 0x10], 2
cmp qword [rbp + 0x240], 0
je 0x140114d91
mov edx, 1
mov rcx, qword [rbp + 0x248]
call fcn.140050eb0
mov edx, 1
mov rcx, rdi
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140050eb0
movabs rax, 0x300000002
mov qword [rsi], rax
mov dword [rsi + 0x10], 2
lea rbx, [rbp - 0x58]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.kernel32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov r14, qword [rbp + 0x250]
je 0x140114ea2
mov r13, rax
movzx eax, byte [0x1403392d8]
mov edx, 0x30
xor ecx, ecx
call fcn.140110e60
test rax, rax
je 0x140114f81
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
lea rcx, [rsi + 0x14]
lea rdx, [rbp - 0x58]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi], rbx
mov qword [rsi + 8], r13
mov dword [rsi + 0x10], 1
test r12, r12
je 0x140114e7e
mov edx, 2
mov rcx, r15
call fcn.140050eb0
cmp qword [rbp + 0x240], 0
je 0x140114dc5
mov edx, 1
mov rcx, qword [rbp + 0x248]
call fcn.140050eb0
jmp 0x140114dc5
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x140114f08
movzx eax, byte [0x1403392d8]
mov edx, 0x30
xor ecx, ecx
call fcn.140110e60
test rax, rax
je 0x140114fa7
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
mov qword [rsi], rax
mov qword [rsi + 8], 0xffffffffffffffff
mov dword [rsi + 0x10], 0
test r12, r12
jne 0x140114e71
jmp 0x140114e7e
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov dword [rsi + 0x10], 2
test r12, r12
je 0x140114f2c
mov edx, 2
call fcn.140052910
mov ecx, 1
mov rdx, rdi
mov qword [rbp + 0x228], r13
mov qword [rbp + 0x230], r12