Function at 0x14002a1e0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rdi
push r12
push r13
push r15
sub rsp, 0x60
mov rax, qword [0x14009f490]
xor edi, edi
movsxd r13, ecx
mov ebx, edi
mov dword [rsp + 0xa8], ebx
mov r15, r8
test rax, rax
jne 0x14002a22c
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.14002ada0
mov qword [0x14009f490], rax
test rax, rax
je 0x14002a531
cmp qword [0x14009f498], rbx
jne 0x14002a25c
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009f498], rax
test rax, rax
je 0x14002a531
mov rax, qword [0x14009f490]
cmp qword [0x14009f4a0], rbx
jne 0x14002a28c
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009f4a0], rax
test rax, rax
je 0x14002a531
mov rax, qword [0x14009f490]
cmp qword [0x14009f4b0], rbx
jne 0x14002a2bc
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009f4b0], rax
test rax, rax
je 0x14002a531
mov rax, qword [0x14009f490]
cmp qword [0x14009f4a8], rbx
jne 0x14002a2ec
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009f4a8], rax
test rax, rax
je 0x14002a531
mov rax, qword [0x14009f490]
cmp qword [0x14009f4c0], rbx
jne 0x14002a315
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009f4c0], rax
test rax, rax
je 0x14002a531
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x14009f498]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14002a531
xorps xmm0, xmm0
mov qword [rsp + 0x90], rbp
movups xmmword [r15], xmm0
mov qword [rsp + 0x58], rsi
mov r8, r15
movups xmmword [r15 + 0x10], xmm0
xor edx, edx
mov dword [r15], reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
mov qword [rsp + 0x50], r14
call qword [0x14009f4a0]
test eax, eax
je 0x14002a4f8
mov esi, 1
nop word [rax + rax]
mov dword [rsp + 0x40], edi
mov rbp, rdi
mov r14d, edi
cmp r13d, 1
jae 0x14002a4c6
xor r9d, r9d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rdx, r15
mov dword [rsp + 0x28], edi
mov rcx, r12
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 2]
call qword [0x14009f4b0]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14002a4b7
lea ebx, [rax + 4]
mov ecx, 0x40
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x14002a4b0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 2]
call qword [0x14009f4b0]
test eax, eax
je 0x14002a4b0
cmp word [rbp], 0
mov rdi, rbp
je 0x14002a4a6
lea rcx, str.P__a_
lea rsi, [rcx + r13*8]
mov rbx, qword [rsi]
cmp word [rbx], 0
je 0x14002a472
nop dword [rax]
mov rdx, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
jne 0x14002a46c
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002a450
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x14002a430
jmp 0x14002a472
cmp word [rbx], 0
jne 0x14002a4a1
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002a480
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x14002a424
mov esi, 1
jmp 0x14002a4ae
mov esi, 1
cmp word [rdi], 0
cmovne r14d, esi
xor edi, edi
mov ebx, dword [rsp + 0xa8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp r14d, 1
je 0x14002a522
xorps xmm0, xmm0
inc ebx
movups xmmword [r15], xmm0
mov r8, r15
mov edx, ebx
movups xmmword [r15 + 0x10], xmm0
mov rcx, r12
mov dword [r15], reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0xa8], ebx
call qword [0x14009f4a0]
test eax, eax
jne 0x14002a380
mov rcx, r12
call qword [0x14009f4c0]
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0x50]
add rsp, 0x60
pop r15
pop r13
pop r12
pop rdi
pop rbx
ret
mov rcx, qword [rsp + 0x98]
mov eax, esi
mov qword [rcx], r12
jmp 0x14002a503
xor eax, eax
add rsp, 0x60
pop r15
pop r13
pop r12
pop rdi
pop rbx
ret