Function at 0x18001b490
Capabilities:
Link many functions at runtime

Disassembly:
mov dword [rsp + 8], ecx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18014b588]
xor edi, edi
mov r14, r8
mov r13, rdx
mov r12d, edi
test rax, rax
jne 0x18001b4d4
lea rcx, str.Setupapi.dll
call fcn.180014d90
mov qword [0x18014b588], rax
test rax, rax
je 0x18001b7dc
cmp qword [0x18014b610], rdi
jne 0x18001b504
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b610], rax
test rax, rax
je 0x18001b7dc
mov rax, qword [0x18014b588]
cmp qword [0x18014b5c0], rdi
jne 0x18001b534
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b5c0], rax
test rax, rax
je 0x18001b7dc
mov rax, qword [0x18014b588]
cmp qword [0x18014b668], rdi
jne 0x18001b564
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b668], rax
test rax, rax
je 0x18001b7dc
mov rax, qword [0x18014b588]
cmp qword [0x18014b548], rdi
jne 0x18001b594
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b548], rax
test rax, rax
je 0x18001b7dc
mov rax, qword [0x18014b588]
cmp qword [0x18014b620], rdi
jne 0x18001b5bd
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b620], rax
test rax, rax
je 0x18001b7dc
mov rax, qword [0x18014b610]
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [case.0x18001dfea.0]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x18001b7dc
xorps xmm0, xmm0
mov qword [rsp + 0x78], rbx
movups xmmword [r14], xmm0
mov rcx, rax
mov qword [rsp + 0x80], rbp
movups xmmword [r14 + 0x10], xmm0
mov dword [r14], 0x20
mov r8, r14
mov rax, qword [0x18014b5c0]
xor edx, edx
mov qword [rsp + 0x88], rsi
call qword [case.0x18001dfea.0]
test eax, eax
je 0x18001b79c
nop dword [rax]
mov dword [rsp + 0x70], edi
mov rsi, rdi
mov ebp, edi
lfence
xor r9d, r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rdx, r14
mov rax, qword [0x18014b668]
mov rcx, r15
mov dword [rsp + 0x28], edi
lea r8d, [r9 + 2]
mov qword [rsp + 0x20], rdi
call qword [case.0x18001dfea.0]
mov ebx, dword [rsp + 0x70]
test ebx, ebx
je 0x18001b75a
add ebx, 4
mov ecx, 0x40
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18001b75a
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, r15
mov rax, qword [0x18014b668]
lea r8d, [r9 + 2]
call qword [case.0x18001dfea.0]
test eax, eax
je 0x18001b75a
cmp word [rsi], 0
mov rdi, rsi
je 0x18001b74c
nop
mov rbx, qword [str.PCIVEN_10DECC_0300]
cmp word [rbx], 0
je 0x18001b722
nop dword [rax]
mov rdx, rbx
mov rcx, rdi
call fcn.180063d94
test rax, rax
jne 0x18001b71c
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18001b700
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x18001b6e0
jmp 0x18001b722
cmp word [rbx], 0
jne 0x18001b74c
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18001b730
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x18001b6d0
jmp 0x18001b758
cmp word [rdi], 0
mov eax, 1
cmovne ebp, eax
xor edi, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebp, 1
je 0x18001b7d1
xorps xmm0, xmm0
inc r12d
movups xmmword [r14], xmm0
mov r8, r14
mov edx, r12d
movups xmmword [r14 + 0x10], xmm0
mov dword [r14], 0x20
mov rcx, r15
mov rax, qword [0x18014b5c0]
call qword [case.0x18001dfea.0]
test eax, eax
jne 0x18001b630
mov rax, qword [0x18014b620]
mov rcx, r15
call qword [case.0x18001dfea.0]
xor eax, eax
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [r13], r15
mov eax, 1
jmp 0x18001b7ae
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret