Function at 0x14012c7b0
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
sub rsp, 0x68
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x88], 0
je 0x14012c7e9
mov rax, qword [rsp + 0x88]
mov dword [rax], 0
cmp dword [rsp + 0x80], 0
jne 0x14012c9f0
mov qword [rsp + 0x48], 0
cmp dword [rsp + 0x78], 0
je 0x14012c8d0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call fcn.140112d50
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 0x14012c8cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14012c8cb
cmp qword [rsp + 0x88], 0
je 0x14012c881
mov rax, qword [rsp + 0x88]
mov dword [rax], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call fcn.140112d50
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 0x14012c990
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call fcn.140112d50
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 0x14012c990
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14012c990
cmp qword [rsp + 0x88], 0
je 0x14012c946
mov rax, qword [rsp + 0x88]
mov dword [rax], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call fcn.140112d50
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.140285b04
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x14012c9bc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14012ca9d
lea rdx, str.wbN
mov ecx, dword [rsp + 0x40]
call fcn.1402862bc
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14012c9eb
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14012ca9d
jmp 0x14012ca98
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call fcn.140112d50
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 0x14012ca46
xor eax, eax
jmp 0x14012ca9d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140285b04
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x14012ca6c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14012ca9d
lea rdx, [0x1403348b4]
mov ecx, dword [rsp + 0x44]
call fcn.1402862bc
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14012ca98
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14012ca9d
mov rax, qword [rsp + 0x50]
add rsp, 0x68
ret