Function at 0x14009af70
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 0x14009b10c
js 0x14009b2cd
mov rdi, r8
mov rbx, rdx
movzx eax, byte [0x1402d3900]
xor ecx, ecx
mov rdx, r8
call fcn.140097090
test rax, rax
je 0x14009b2d2
mov qword [rbp + 0x250], rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call fcn.140067c10
movzx eax, byte [0x1402d3900]
xor ecx, ecx
mov rdx, rdi
call fcn.140097090
test rax, rax
je 0x14009b2df
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call fcn.140067c10
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rdi
mov byte [rbp - 0x40], 0
lea rdx, [0x140279308]
lea rcx, [rbp - 0x58]
mov r8d, 1
call fcn.1400932c0
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.140090170
mov rax, qword [rbp + 0x210]
mov r15, qword [rbp + 0x218]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14009b0b5
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 fcn.1400920d0
mov r12, qword [rbp + 0x1f8]
mov r15, qword [rbp + 0x200]
cmp r12, rbx
jne 0x14009b134
mov rdi, qword [rbp + 0x250]
mov qword [rsi], r15
mov dword [rsi + 0x10], 2
cmp qword [rbp + 0x240], 0
je 0x14009b0e6
mov rcx, qword [0x1402d3850]
xor edx, edx
mov r8, qword [rbp + 0x248]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1402d3850]
xor edx, edx
mov r8, rdi
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
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 fcn.140067b50
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov r14, qword [rbp + 0x250]
je 0x14009b207
mov r13, rax
movzx eax, byte [0x1402d3900]
mov edx, 0x30
xor ecx, ecx
call fcn.140097090
test rax, rax
je 0x14009b2f5
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 fcn.140067c10
mov qword [rsi], rbx
mov qword [rsi + 8], r13
mov dword [rsi + 0x10], 1
test r12, r12
je 0x14009b1de
mov rcx, qword [0x1402d3850]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14009b26d
movzx eax, byte [0x1402d3900]
mov edx, 0x30
xor ecx, ecx
call fcn.140097090
test rax, rax
je 0x14009b31b
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
add byte [rax - 0x77], cl
invalid
mov qword [rsi + 8], 0xffffffffffffffff
mov dword [rsi + 0x10], 0
test r12, r12
jne 0x14009b1cc
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov dword [rsi + 0x10], 2
add byte [rbp - 0x7b], cl
in al, 0x74
invalid
call fcn.140017670
mov ecx, 1
mov rdx, rdi
mov qword [rbp + 0x228], r13
mov qword [rbp + 0x230], r12