Function at 0x18000c878
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1801fa2c8]
xor edi, edi
mov r15, r8
mov r12, rdx
mov r13d, edi
test rax, rax
jne 0x18000c8ca
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.18000ab70
mov qword [0x1801fa2c8], rax
test rax, rax
je 0x18000cb83
cmp qword [0x1801fa240], rdi
jne 0x18000c8fa
lea rdx, [0x180159050]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801fa240], rax
test rax, rax
je 0x18000cb83
mov rax, qword [0x1801fa2c8]
cmp qword [0x1801fa298], rdi
jne 0x18000c92a
lea rdx, [0x180159068]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801fa298], rax
test rax, rax
je 0x18000cb83
mov rax, qword [0x1801fa2c8]
cmp qword [0x1801fa1f8], rdi
jne 0x18000c95a
lea rdx, [0x180158f00]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801fa1f8], rax
test rax, rax
je 0x18000cb83
mov rax, qword [0x1801fa2c8]
cmp qword [0x1801fa2f8], rdi
jne 0x18000c98a
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801fa2f8], rax
test rax, rax
je 0x18000cb83
mov rax, qword [0x1801fa2c8]
cmp qword [0x1801fa238], rdi
jne 0x18000c9b3
lea rdx, [0x180158f28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801fa238], rax
test rax, rax
je 0x18000cb83
mov rbx, qword [0x1801fa240]
mov rcx, rbx
call qword [fcn.18000e000]
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rbx
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000cb83
mov ebx, 0x20
xor edx, edx
mov r8d, ebx
mov rcx, r15
call fcn.1800cf2b0
mov dword [r15], ebx
mov rbx, qword [0x1801fa298]
mov rcx, rbx
call qword [fcn.18000e000]
xor edx, edx
jmp 0x18000cb5e
mov rbx, qword [0x1801fa1f8]
mov rbp, rdi
mov rcx, rbx
mov dword [rsp + 0x80], edi
mov r14d, edi
call qword [fcn.18000e000]
xor r9d, r9d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rdx, r15
mov dword [rsp + 0x28], edi
mov rcx, rsi
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 2]
call rbx
mov edi, dword [rsp + 0x80]
test edi, edi
je 0x18000cb20
add edi, 4
mov ecx, 0x40
mov edx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x18000cb20
mov rbx, qword [0x1801fa1f8]
mov rcx, rbx
call qword [fcn.18000e000]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov rdx, r15
mov dword [rsp + 0x28], edi
mov rcx, rsi
mov qword [rsp + 0x20], rbp
lea r8d, [rax + 2]
call rbx
xor edi, edi
test eax, eax
je 0x18000cb22
xor eax, eax
mov rdi, rbp
cmp word [rbp], ax
je 0x18000cb14
xor r12d, r12d
mov rbx, qword [str.PCIVEN_10DECC_0300]
cmp word [rbx], r12w
je 0x18000caf4
mov rdx, rbx
mov rcx, rdi
call fcn.1800cefb8
test rax, rax
jne 0x18000caee
mov rcx, rbx
call fcn.1800d9868
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r12w
jne 0x18000cac8
cmp word [rbx], r12w
jne 0x18000cb0a
mov rcx, rdi
call fcn.1800d9868
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], r12w
jne 0x18000cabb
mov r12, qword [rsp + 0x88]
xor eax, eax
cmp word [rdi], ax
mov eax, 1
cmovne r14d, eax
xor edi, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
cmp r14d, eax
je 0x18000cb9d
lea ebx, [rax + 0x1f]
xor edx, edx
mov r8d, ebx
mov rcx, r15
add r13d, eax
call fcn.1800cf2b0
mov dword [r15], ebx
mov rbx, qword [0x1801fa298]
mov rcx, rbx
call qword [fcn.18000e000]
mov edx, r13d
mov r8, r15
mov rcx, rsi
call rbx
test eax, eax
jne 0x18000ca0b
mov rbx, qword [0x1801fa238]
mov rcx, rbx
call qword [fcn.18000e000]
mov rcx, rsi
call rbx
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [r12], rsi
jmp 0x18000cb85