Function at 0x140011ce0
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 - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1400b1318]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
xor esi, esi
xor ecx, ecx
mov r13d, esi
mov r14d, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r15, r15
je 0x1400123c3
mov rdi, 0xffffffffffffffff
mov edx, esi
mov rax, rdi
nop
inc rax
cmp word [r15 + rax*2], dx
jne 0x140011d30
test rax, rax
je 0x140011d74
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [r15 + rcx*2]
cmp r8w, 0x5c
je 0x1400123c3
cmp r8w, 0x2f
je 0x1400123c3
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140011d50
mov qword [rsp + 0xf8], rbx
mov ecx, 0x42ea
mov qword [rsp + 0x100], r12
call fcn.14000f680
test eax, eax
je 0x140011e7b
mov rax, qword [str.pC_t_]
lea r12, [0x1400b3e60]
mov word [0x1400b3e60], si
test rax, rax
je 0x140011e3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011e23
mov r8d, 0x104
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
test eax, eax
je 0x140011e23
movzx eax, word [0x1400b3e60]
cmp eax, 0x5c
je 0x140012349
cmp eax, 0x2f
je 0x140012349
mov ecx, eax
call fcn.1400615a8
test eax, eax
je 0x140011e23
cmp word [0x1400b3e62], 0x3a
jne 0x140011e23
movzx eax, word [0x1400b3e64]
cmp ax, 0x5c
je 0x140012349
cmp ax, 0x2f
je 0x140012349
inc rsi
lea rax, str.pC_t_
mov rax, qword [rax + rsi*8]
test rax, rax
jne 0x140011db4
xor esi, esi
cmp word [0x1400b3e60], r13w
jne 0x140011e4e
call fcn.14000d910
mov r12, rax
mov rdx, r15
mov rcx, r12
call fcn.140010460
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140011e72
test al, 0x50
je 0x14001232e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xorps xmm0, xmm0
mov qword [rbp - 0x31], rsi
movups xmmword [rbp - 0x11], xmm0
xor ecx, ecx
mov dword [rbp - 0x11], 0x20
mov rbx, rsi
mov r13, rsi
movups xmmword [rbp - 1], xmm0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x1400b39b0]
test rax, rax
jne 0x140011ec9
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.14000f8c0
mov qword [0x1400b39b0], rax
test rax, rax
je 0x140011ff8
cmp qword [0x1400b39d0], r14
jne 0x140011ef9
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b39d0], rax
test rax, rax
je 0x140011ff8
mov rax, qword [0x1400b39b0]
cmp qword [0x1400b39e0], r14
jne 0x140011f22
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b39e0], rax
test rax, rax
je 0x140011ff8
lea r8, [rbp - 0x11]
xor ecx, ecx
lea rdx, [rbp - 0x31]
call fcn.14000d380
test eax, eax
je 0x14001232e
lea rax, [rbp - 0x39]
mov dword [rbp - 0x39], esi
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x11]
mov rax, qword [0x1400b39d0]
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov rsi, qword [rbp - 0x31]
mov rcx, rsi
lea r8d, [r9 + 9]
call qword [case.0x14001a41b.0]
mov eax, dword [rbp - 0x39]
test eax, eax
je 0x140011fcb
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140011fcb
mov ecx, dword [rbp - 0x39]
lea rdx, [rbp - 0x11]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400b39d0]
lea r8d, [r9 + 9]
call qword [case.0x14001a41b.0]
test eax, eax
je 0x140011fcb
mov rdx, rbx
lea rcx, str.SYSTEMCurrentControlSetControlClass_
call fcn.140010460
mov r13, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x140011fe9
mov rax, qword [0x1400b39e0]
mov rcx, rsi
call qword [case.0x14001a41b.0]
test r13, r13
je 0x140011ff6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rbx, rsi
test r13, r13
je 0x14001232e
mov rcx, r15
call fcn.14000c4a0
mov r14, rax
test rax, rax
je 0x14001232e
nop dword [rax + rax]
cmp word [rax + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x140012020
lea rdi, [rax + rdi*2]
mov edx, 0x2e
mov rax, rdi
cmp r14, rdi
jae 0x14001205a
mov r8d, 0x5c
movzx ecx, word [rax]
cmp r8w, cx
je 0x14001205a
cmp dx, cx
je 0x14001205a
sub rax, 2
cmp r14, rax
jb 0x140012043
cmp dx, word [rax]
lea rdx, str..dll
cmove rdi, rax
mov rcx, rdi
call fcn.140061a9c
test eax, eax
je 0x14001208b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001208b
xor edx, edx
mov rcx, r14
call fcn.14000cbd0
mov rbx, rax
lea rdx, str..sys
mov rcx, rdi
call fcn.140061a9c
test eax, eax
je 0x1400122f7
test rbx, rbx
jne 0x14001232e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400120fc
lea rax, str.UserModeDriverName
mov qword [rbp + 0x27], rsi
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, r14
mov qword [rbp + 0x1f], rax
call fcn.14000d0a0
mov rbx, rax
test rax, rax
jne 0x14001232e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400122fc
lea rax, str.SOFTWAREKhronosVulkanDrivers
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0xf], rax
lea r12, [rbp + 0xf]
lea rax, str.SOFTWAREKhronosOpenCLVendors
mov qword [rbp - 0x21], r12
mov qword [rbp + 0x17], rax
mov rbx, rsi
mov rax, qword [0x1400b3a50]
mov qword [rbp - 0x31], rsi
test rax, rax
jne 0x14001215d
xor edx, edx
lea rcx, str.Advapi32.dll
call fcn.14000f8c0
mov qword [0x1400b3a50], rax
test rax, rax
je 0x1400122fc
cmp qword [0x1400b3a58], 0
jne 0x14001218e
lea rdx, [0x140094b28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b3a58], rax
test rax, rax
je 0x1400122fc
mov rax, qword [0x1400b3a50]
cmp qword [0x1400b3a60], 0
jne 0x1400121bf
lea rdx, str.RegEnumValueW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b3a60], rax
test rax, rax
je 0x1400122fc
mov rax, qword [0x1400b3a50]
cmp qword [0x1400b3a70], 0
jne 0x1400121f0
lea rdx, [0x140094b48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b3a70], rax
test rax, rax
je 0x1400122fc
nop dword [rax]
mov rdx, qword [r12]
test rdx, rdx
je 0x1400122f5
lea rax, [rbp - 0x31]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [0x1400b3a58]
mov rcx, 0xffffffff80000002
call qword [case.0x14001a41b.0]
test eax, eax
jne 0x1400122e4
mov edx, 0x10000
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400122d3
xor r12d, r12d
mov r15d, r12d
nop dword [rax + rax]
xor edx, edx
mov dword [rbp - 0x29], 0x7fff
mov r8d, 0x8000
mov rcx, rdi
call fcn.140028750
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 0x29]
mov rax, qword [0x1400b3a60]
mov r8, rdi
mov qword [rsp + 0x38], r12
mov edx, r15d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [case.0x14001a41b.0]
inc r15d
mov esi, eax
test eax, eax
jne 0x1400122b9
mov rdx, r14
mov rcx, rdi
call fcn.14000ef30
test eax, eax
je 0x1400122b9
mov rcx, rdi
call fcn.140010570
mov rbx, rax
test rbx, rbx
jne 0x1400122c6
cmp esi, 0x103
jne 0x140012250
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
mov rax, qword [0x1400b3a70]
call qword [case.0x14001a41b.0]
add r12, 8
mov qword [rbp - 0x21], r12
test rbx, rbx
je 0x1400121f0
xor esi, esi
test rbx, rbx
jne 0x14001232e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001232e
lea rax, str.DriverSupportModules
mov qword [rbp - 0x19], rsi
lea r9, [rbp - 0x21]
mov qword [rbp - 0x21], rax
mov r8, r13
mov rdx, 0xffffffff80000002
mov rcx, r14
call fcn.14000d0a0
mov rbx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x140012379
xor ecx, ecx
jmp 0x140012386
test ebx, ebx
je 0x140012360
lea rcx, [r12 + rbx*2]
cmp word [rcx], 0x5c
je 0x140012360
sub rcx, 2
add ebx, 0xffffffff
jne 0x140012351
mov eax, ebx
add rax, rax
cmp rax, 0x20a
jae 0x1400123d2
xor esi, esi
mov word [rax + r12], si
jmp 0x140011e3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001238c
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [rsp + 0x100]
mov rax, rbx
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140026d60
mov rsi, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001239f
call fcn.140027a44
int3