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

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
xor r12d, r12d
xor ecx, ecx
mov r13d, r12d
mov r15d, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
je 0x140018d05
mov rsi, 0xffffffffffffffff
mov edx, r12d
mov rax, rsi
inc rax
cmp word [r14 + rax*2], dx
jne 0x140018672
test rax, rax
je 0x1400186b4
mov rcx, r12
nop dword [rax]
nop dword [rax + rax]
movzx r8d, word [r14 + rcx*2]
cmp r8w, 0x5c
je 0x140018d05
cmp r8w, 0x2f
je 0x140018d05
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140018690
mov qword [rsp + 0xf8], rbx
mov ecx, 0x42ea
mov qword [rsp + 0x100], rdi
call fcn.140016240
test eax, eax
je 0x1400187bf
mov rax, qword [0x1400a92f8]
mov word [0x1400abf30], r12w
lea r12, [0x1400abf30]
test rax, rax
je 0x14001877d
xor edi, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018766
mov r8d, 0x104
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
test eax, eax
je 0x140018766
movzx eax, word [0x1400abf30]
cmp eax, 0x5c
je 0x140018b29
cmp eax, 0x2f
je 0x140018b29
mov ecx, eax
call fcn.14005dc38
test eax, eax
je 0x140018766
cmp word [0x1400abf32], 0x3a
jne 0x140018766
movzx eax, word [0x1400abf34]
cmp ax, 0x5c
je 0x140018b29
cmp ax, 0x2f
je 0x140018b29
inc rdi
lea rax, [0x1400a92f8]
mov rax, qword [rax + rdi*8]
test rax, rax
jne 0x1400186f7
cmp word [0x1400abf30], r13w
jne 0x14001878f
call fcn.140014690
mov r12, rax
mov rdx, r14
mov rcx, r12
call fcn.140017010
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400187b3
test al, 0x50
je 0x140018c9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r12d, r12d
xorps xmm0, xmm0
mov qword [rbp - 0x31], r12
movups xmmword [rbp - 0x11], xmm0
xor ecx, ecx
mov dword [rbp - 0x11], 0x20
mov rbx, r12
mov r13, r12
movups xmmword [rbp - 1], xmm0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x1400aba90]
test rax, rax
jne 0x14001880d
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.140016480
mov qword [0x1400aba90], rax
test rax, rax
je 0x140018941
cmp qword [0x1400abab0], r15
jne 0x14001883d
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abab0], rax
test rax, rax
je 0x140018941
mov rax, qword [0x1400aba90]
cmp qword [0x1400abac0], r15
jne 0x140018866
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abac0], rax
test rax, rax
je 0x140018941
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x31]
lea rcx, [0x14008e228]
call fcn.140014140
test eax, eax
je 0x140018c9f
mov rdi, qword [rbp - 0x31]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x11]
mov rax, qword [0x1400abab0]
xor r9d, r9d
mov dword [rsp + 0x28], r12d
mov rcx, rdi
mov dword [rbp - 0x39], r12d
mov qword [rsp + 0x20], r12
lea r8d, [r9 + 9]
call qword [case.0x14001e91b.0]
mov eax, dword [rbp - 0x39]
test eax, eax
je 0x140018916
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140018916
mov ecx, dword [rbp - 0x39]
lea rdx, [rbp - 0x11]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400abab0]
lea r8d, [r9 + 9]
call qword [case.0x14001e91b.0]
test eax, eax
je 0x140018916
mov rdx, rbx
lea rcx, str.SYSTEMCurrentControlSetControlClass_
call fcn.140017010
mov r13, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140018934
mov rax, qword [0x1400abac0]
mov rcx, rdi
call qword [case.0x14001e91b.0]
test r13, r13
je 0x140018941
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, r12
test r13, r13
je 0x140018c9f
mov rcx, r14
call fcn.1400132a0
mov r15, rax
test rax, rax
je 0x140018c9f
cmp word [rax + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x140018961
lea rdi, [rax + rsi*2]
mov edx, 0x2e
mov rax, rdi
cmp r15, rdi
jae 0x14001899b
mov r8d, 0x5c
movzx ecx, word [rax]
cmp r8w, cx
je 0x14001899b
cmp dx, cx
je 0x14001899b
sub rax, 2
cmp r15, rax
jb 0x140018984
cmp dx, word [rax]
lea rdx, str..dll
cmove rdi, rax
mov rcx, rdi
call fcn.14005e12c
test eax, eax
je 0x1400189d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400189d1
lea rdx, [0x14008e228]
mov rcx, r15
call fcn.1400139d0
mov rbx, rax
lea rdx, str..sys
mov rcx, rdi
call fcn.14005e12c
test eax, eax
je 0x140018c68
test rbx, rbx
jne 0x140018c9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140018a42
lea rax, str.UserModeDriverName
mov qword [rbp + 0x27], r12
mov qword [rbp + 0xf], rax
lea r9, [rbp + 0xf]
lea rax, str.OpenGLDriverName
mov r8, r13
mov qword [rbp + 0x17], rax
mov rdx, 0xffffffff80000002
lea rax, str.UserModeDListDriverName
mov rcx, r15
mov qword [rbp + 0x1f], rax
call fcn.140013ea0
mov rbx, rax
test rax, rax
jne 0x140018c9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140018c6d
lea rax, str.SOFTWAREKhronosVulkanDrivers
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0xf], rax
lea r12, [rbp + 0xf]
lea rax, str.SOFTWAREKhronosOpenCLVendors
mov qword [rbp - 0x21], r12
mov qword [rbp + 0x17], rax
xor eax, eax
mov qword [rbp - 0x31], rax
mov ebx, eax
mov rax, qword [0x1400abb30]
test rax, rax
jne 0x140018aa4
xor edx, edx
lea rcx, [0x14008e280]
call fcn.140016480
mov qword [0x1400abb30], rax
test rax, rax
je 0x140018b21
cmp qword [0x1400abb38], rbx
jne 0x140018ad0
lea rdx, [0x14008e978]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb38], rax
test rax, rax
je 0x140018b21
mov rax, qword [0x1400abb30]
cmp qword [0x1400abb40], rbx
jne 0x140018afc
lea rdx, str.RegEnumValueW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb40], rax
test rax, rax
je 0x140018b21
mov rax, qword [0x1400abb30]
cmp qword [0x1400abb50], rbx
jne 0x140018b60
lea rdx, [0x14008e998]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb50], rax
test rax, rax
jne 0x140018b60
xor r12d, r12d
jmp 0x140018c6d
test ebx, ebx
je 0x140018b40
lea rcx, [r12 + rbx*2]
cmp word [rcx], 0x5c
je 0x140018b40
sub rcx, 2
add ebx, 0xffffffff
jne 0x140018b31
mov eax, ebx
add rax, rax
cmp rax, 0x20a
jae 0x140018d14
xor ecx, ecx
mov word [rax + r12], cx
jmp 0x14001877d
mov rdx, qword [r12]
test rdx, rdx
je 0x140018c65
lea rax, [rbp - 0x31]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [0x1400abb38]
mov rcx, 0xffffffff80000002
call qword [case.0x14001e91b.0]
test eax, eax
jne 0x140018c54
mov edx, 0x10000
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140018c43
xor r12d, r12d
mov r14d, r12d
nop dword [rax + rax]
xor edx, edx
mov dword [rbp - 0x29], 0x7fff
mov r8d, 0x8000
mov rcx, rdi
call fcn.140024e90
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 0x29]
mov rax, qword [0x1400abb40]
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.0x14001e91b.0]
inc r14d
mov esi, eax
test eax, eax
jne 0x140018c29
mov rdx, r15
mov rcx, rdi
call fcn.140015b20
test eax, eax
je 0x140018c29
mov rcx, rdi
call fcn.140017120
mov rbx, rax
test rbx, rbx
jne 0x140018c36
cmp esi, 0x103
jne 0x140018bc0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
mov rax, qword [0x1400abb50]
call qword [case.0x14001e91b.0]
add r12, 8
mov qword [rbp - 0x21], r12
test rbx, rbx
je 0x140018b60
xor r12d, r12d
test rbx, rbx
jne 0x140018c9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140018c9f
lea rax, str.DriverSupportModules
mov qword [rbp - 0x19], r12
lea r9, [rbp - 0x21]
mov qword [rbp - 0x21], rax
mov r8, r13
mov rdx, 0xffffffff80000002
mov rcx, r15
call fcn.140013ea0
mov rbx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x140018cba
xor ecx, ecx
jmp 0x140018cc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140018ccd
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x100]
mov rax, rbx
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140023310
mov rsi, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140018ce0
call fcn.140023ff4
int3