Function at 0x180019450
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 [0x180144010]
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 0x180019bb4
mov rsi, 0xffffffffffffffff
mov edx, r14d
mov rax, rsi
inc rax
cmp word [rdi + rax*2], dx
jne 0x1800194a7
test rax, rax
je 0x1800194e4
mov rcx, r14
nop dword [rax + rax]
movzx r8d, word [rdi + rcx*2]
cmp r8w, 0x5c
je 0x180019bb4
cmp r8w, 0x2f
je 0x180019bb4
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x1800194c0
mov qword [rsp + 0x338], rbx
mov ecx, 0x42ea
mov qword [rsp + 0x340], r12
call fcn.18001b0e0
test eax, eax
je 0x1800196cb
xor edx, edx
lea rcx, [rbp - 0x1e]
mov r8d, 0x208
call fcn.180064850
mov rax, qword [str.nvldumdx.dll]
mov word [rbp - 0x20], r14w
test rax, rax
je 0x1800195b1
lea r12, str.nvldumdx.dll
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001959a
mov r8d, 0x104
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
test eax, eax
je 0x18001959a
movzx eax, word [rbp - 0x20]
cmp eax, 0x5c
je 0x18001966b
cmp eax, 0x2f
je 0x18001966b
mov ecx, eax
call fcn.1800893b4
test eax, eax
je 0x18001959a
cmp word [rbp - 0x1e], 0x3a
jne 0x18001959a
movzx eax, word [rbp - 0x1c]
cmp ax, 0x5c
je 0x18001966b
cmp ax, 0x2f
je 0x18001966b
mov rax, qword [r12 + r14*8 + 8]
inc r14
test rax, rax
jne 0x180019533
xor r14d, r14d
cmp word [rbp - 0x20], r13w
jne 0x1800195ba
lea rcx, [rbp - 0x20]
call fcn.180019bf0
lea rax, [rbp - 0x20]
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1800195c1
mov rdx, rsi
nop
inc rdx
cmp word [rdi + rdx*2], r13w
jne 0x1800195d0
test rcx, rcx
je 0x1800195f8
cmp word [rbp + rcx*2 - 0x22], 0x5c
je 0x1800195f8
test rdx, rdx
je 0x1800195f8
cmp word [rdi], 0x5c
mov r12d, 1
jne 0x1800195fb
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 0x1800196a9
lea r8, [rbp - 0x20]
mov rdx, r14
mov rcx, rax
call fcn.1800141b0
test eax, eax
js 0x180019657
test r12d, r12d
je 0x180019694
lfence
lea r8, [0x18011847c]
mov rdx, r14
mov rcx, rbx
call fcn.1800143c0
test eax, eax
jns 0x180019694
lfence
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r14d, r14d
mov ebx, r14d
jmp 0x1800196ac
test ebx, ebx
je 0x180019686
lea rcx, [rbp - 0x20]
lea rcx, [rcx + rbx*2]
cmp word [rcx], 0x5c
je 0x180019686
sub rcx, 2
add ebx, 0xffffffff
jne 0x180019677
xor r14d, r14d
mov word [rbp + rbx*2 - 0x20], r14w
jmp 0x1800195aa
lfence
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.1800143c0
test eax, eax
js 0x180019657
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800196c2
test al, 0x50
je 0x180019b71
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 [0x18014b588]
test rax, rax
jne 0x180019718
lea rcx, str.Setupapi.dll
call fcn.180014d90
mov qword [0x18014b588], rax
test rax, rax
je 0x18001984e
cmp qword [0x18014b668], r15
jne 0x180019748
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b668], rax
test rax, rax
je 0x18001984e
mov rax, qword [0x18014b588]
cmp qword [0x18014b620], r15
jne 0x180019771
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b620], rax
test rax, rax
je 0x18001984e
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x58]
call fcn.18001b490
test eax, eax
je 0x180019b71
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x80]
mov rax, qword [0x18014b668]
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.0x18001dfea.0]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x180019820
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180019820
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 [0x18014b668]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 9]
call qword [case.0x18001dfea.0]
test eax, eax
je 0x180019820
mov rdx, rbx
lea rcx, str.SYSTEMCurrentControlSetControlClass_
call fcn.18001aba0
mov r13, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14, r14
je 0x18001983e
mov rax, qword [0x18014b620]
mov rcx, r14
call qword [case.0x18001dfea.0]
test r13, r13
je 0x18001984b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r14d, r14d
mov rbx, r14
test r13, r13
je 0x180019b71
mov rcx, rdi
call fcn.18001b7f0
mov r15, rax
test rax, rax
je 0x180019b71
nop
cmp word [rax + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x180019870
lea rdi, [rax + rsi*2]
mov edx, 0x2e
mov rax, rdi
cmp r15, rdi
jae 0x1800198aa
mov r8d, 0x5c
movzx ecx, word [rax]
cmp r8w, cx
je 0x1800198aa
cmp dx, cx
je 0x1800198aa
sub rax, 2
cmp r15, rax
jb 0x180019893
cmp dx, word [rax]
lea rdx, str..dll
cmove rdi, rax
mov rcx, rdi
call fcn.180088adc
test eax, eax
je 0x1800198d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800198d9
mov rcx, r15
call fcn.18001bb40
mov rbx, rax
lea rdx, str..sys
mov rcx, rdi
call fcn.180088adc
test eax, eax
je 0x180019b3e
test rbx, rbx
jne 0x180019b71
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180019943
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.18001be00
mov rbx, rax
test rax, rax
jne 0x180019b71
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180019b43
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 [0x18014b638]
mov qword [rsp + 0x68], r14
test rax, rax
jne 0x1800199a4
lea rcx, str.Advapi32.dll
call fcn.180014d90
mov qword [0x18014b638], rax
test rax, rax
je 0x180019b43
cmp qword [0x18014b540], 0
jne 0x1800199d5
lea rdx, str.RegOpenKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b540], rax
test rax, rax
je 0x180019b43
mov rax, qword [0x18014b638]
cmp qword [0x18014b5b8], 0
jne 0x180019a06
lea rdx, str.RegEnumValueW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b5b8], rax
test rax, rax
je 0x180019b43
mov rax, qword [0x18014b638]
cmp qword [0x18014b508], 0
jne 0x180019a30
lea rdx, [0x180118808]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b508], rax
test rax, rax
je 0x180019b43
mov rdx, qword [r12]
test rdx, rdx
je 0x180019b3b
lea rax, [rsp + 0x68]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [0x18014b540]
mov rcx, 0xffffffff80000002
call qword [case.0x18001dfea.0]
test eax, eax
jne 0x180019b29
mov edx, 0x10000
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180019b17
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.180064850
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov rax, qword [0x18014b5b8]
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.0x18001dfea.0]
inc r14d
mov esi, eax
test eax, eax
jne 0x180019afc
mov rdx, r15
mov rcx, rdi
call fcn.18001aa50
test eax, eax
je 0x180019afc
mov rcx, rdi
call fcn.18001acb0
mov rbx, rax
test rbx, rbx
jne 0x180019b09
cmp esi, 0x103
jne 0x180019a90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rax, qword [0x18014b508]
call qword [case.0x18001dfea.0]
add r12, 8
mov qword [rsp + 0x58], r12
test rbx, rbx
je 0x180019a30
xor r14d, r14d
test rbx, rbx
jne 0x180019b71
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180019b71
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.18001be00
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 0x180019b94
xor ecx, ecx
jmp 0x180019ba1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180019ba7
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x338]
jmp 0x180019bc1
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1800341c0
mov rsi, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret