Function at 0x14002f5a0
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push r15
mov rbp, rsp
sub rsp, 0x70
xor r15d, r15d
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x38], r15
mov qword [rbp - 0x40], r15
mov ebx, r15d
mov qword [rbp + 0x30], r15
call fcn.140032810
test eax, eax
je 0x14002f823
mov qword [rsp + 0x68], rsi
lea rcx, [0x1400c60a8]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_PnPDevice
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12d, 1
mov rdi, rax
mov r14d, r12d
test rsi, rsi
je 0x14002f66a
test rax, rax
je 0x14002f661
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9d, [r15 + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, rsi
mov r10, qword [rcx]
call qword [r10 + 0xa0]
test eax, eax
jns 0x14002f661
mov rcx, qword [rbp + 0x38]
mov r14d, r15d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0x68]
test rdi, rdi
je 0x14002f67d
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0x60]
test r14d, r14d
mov r14, qword [rsp + 0x50]
je 0x14002f813
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x28], r15
mov dword [rbp + 0x20], r15d
test rcx, rcx
je 0x14002f7f3
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x28]
or edx, 0xffffffff
mov r8d, r12d
call qword [rax + 0x20]
cmp dword [rbp + 0x20], r15d
je 0x14002f7ef
mov rcx, qword [rbp + 0x28]
lea r9, [rbp - 0x38]
mov qword [rsp + 0x28], r15
lea rdx, str.Name
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x14002f728
movzx eax, word [rbp - 0x38]
cmp ax, r12w
je 0x14002f728
test al, 8
je 0x14002f71e
mov rcx, qword [rbp - 0x30]
lea rdx, [0x1400c3b58]
call fcn.140077c00
test rax, rax
cmovne ebx, r12d
lea rcx, [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x28]
lea r9, [rbp - 0x38]
mov qword [rsp + 0x28], r15
lea rdx, str.Caption
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x14002f77d
movzx eax, word [rbp - 0x38]
cmp ax, r12w
je 0x14002f77d
test al, 8
je 0x14002f773
mov rcx, qword [rbp - 0x30]
lea rdx, [0x1400c3b58]
call fcn.140077c00
test rax, rax
cmovne ebx, r12d
lea rcx, [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x28]
lea r9, [rbp - 0x38]
mov qword [rsp + 0x28], r15
lea rdx, str.PNPDeviceID
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x14002f7d2
movzx eax, word [rbp - 0x38]
cmp ax, r12w
je 0x14002f7d2
test al, 8
je 0x14002f7c8
mov rcx, qword [rbp - 0x30]
lea rdx, str.VEN_VBOX
call fcn.140077c00
test rax, rax
cmovne ebx, r12d
lea rcx, [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test ebx, ebx
jne 0x14002f7ef
mov rcx, qword [rbp + 0x30]
test rcx, rcx
jne 0x14002f6b0
jmp 0x14002f7f3
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov r12, qword [rsp + 0x58]
add rsp, 0x70
pop r15
pop rbx
pop rbp
ret
mov eax, ebx
add rsp, 0x70
pop r15
pop rbx
pop rbp
ret