Function at 0x180019c40
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x180145010]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rdi, rcx
xor r14d, r14d
xor ecx, ecx
mov r13d, r14d
mov r15d, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x18001a3a4
mov rsi, 0xffffffffffffffff
mov edx, r14d
mov rax, rsi
inc rax
cmp word [rdi + rax*2], dx
jne 0x180019c97
test rax, rax
je 0x180019cd4
mov rcx, r14
nop dword [rax + rax]
movzx r8d, word [rdi + rcx*2]
cmp r8w, 0x5c
je 0x18001a3a4
cmp r8w, 0x2f
je 0x18001a3a4
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x180019cb0
mov qword [rsp + 0x338], rbx
mov ecx, 0x42ea
mov qword [rsp + 0x340], r12
call fcn.18001b8e0
test eax, eax
je 0x180019ebb
xor edx, edx
lea rcx, [rbp - 0x1e]
mov r8d, 0x208
call fcn.180063de0
mov rax, qword [str.nvldumdx.dll]
mov word [rbp - 0x20], r14w
test rax, rax
je 0x180019da1
lea r12, str.nvldumdx.dll
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180019d8a
mov r8d, 0x104
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
test eax, eax
je 0x180019d8a
movzx eax, word [rbp - 0x20]
cmp eax, 0x5c
je 0x180019e5b
cmp eax, 0x2f
je 0x180019e5b
mov ecx, eax
call fcn.180070d00
test eax, eax
je 0x180019d8a
cmp word [rbp - 0x1e], 0x3a
jne 0x180019d8a
movzx eax, word [rbp - 0x1c]
cmp ax, 0x5c
je 0x180019e5b
cmp ax, 0x2f
je 0x180019e5b
mov rax, qword [r12 + r14*8 + 8]
inc r14
test rax, rax
jne 0x180019d23
xor r14d, r14d
cmp word [rbp - 0x20], r13w
jne 0x180019daa
lea rcx, [rbp - 0x20]
call fcn.18001a3e0
lea rax, [rbp - 0x20]
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x180019db1
mov rdx, rsi
nop
inc rdx
cmp word [rdi + rdx*2], r13w
jne 0x180019dc0
test rcx, rcx
je 0x180019de8
cmp word [rbp + rcx*2 - 0x22], 0x5c
je 0x180019de8
test rdx, rdx
je 0x180019de8
cmp word [rdi], 0x5c
mov r12d, 1
jne 0x180019deb
mov r12d, r14d
mov eax, r12d
add rax, rdx
add rax, rcx
mov ecx, 0x40
lea r14, [rax*2 + 2]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180019e99
lea r8, [rbp - 0x20]
mov rdx, r14
mov rcx, rax
call fcn.180014950
test eax, eax
js 0x180019e47
test r12d, r12d
je 0x180019e84
lfence
lea r8, [0x18011a42c]
mov rdx, r14
mov rcx, rbx
call fcn.180014b60
test eax, eax
jns 0x180019e84
lfence
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r14d, r14d
mov ebx, r14d
jmp 0x180019e9c
test ebx, ebx
je 0x180019e76
lea rcx, [rbp - 0x20]
lea rcx, [rcx + rbx*2]
cmp word [rcx], 0x5c
je 0x180019e76
sub rcx, 2
add ebx, 0xffffffff
jne 0x180019e67
xor r14d, r14d
mov word [rbp + rbx*2 - 0x20], r14w
jmp 0x180019d9a
lfence
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.180014b60
test eax, eax
js 0x180019e47
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180019eb2
test al, 0x50
je 0x18001a361
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xorps xmm0, xmm0
mov qword [rsp + 0x58], r14
movups xmmword [rbp - 0x80], xmm0
xor ecx, ecx
mov dword [rbp - 0x80], 0x20
mov rbx, r14
mov r13, r14
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x18014c140]
test rax, rax
jne 0x180019f0a
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.180015530
mov qword [0x18014c140], rax
test rax, rax
je 0x18001a040
cmp qword [0x18014c220], r15
jne 0x180019f3a
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c220], rax
test rax, rax
je 0x18001a040
mov rax, qword [0x18014c140]
cmp qword [0x18014c1d8], r15
jne 0x180019f63
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c1d8], rax
test rax, rax
je 0x18001a040
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x58]
call fcn.18001bc90
test eax, eax
je 0x18001a361
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x80]
mov rax, qword [0x18014c220]
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r14, qword [rsp + 0x58]
mov rcx, r14
lea r8d, [r9 + 9]
call qword [case.0x18001f0fa.0]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18001a012
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18001a012
mov eax, dword [rsp + 0x50]
lea rdx, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov rcx, r14
mov rax, qword [0x18014c220]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 9]
call qword [case.0x18001f0fa.0]
test eax, eax
je 0x18001a012
mov rdx, rbx
lea rcx, str.SYSTEMCurrentControlSetControlClass_
call fcn.18001b3a0
mov r13, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14, r14
je 0x18001a030
mov rax, qword [0x18014c1d8]
mov rcx, r14
call qword [case.0x18001f0fa.0]
test r13, r13
je 0x18001a03d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r14d, r14d
mov rbx, r14
test r13, r13
je 0x18001a361
mov rcx, rdi
call fcn.18001bff0
mov r15, rax
test rax, rax
je 0x18001a361
cmp word [rax + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x18001a060
lea rdi, [rax + rsi*2]
mov edx, 0x2e
mov rax, rdi
cmp r15, rdi
jae 0x18001a09a
mov r8d, 0x5c
movzx ecx, word [rax]
cmp r8w, cx
je 0x18001a09a
cmp dx, cx
je 0x18001a09a
sub rax, 2
cmp r15, rax
jb 0x18001a083
cmp dx, word [rax]
lea rdx, str..dll
cmove rdi, rax
mov rcx, rdi
call fcn.180070410
test eax, eax
je 0x18001a0c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001a0c9
mov rcx, r15
call fcn.18001c350
mov rbx, rax
lea rdx, str..sys
mov rcx, rdi
call fcn.180070410
test eax, eax
je 0x18001a32e
test rbx, rbx
jne 0x18001a361
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001a133
lea rax, str.UserModeDriverName
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x48], rax
lea r9, [rbp - 0x48]
lea rax, str.OpenGLDriverName
mov r8, r13
mov qword [rbp - 0x40], rax
mov rcx, r15
lea rax, str.UserModeDListDriverName
mov qword [rbp - 0x38], rax
call fcn.18001c610
mov rbx, rax
test rax, rax
jne 0x18001a361
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001a333
lea rax, str.SOFTWAREKhronosVulkanDrivers
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x60], rax
lea r12, [rbp - 0x60]
lea rax, str.SOFTWAREKhronosOpenCLVendors
mov qword [rsp + 0x58], r12
mov qword [rbp - 0x58], rax
mov rbx, r14
mov rax, qword [0x18014c1f0]
mov qword [rsp + 0x68], r14
test rax, rax
jne 0x18001a196
xor edx, edx
lea rcx, str.Advapi32.dll
call fcn.180015530
mov qword [0x18014c1f0], rax
test rax, rax
je 0x18001a333
cmp qword [0x18014c0f8], 0
jne 0x18001a1c7
lea rdx, str.RegOpenKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c0f8], rax
test rax, rax
je 0x18001a333
mov rax, qword [0x18014c1f0]
cmp qword [0x18014c170], 0
jne 0x18001a1f8
lea rdx, str.RegEnumValueW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c170], rax
test rax, rax
je 0x18001a333
mov rax, qword [0x18014c1f0]
cmp qword [0x18014c0c0], 0
jne 0x18001a222
lea rdx, [0x18011a7b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c0c0], rax
test rax, rax
je 0x18001a333
mov rdx, qword [r12]
test rdx, rdx
je 0x18001a32b
lea rax, [rsp + 0x68]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [0x18014c0f8]
mov rcx, 0xffffffff80000002
call qword [case.0x18001f0fa.0]
test eax, eax
jne 0x18001a319
mov edx, 0x10000
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18001a307
xor r12d, r12d
mov r14d, r12d
nop
xor edx, edx
mov dword [rsp + 0x60], 0x7fff
mov r8d, 0x8000
mov rcx, rdi
call fcn.180063de0
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov rax, qword [0x18014c170]
mov r8, rdi
mov qword [rsp + 0x38], r12
mov edx, r14d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [case.0x18001f0fa.0]
inc r14d
mov esi, eax
test eax, eax
jne 0x18001a2ec
mov rdx, r15
mov rcx, rdi
call fcn.18001b250
test eax, eax
je 0x18001a2ec
mov rcx, rdi
call fcn.18001b4b0
mov rbx, rax
test rbx, rbx
jne 0x18001a2f9
cmp esi, 0x103
jne 0x18001a280
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rax, qword [0x18014c0c0]
call qword [case.0x18001f0fa.0]
add r12, 8
mov qword [rsp + 0x58], r12
test rbx, rbx
je 0x18001a222
xor r14d, r14d
test rbx, rbx
jne 0x18001a361
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001a361
lea rax, str.DriverSupportModules
mov qword [rsp + 0x78], r14
lea r9, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov r8, r13
mov rcx, r15
call fcn.18001c610
mov rbx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x340]
test rbx, rbx
je 0x18001a384
xor ecx, ecx
jmp 0x18001a391
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001a397
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x338]
jmp 0x18001a3b1
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.180034ab0
mov rsi, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret