Function at 0x18001bc90
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 [0x18014c140]
xor edi, edi
mov r14, r8
mov r13, rdx
mov r12d, edi
test rax, rax
jne 0x18001bcd6
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.180015530
mov qword [0x18014c140], rax
test rax, rax
je 0x18001bfdc
cmp qword [0x18014c1c8], rdi
jne 0x18001bd06
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c1c8], rax
test rax, rax
je 0x18001bfdc
mov rax, qword [0x18014c140]
cmp qword [0x18014c178], rdi
jne 0x18001bd36
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c178], rax
test rax, rax
je 0x18001bfdc
mov rax, qword [0x18014c140]
cmp qword [0x18014c220], rdi
jne 0x18001bd66
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c220], rax
test rax, rax
je 0x18001bfdc
mov rax, qword [0x18014c140]
cmp qword [0x18014c100], rdi
jne 0x18001bd96
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c100], rax
test rax, rax
je 0x18001bfdc
mov rax, qword [0x18014c140]
cmp qword [0x18014c1d8], rdi
jne 0x18001bdbf
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c1d8], rax
test rax, rax
je 0x18001bfdc
mov rax, qword [0x18014c1c8]
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [case.0x18001f0fa.0]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x18001bfdc
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 [0x18014c178]
xor edx, edx
mov qword [rsp + 0x88], rsi
call qword [case.0x18001f0fa.0]
test eax, eax
je 0x18001bf9c
nop dword [rax + 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 [0x18014c220]
mov rcx, r15
mov dword [rsp + 0x28], edi
lea r8d, [r9 + 2]
mov qword [rsp + 0x20], rdi
call qword [case.0x18001f0fa.0]
mov ebx, dword [rsp + 0x70]
test ebx, ebx
je 0x18001bf5a
add ebx, 4
mov ecx, 0x40
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18001bf5a
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 [0x18014c220]
lea r8d, [r9 + 2]
call qword [case.0x18001f0fa.0]
test eax, eax
je 0x18001bf5a
cmp word [rsi], 0
mov rdi, rsi
je 0x18001bf4c
nop
mov rbx, qword [str.PCIVEN_10DECC_0300]
cmp word [rbx], 0
je 0x18001bf22
nop dword [rax]
mov rdx, rbx
mov rcx, rdi
call fcn.1800633e8
test rax, rax
jne 0x18001bf1c
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18001bf00
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x18001bee0
jmp 0x18001bf22
cmp word [rbx], 0
jne 0x18001bf4c
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18001bf30
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x18001bed0
jmp 0x18001bf58
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 0x18001bfd1
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 [0x18014c178]
call qword [case.0x18001f0fa.0]
test eax, eax
jne 0x18001be30
mov rax, qword [0x18014c1d8]
mov rcx, r15
call qword [case.0x18001f0fa.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 0x18001bfae
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret