Function at 0x14000d380
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400b39b0]
xor r14d, r14d
movsxd r13, ecx
mov r15, r8
mov dword [rsp + 0x40], r14d
mov edi, r14d
test rax, rax
jne 0x14000d3cd
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.14000f8c0
mov qword [0x1400b39b0], rax
test rax, rax
je 0x14000d6f7
cmp qword [0x1400b39b8], rdi
jne 0x14000d3fd
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b39b8], rax
test rax, rax
je 0x14000d6f7
mov rax, qword [0x1400b39b0]
cmp qword [0x1400b39c0], rdi
jne 0x14000d42d
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b39c0], rax
test rax, rax
je 0x14000d6f7
mov rax, qword [0x1400b39b0]
cmp qword [0x1400b39d0], rdi
jne 0x14000d45d
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b39d0], rax
test rax, rax
je 0x14000d6f7
mov rax, qword [0x1400b39b0]
cmp qword [0x1400b39c8], rdi
jne 0x14000d48d
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b39c8], rax
test rax, rax
je 0x14000d6f7
mov rax, qword [0x1400b39b0]
cmp qword [0x1400b39e0], rdi
jne 0x14000d4b6
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b39e0], rax
test rax, rax
je 0x14000d6f7
mov rax, qword [0x1400b39b8]
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [case.0x14001a41b.0]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14000d6f7
xorps xmm0, xmm0
mov qword [rsp + 0x90], rbx
movups xmmword [r15], xmm0
mov rcx, rax
mov qword [rsp + 0x58], rbp
movups xmmword [r15 + 0x10], xmm0
mov dword [r15], 0x20
mov r8, r15
mov rax, qword [0x1400b39c0]
xor edx, edx
mov qword [rsp + 0x50], rsi
call qword [case.0x14001a41b.0]
test eax, eax
je 0x14000d6b3
nop
mov dword [rsp + 0xa8], r14d
mov rsi, r14
mov ebp, r14d
cmp r13d, 1
jae 0x14000d67d
lfence
xor r9d, r9d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov rdx, r15
mov rax, qword [0x1400b39d0]
mov rcx, r12
mov dword [rsp + 0x28], r14d
lea r8d, [r9 + 2]
mov qword [rsp + 0x20], r14
call qword [case.0x14001a41b.0]
mov ebx, dword [rsp + 0xa8]
test ebx, ebx
je 0x14000d66f
add ebx, 4
mov ecx, 0x40
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14000d66f
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ebx
mov rdx, r15
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rax, qword [0x1400b39d0]
lea r8d, [r9 + 2]
call qword [case.0x14001a41b.0]
test eax, eax
je 0x14000d66f
cmp word [rsi], 0
mov rdi, rsi
je 0x14000d65c
lea rcx, str.PCIVEN_10DECC_0300
lea r14, [rcx + r13*8]
nop
mov rbx, qword [r14]
cmp word [rbx], 0
je 0x14000d632
nop dword [rax]
mov rdx, rbx
mov rcx, rdi
call fcn.140029d20
test rax, rax
jne 0x14000d62c
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000d610
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x14000d5f0
jmp 0x14000d632
cmp word [rbx], 0
jne 0x14000d65c
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000d640
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x14000d5e0
jmp 0x14000d668
cmp word [rdi], 0
mov eax, 1
cmovne ebp, eax
mov edi, dword [rsp + 0x40]
xor r14d, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebp, 1
je 0x14000d6e5
xorps xmm0, xmm0
inc edi
movups xmmword [r15], xmm0
mov r8, r15
mov edx, edi
movups xmmword [r15 + 0x10], xmm0
mov dword [r15], 0x20
mov rcx, r12
mov rax, qword [0x1400b39c0]
mov dword [rsp + 0x40], edi
call qword [case.0x14001a41b.0]
test eax, eax
jne 0x14000d520
mov rax, qword [0x1400b39e0]
mov rcx, r12
call qword [case.0x14001a41b.0]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x50]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x98]
mov eax, 1
mov qword [rcx], r12
jmp 0x14000d6c5
xor eax, eax
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
ret