Function at 0x180028fc0
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 [0x18015b708]
xor edi, edi
mov r14, r8
mov r13, rdx
mov r12d, edi
test rax, rax
jne 0x180029004
lea rcx, str.Setupapi.dll
call fcn.180022970
mov qword [0x18015b708], rax
test rax, rax
je 0x18002930c
cmp qword [0x18015b790], rdi
jne 0x180029034
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b790], rax
test rax, rax
je 0x18002930c
mov rax, qword [0x18015b708]
cmp qword [0x18015b740], rdi
jne 0x180029064
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b740], rax
test rax, rax
je 0x18002930c
mov rax, qword [0x18015b708]
cmp qword [0x18015b7e8], rdi
jne 0x180029094
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b7e8], rax
test rax, rax
je 0x18002930c
mov rax, qword [0x18015b708]
cmp qword [0x18015b6c8], rdi
jne 0x1800290c4
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b6c8], rax
test rax, rax
je 0x18002930c
mov rax, qword [0x18015b708]
cmp qword [0x18015b7a0], rdi
jne 0x1800290ed
lea rdx, [0x180125248]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b7a0], rax
test rax, rax
je 0x18002930c
mov rax, qword [0x18015b790]
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [case.0x18002b58a.0]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x18002930c
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 [0x18015b740]
xor edx, edx
mov qword [rsp + 0x88], rsi
call qword [case.0x18002b58a.0]
test eax, eax
je 0x1800292cc
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 [0x18015b7e8]
mov rcx, r15
mov dword [rsp + 0x28], edi
lea r8d, [r9 + 2]
mov qword [rsp + 0x20], rdi
call qword [case.0x18002b58a.0]
mov ebx, dword [rsp + 0x70]
test ebx, ebx
je 0x18002928a
add ebx, 4
mov ecx, 0x40
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18002928a
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 [0x18015b7e8]
lea r8d, [r9 + 2]
call qword [case.0x18002b58a.0]
test eax, eax
je 0x18002928a
cmp word [rsi], 0
mov rdi, rsi
je 0x18002927c
nop
mov rbx, qword [str.PCIVEN_10DECC_0300]
cmp word [rbx], 0
je 0x180029252
nop dword [rax]
mov rdx, rbx
mov rcx, rdi
call fcn.18006c644
test rax, rax
jne 0x18002924c
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180029230
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x180029210
jmp 0x180029252
cmp word [rbx], 0
jne 0x18002927c
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180029260
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x180029200
jmp 0x180029288
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 0x180029301
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 [0x18015b740]
call qword [case.0x18002b58a.0]
test eax, eax
jne 0x180029160
mov rax, qword [0x18015b7a0]
mov rcx, r15
call qword [case.0x18002b58a.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 0x1800292de
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret