Function at 0x180031be0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rbx, rcx
xor esi, esi
mov dword [rbp - 0x19], esi
mov qword [rbp + 0x37], 7
mov qword [rbp + 0x2f], rsi
mov word [rbp + 0x1f], si
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
or rdi, 0xffffffffffffffff
mov edx, edi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x180031c83
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180031c6c
mov rax, qword [rbx]
jmp 0x180031c6f
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800090d0
jmp 0x180031efb
mov qword [rbp + 0x7f], rsi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [0x1800d7f08]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1800d5228]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x180031cdd
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180031cc6
mov rax, qword [rbx]
jmp 0x180031cc9
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800090d0
jmp 0x180031eeb
mov qword [rbp + 0x77], rsi
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
lea rdx, [rbp + 0x77]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ROOTCIMV2
call qword [rax + 0x18]
test eax, eax
jns 0x180031d47
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180031d30
mov rax, qword [rbx]
jmp 0x180031d33
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800090d0
jmp 0x180031edb
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x180031d18
mov qword [rbp - 0x11], rsi
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rsi
mov r9d, 0x30
lea r8, str.SELECT__FROM_Win32_DiskDrive
lea rdx, [0x1800d7d58]
call qword [rax + LoadRegTypeLib]
test eax, eax
jns 0x180031dde
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180031dc7
mov rax, qword [rbx]
jmp 0x180031dca
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800090d0
jmp 0x180031ecb
mov dword [rbp + 0x6f], esi
mov qword [rbp - 9], rsi
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 9]
mov r8d, 1
mov edx, edi
call qword [rax + 0x20]
test eax, eax
js 0x180031e90
cmp dword [rbp + 0x6f], 0
jbe 0x180031e90
mov word [rbp + 7], si
xor eax, eax
mov qword [rbp + 9], rax
mov qword [rbp + 0x11], rax
mov dword [rbp + 0x19], eax
mov word [rbp + 0x1d], ax
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 7]
xor r8d, r8d
lea rdx, str.SerialNumber
call qword [rax + 0x20]
test eax, eax
js 0x180031e90
mov rax, qword [rbp + 0xf]
lea rdx, [0x1800d611c]
test rax, rax
cmovne rdx, rax
cmp word [rdx], 0
jne 0x180031e70
mov rdi, rsi
jmp 0x180031e7a
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x180031e70
mov r8, rdi
lea rcx, [rbp + 0x1f]
call fcn.1800034d0
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180031ea8
mov rax, qword [rbx]
jmp 0x180031eab
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800090d0
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x180031ecb
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x180031edb
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x180031eeb
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x180031efb
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov r8, qword [rbp + 0x37]
cmp r8, 8
jb 0x180031f15
inc r8
mov rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x1f]
call fcn.180003df0
mov rax, rbx
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret