Function at 0x18001a680
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 0x18001a723
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x18001a70c
mov rax, qword [rbx]
jmp 0x18001a70f
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800042a0
jmp 0x18001a99b
mov qword [rbp + 0x7f], rsi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [0x1800a7a10]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1800a4da0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x18001a77d
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x18001a766
mov rax, qword [rbx]
jmp 0x18001a769
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800042a0
jmp 0x18001a98b
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 0x18001a7e7
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x18001a7d0
mov rax, qword [rbx]
jmp 0x18001a7d3
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800042a0
jmp 0x18001a97b
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 0x18001a7b8
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, [0x1800a78a8]
call qword [rax + LoadRegTypeLib]
test eax, eax
jns 0x18001a87e
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x18001a867
mov rax, qword [rbx]
jmp 0x18001a86a
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800042a0
jmp 0x18001a96b
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 0x18001a930
cmp dword [rbp + 0x6f], 0
jbe 0x18001a930
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 0x18001a930
mov rax, qword [rbp + 0xf]
lea rdx, [0x1800a5078]
test rax, rax
cmovne rdx, rax
cmp word [rdx], 0
jne 0x18001a910
mov rdi, rsi
jmp 0x18001a91a
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x18001a910
mov r8, rdi
lea rcx, [rbp + 0x1f]
call fcn.180002680
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 0x18001a948
mov rax, qword [rbx]
jmp 0x18001a94b
mov rax, rbx
mov word [rax], si
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.1800042a0
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18001a96b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x18001a97b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x18001a98b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x18001a99b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov r8, qword [rbp + 0x37]
cmp r8, 8
jb 0x18001a9b5
inc r8
mov rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x1f]
call fcn.180002ed0
mov rax, rbx
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret