Function at 0x140010cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140092560]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rcx
xor ebp, ebp
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
je 0x140010f9b
xor edx, edx
or rsi, 0xffffffffffffffff
mov rax, rsi
nop dword [rax]
inc rax
cmp word [r14 + rax*2], dx
jne 0x140010d30
test rax, rax
je 0x140010d74
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [r14 + rcx*2]
cmp r8w, 0x5c
je 0x140010f9b
cmp r8w, 0x2f
je 0x140010f9b
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140010d50
mov ecx, 0x42ea
mov qword [rsp + 0x78], rbx
call fcn.14000ea00
test eax, eax
je 0x140010db9
call fcn.14000d700
mov rdx, r14
mov rcx, rax
call fcn.14000f850
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140010db0
test al, 0x50
je 0x140010f55
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [0x14007b080]
call fcn.140010ff0
xor ebx, ebx
mov rbp, rax
test rax, rax
je 0x140010f55
mov rcx, r14
call fcn.14000c380
mov rdi, rax
test rax, rax
je 0x140010f55
nop word [rax + rax]
cmp word [rax + rsi*2 + 2], bx
lea rsi, [rsi + 1]
jne 0x140010df0
lea rsi, [rax + rsi*2]
mov edx, 0x2e
mov rax, rsi
cmp rdi, rsi
jae 0x140010e29
mov r8d, 0x5c
movzx ecx, word [rax]
cmp r8w, cx
je 0x140010e29
cmp dx, cx
je 0x140010e29
sub rax, 2
cmp rdi, rax
jb 0x140010e12
cmp dx, word [rax]
lea rdx, str..dll
cmove rsi, rax
mov rcx, rsi
call fcn.140050b78
test eax, eax
je 0x140010e5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140010e5f
lea rdx, [0x14007b080]
mov rcx, rdi
call fcn.14000caf0
mov rbx, rax
lea rdx, str..sys
mov rcx, rsi
call fcn.140050b78
test eax, eax
je 0x140010f17
test rbx, rbx
jne 0x140010f55
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140010ed5
lea rax, str.UserModeDriverName
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x20]
lea rax, str.OpenGLDriverName
mov r8, rbp
mov qword [rsp + 0x28], rax
mov rdx, 0xffffffff80000002
lea rax, str.UserModeDListDriverName
mov rcx, rdi
mov qword [rsp + 0x30], rax
call fcn.14000d000
mov rbx, rax
test rax, rax
jne 0x140010f55
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140010f1c
lea rax, str.SOFTWAREKhronosVulkanDrivers
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
lea rax, str.SOFTWAREKhronosOpenCLVendors
mov rdx, 0xffffffff80000002
mov rcx, rdi
mov qword [rsp + 0x28], rax
call fcn.14000cdb0
mov rbx, rax
test rbx, rbx
jne 0x140010f55
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140010f55
lea rax, str.DriverSupportModules
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbp
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.14000d000
mov rbx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x140010f7e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x78]
jmp 0x140010fa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140010f91
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x78]
jmp 0x140010fa8
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018190
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret