Function at 0x14015e9f0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x98], 0
je 0x14015ea2a
mov rax, qword [rsp + 0x98]
mov dword [rax], 0
cmp dword [rsp + 0x90], 0
jne 0x14015ec40
mov qword [rsp + 0x48], 0
cmp dword [rsp + 0x88], 0
je 0x14015eb1a
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x80]
call fcn.1401370a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 5
xor r9d, r9d
mov r8d, 1
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14015eb15
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14015eb15
cmp qword [rsp + 0x98], 0
je 0x14015eac8
mov rax, qword [rsp + 0x98]
mov dword [rax], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x80]
call fcn.1401370a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 1
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
jmp 0x14015ebe0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x80]
call fcn.1401370a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14015ebe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14015ebe0
cmp qword [rsp + 0x98], 0
je 0x14015eb93
mov rax, qword [rsp + 0x98]
mov dword [rax], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x80]
call fcn.1401370a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 1
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
mov edx, 2
mov rcx, qword [rsp + 0x48]
call fcn.1403daaf0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xffffffff
jne 0x14015ec0c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14015ecf0
lea rdx, str.wbN
mov ecx, dword [rsp + 0x50]
call fcn.1403d90b0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14015ec3b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14015ecf0
jmp 0x14015eceb
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x80]
call fcn.1401370a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x14015ec99
xor eax, eax
jmp 0x14015ecf0
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1403daaf0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xffffffff
jne 0x14015ecbf
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14015ecf0
lea rdx, [0x1405613d0]
mov ecx, dword [rsp + 0x60]
call fcn.1403d90b0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14015eceb
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14015ecf0
mov rax, qword [rsp + 0x40]
add rsp, 0x70
pop rdi
ret