Function at 0x180026f80
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 [0x180154010]
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 0x1800276e4
mov rsi, 0xffffffffffffffff
mov edx, r14d
mov rax, rsi
inc rax
cmp word [rdi + rax*2], dx
jne 0x180026fd7
test rax, rax
je 0x180027014
mov rcx, r14
nop dword [rax + rax]
movzx r8d, word [rdi + rcx*2]
cmp r8w, 0x5c
je 0x1800276e4
cmp r8w, 0x2f
je 0x1800276e4
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x180026ff0
mov qword [rsp + 0x338], rbx
mov ecx, 0x42ea
mov qword [rsp + 0x340], r12
call fcn.180028c10
test eax, eax
je 0x1800271fb
xor edx, edx
lea rcx, [rbp - 0x1e]
mov r8d, 0x208
call fcn.18006cd10
mov rax, qword [str.nvldumdx.dll]
mov word [rbp - 0x20], r14w
test rax, rax
je 0x1800270e1
lea r12, str.nvldumdx.dll
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800270ca
mov r8d, 0x104
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
test eax, eax
je 0x1800270ca
movzx eax, word [rbp - 0x20]
cmp eax, 0x5c
je 0x18002719b
cmp eax, 0x2f
je 0x18002719b
mov ecx, eax
call fcn.1800925bc
test eax, eax
je 0x1800270ca
cmp word [rbp - 0x1e], 0x3a
jne 0x1800270ca
movzx eax, word [rbp - 0x1c]
cmp ax, 0x5c
je 0x18002719b
cmp ax, 0x2f
je 0x18002719b
mov rax, qword [r12 + r14*8 + 8]
inc r14
test rax, rax
jne 0x180027063
xor r14d, r14d
cmp word [rbp - 0x20], r13w
jne 0x1800270ea
lea rcx, [rbp - 0x20]
call fcn.180027720
lea rax, [rbp - 0x20]
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1800270f1
mov rdx, rsi
nop
inc rdx
cmp word [rdi + rdx*2], r13w
jne 0x180027100
test rcx, rcx
je 0x180027128
cmp word [rbp + rcx*2 - 0x22], 0x5c
je 0x180027128
test rdx, rdx
je 0x180027128
cmp word [rdi], 0x5c
mov r12d, 1
jne 0x18002712b
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 0x1800271d9
lea r8, [rbp - 0x20]
mov rdx, r14
mov rcx, rax
call fcn.180021d90
test eax, eax
js 0x180027187
test r12d, r12d
je 0x1800271c4
lfence
lea r8, [0x180124aac]
mov rdx, r14
mov rcx, rbx
call fcn.180021fa0
test eax, eax
jns 0x1800271c4
lfence
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r14d, r14d
mov ebx, r14d
jmp 0x1800271dc
test ebx, ebx
je 0x1800271b6
lea rcx, [rbp - 0x20]
lea rcx, [rcx + rbx*2]
cmp word [rcx], 0x5c
je 0x1800271b6
sub rcx, 2
add ebx, 0xffffffff
jne 0x1800271a7
xor r14d, r14d
mov word [rbp + rbx*2 - 0x20], r14w
jmp 0x1800270da
lfence
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.180021fa0
test eax, eax
js 0x180027187
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800271f2
test al, 0x50
je 0x1800276a1
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 [0x18015b708]
test rax, rax
jne 0x180027248
lea rcx, str.Setupapi.dll
call fcn.180022970
mov qword [0x18015b708], rax
test rax, rax
je 0x18002737e
cmp qword [0x18015b7e8], r15
jne 0x180027278
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b7e8], rax
test rax, rax
je 0x18002737e
mov rax, qword [0x18015b708]
cmp qword [0x18015b7a0], r15
jne 0x1800272a1
lea rdx, [0x180125248]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b7a0], rax
test rax, rax
je 0x18002737e
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x58]
call fcn.180028fc0
test eax, eax
je 0x1800276a1
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x80]
mov rax, qword [0x18015b7e8]
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.0x18002b58a.0]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x180027350
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180027350
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 [0x18015b7e8]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 9]
call qword [case.0x18002b58a.0]
test eax, eax
je 0x180027350
mov rdx, rbx
lea rcx, str.SYSTEMCurrentControlSetControlClass_
call fcn.1800286d0
mov r13, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14, r14
je 0x18002736e
mov rax, qword [0x18015b7a0]
mov rcx, r14
call qword [case.0x18002b58a.0]
test r13, r13
je 0x18002737b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r14d, r14d
mov rbx, r14
test r13, r13
je 0x1800276a1
mov rcx, rdi
call fcn.180029320
mov r15, rax
test rax, rax
je 0x1800276a1
nop
cmp word [rax + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x1800273a0
lea rdi, [rax + rsi*2]
mov edx, 0x2e
mov rax, rdi
cmp r15, rdi
jae 0x1800273da
mov r8d, 0x5c
movzx ecx, word [rax]
cmp r8w, cx
je 0x1800273da
cmp dx, cx
je 0x1800273da
sub rax, 2
cmp r15, rax
jb 0x1800273c3
cmp dx, word [rax]
lea rdx, str..dll
cmove rdi, rax
mov rcx, rdi
call fcn.180091db4
test eax, eax
je 0x180027409
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180027409
mov rcx, r15
call fcn.180029670
mov rbx, rax
lea rdx, str..sys
mov rcx, rdi
call fcn.180091db4
test eax, eax
je 0x18002766e
test rbx, rbx
jne 0x1800276a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180027473
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.180029930
mov rbx, rax
test rax, rax
jne 0x1800276a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180027673
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 [0x18015b7b8]
mov qword [rsp + 0x68], r14
test rax, rax
jne 0x1800274d4
lea rcx, str.Advapi32.dll
call fcn.180022970
mov qword [0x18015b7b8], rax
test rax, rax
je 0x180027673
cmp qword [0x18015b6c0], 0
jne 0x180027505
lea rdx, str.RegOpenKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b6c0], rax
test rax, rax
je 0x180027673
mov rax, qword [0x18015b7b8]
cmp qword [0x18015b738], 0
jne 0x180027536
lea rdx, str.RegEnumValueW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b738], rax
test rax, rax
je 0x180027673
mov rax, qword [0x18015b7b8]
cmp qword [0x18015b688], 0
jne 0x180027560
lea rdx, [0x180124e38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b688], rax
test rax, rax
je 0x180027673
mov rdx, qword [r12]
test rdx, rdx
je 0x18002766b
lea rax, [rsp + 0x68]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [0x18015b6c0]
mov rcx, 0xffffffff80000002
call qword [case.0x18002b58a.0]
test eax, eax
jne 0x180027659
mov edx, 0x10000
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180027647
xor r12d, r12d
mov r14d, r12d
nop dword [rax]
xor edx, edx
mov dword [rsp + 0x60], 0x7fff
mov r8d, 0x8000
mov rcx, rdi
call fcn.18006cd10
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov rax, qword [0x18015b738]
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.0x18002b58a.0]
inc r14d
mov esi, eax
test eax, eax
jne 0x18002762c
mov rdx, r15
mov rcx, rdi
call fcn.180028580
test eax, eax
je 0x18002762c
mov rcx, rdi
call fcn.1800287e0
mov rbx, rax
test rbx, rbx
jne 0x180027639
cmp esi, 0x103
jne 0x1800275c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rax, qword [0x18015b688]
call qword [case.0x18002b58a.0]
add r12, 8
mov qword [rsp + 0x58], r12
test rbx, rbx
je 0x180027560
xor r14d, r14d
test rbx, rbx
jne 0x1800276a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800276a1
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.180029930
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 0x1800276c4
xor ecx, ecx
jmp 0x1800276d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800276d7
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x338]
jmp 0x1800276f1
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.18003f930
mov rsi, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret