Function at 0x1400056dc
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 8], ecx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400ba9c8]
xor esi, esi
mov r14, r8
mov r12, rdx
mov r13d, esi
test rax, rax
jne 0x140005730
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.14000170c
mov qword [0x1400ba9c8], rax
test rax, rax
je 0x14000599c
cmp qword [0x1400baa48], rsi
jne 0x140005760
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400baa48], rax
test rax, rax
je 0x14000599c
mov rax, qword [0x1400ba9c8]
cmp qword [0x1400ba9f8], rsi
jne 0x140005790
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ba9f8], rax
test rax, rax
je 0x14000599c
mov rax, qword [0x1400ba9c8]
cmp qword [0x1400baa90], rsi
jne 0x1400057c0
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400baa90], rax
test rax, rax
je 0x14000599c
mov rax, qword [0x1400ba9c8]
cmp qword [0x1400ba990], rsi
jne 0x1400057f0
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ba990], rax
test rax, rax
je 0x14000599c
mov rax, qword [0x1400ba9c8]
cmp qword [0x1400baa50], rsi
jne 0x140005819
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400baa50], rax
test rax, rax
je 0x14000599c
mov rax, qword [0x1400baa48]
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [case.0x14002cfb6.0]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000599c
xor edx, edx
jmp 0x14000595e
mov dword [rsp + 0x70], esi
mov rbp, rsi
mov r15d, esi
lfence
xor r9d, r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rdx, r14
mov rax, qword [0x1400baa90]
mov rcx, rdi
mov dword [rsp + 0x28], esi
lea r8d, [r9 + 2]
mov qword [rsp + 0x20], rsi
call qword [case.0x14002cfb6.0]
mov ebx, dword [rsp + 0x70]
test ebx, ebx
je 0x140005945
add ebx, 4
mov ecx, 0x40
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x140005945
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rax, qword [0x1400baa90]
lea r8d, [r9 + 2]
call qword [case.0x14002cfb6.0]
test eax, eax
je 0x140005945
xor ecx, ecx
mov rsi, rbp
cmp word [rbp], cx
je 0x140005937
mov rbx, qword [str.PCIVEN_10DECC_0300]
cmp word [rbx], cx
je 0x14000591d
mov rdx, rbx
mov rcx, rsi
call fcn.140030d50
xor ecx, ecx
test rax, rax
jne 0x140005918
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x140005902
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], cx
jne 0x1400058ec
cmp word [rbx], cx
jne 0x140005937
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], cx
jne 0x140005921
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], cx
jne 0x1400058e0
cmp word [rsi], cx
mov eax, 1
cmovne r15d, eax
xor esi, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
cmp r15d, eax
je 0x1400059bc
add r13d, eax
mov edx, r13d
xorps xmm0, xmm0
mov r8, r14
movups xmmword [r14], xmm0
mov rcx, rdi
movups xmmword [r14 + 0x10], xmm0
mov dword [r14], 0x20
mov rax, qword [0x1400ba9f8]
call qword [case.0x14002cfb6.0]
test eax, eax
jne 0x140005847
mov rax, qword [0x1400baa50]
mov rcx, rdi
call qword [case.0x14002cfb6.0]
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [r12], rdi
jmp 0x14000599e