Function at 0x180015d70
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 0x180015e13
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180015dfc
mov rax, qword [rbx]
jmp 0x180015dff
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.18000a870
jmp 0x18001608b
mov qword [rbp + 0x7f], rsi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [0x1800d9b60]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1800c8e80]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x180015e6d
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180015e56
mov rax, qword [rbx]
jmp 0x180015e59
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.18000a870
jmp 0x18001607b
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 + Ordinal_26]
test eax, eax
jns 0x180015ed7
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180015ec0
mov rax, qword [rbx]
jmp 0x180015ec3
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.18000a870
jmp 0x18001606b
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 0x180015ea8
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, [0x1800d9a30]
call qword [rax + LoadRegTypeLib]
test eax, eax
jns 0x180015f6e
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180015f57
mov rax, qword [rbx]
jmp 0x180015f5a
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.18000a870
jmp 0x18001605b
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 0x180016020
cmp dword [rbp + 0x6f], 0
jbe 0x180016020
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 0x180016020
mov rax, qword [rbp + 0xf]
lea rdx, [0x1800d7360]
test rax, rax
cmovne rdx, rax
cmp word [rdx], 0
jne 0x180016000
mov rdi, rsi
jmp 0x18001600a
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x180016000
mov r8, rdi
lea rcx, [rbp + 0x1f]
call fcn.1800076e0
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 0x180016038
mov rax, qword [rbx]
jmp 0x18001603b
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.18000a870
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18001605b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x18001606b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x18001607b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x18001608b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov r8, qword [rbp + 0x37]
cmp r8, 8
jb 0x1800160a5
inc r8
mov rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x1f]
call fcn.1800094a0
mov rax, rbx
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret