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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4a8]
sub rsp, 0x580
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14007bec0]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r13, rcx
mov qword [rbp + 0x30], 0xf
xor r14d, r14d
mov qword [rbp + 0x28], r14
mov byte [rbp + 0x18], r14b
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14002a198
jmp 0x14002a992
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
or r15, 0xffffffffffffffff
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x14002a1ee
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp qword [rbp + 0x30], 0x10
jb 0x14002a1e4
mov rcx, qword [rbp + 0x18]
call fcn.140033ccc
mov eax, 1
jmp 0x14002a9a4
mov qword [rsp + 0x58], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x140062a08]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140062ad8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14002a224
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
jmp 0x14002a1d4
mov qword [rsp + 0x60], r14
mov ecx, 0x18
call fcn.140033f0c
mov rdi, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x14002a26a
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
jne 0x14002a26d
mov ecx, 0x8007000e
call fcn.140033660
int3
mov rdi, r14
mov qword [rbp - 0x18], rdi
test rdi, rdi
jne 0x14002a281
mov ecx, 0x8007000e
call fcn.140033660
nop
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
call qword [rax + 0x18]
mov ebx, eax
mov ecx, r15d
lock xadd dword [rdi + 0x10], ecx
dec ecx
jne 0x14002a2e5
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002a2cf
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002a2dd
call fcn.140034358
mov rcx, rdi
call fcn.140033ccc
test ebx, ebx
jns 0x14002a300
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
jmp 0x14002a1d4
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x14002a355
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
jmp 0x14002a1d4
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x68], r14d
mov ecx, 0x18
call fcn.140033f0c
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14002a392
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_DiskDrive
call fcn.140033670
mov qword [rdi], rax
jmp 0x14002a395
mov rdi, r14
mov qword [rbp - 0x28], rdi
test rdi, rdi
jne 0x14002a3a9
mov ecx, 0x8007000e
call fcn.140033660
nop
mov ecx, 0x18
call fcn.140033f0c
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14002a3dc
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, [0x14006a178]
call fcn.140033670
mov qword [rbx], rax
jmp 0x14002a3df
mov rbx, r14
mov qword [rbp - 0x20], rbx
test rbx, rbx
jne 0x14002a3f3
mov ecx, 0x8007000e
call fcn.140033660
nop
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r14
mov r9d, 0x30
mov r8, qword [rdi]
mov rdx, qword [rbx]
call qword [rax + 0xa0]
mov esi, eax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
dec ecx
jne 0x14002a44f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002a438
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002a446
call fcn.140034358
mov rcx, rbx
call fcn.140033ccc
nop
mov eax, r15d
lock xadd dword [rdi + 0x10], eax
dec eax
jne 0x14002a47f
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002a469
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002a477
call fcn.140034358
mov rcx, rdi
call fcn.140033ccc
test esi, esi
jns 0x14002a4a5
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
jmp 0x14002a1d4
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002a960
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x80]
mov r8d, 1
mov edx, r15d
call qword [rax + 0x20]
cmp dword [rsp + 0x68], 0
je 0x14002a960
lea rcx, [rbp - 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x78], r14
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 0x70]
call qword [rax + 0x38]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.InterfaceType
call qword [rax + 0x20]
movzx edx, word [rbp - 0x70]
test dx, dx
je 0x14002a4a5
cmp dx, 1
je 0x14002a4a5
mov rcx, qword [rbp - 0x68]
call fcn.140033800
mov rdx, rax
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x18]
call fcn.140002a30
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rcx, qword [rbp + 0x18]
mov r8d, 3
mov rdi, qword [rbp + 0x28]
cmp rdi, r8
cmovb r8, rdi
lea rdx, [0x14006a19c]
call fcn.140049c20
movsxd rcx, eax
test eax, eax
jne 0x14002a5ad
cmp rdi, 3
jb 0x14002a4a5
mov eax, r14d
setne al
mov ecx, eax
test ecx, ecx
jne 0x14002a4a5
mov dword [rsp + 0x6c], r14d
lea rcx, [rbp - 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, [0x14006a1a0]
call qword [rax + 0x20]
movzx edx, word [rbp - 0x70]
test dx, dx
je 0x14002a4a5
cmp dx, 1
je 0x14002a4a5
mov rcx, qword [rbp - 0x68]
call fcn.140033800
mov rdx, rax
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x18]
call fcn.140002a30
mov rsi, qword [rbp + 0x28]
cmp rsi, 0x28
jne 0x14002a7e1
mov byte [rbp + 0x70], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp + 0x71]
call fcn.140037b90
lea rbx, [rbp + 0x18]
mov r9, qword [rbp + 0x18]
mov r8, qword [rbp + 0x30]
cmp r8, 0x10
cmovae rbx, r9
xor eax, eax
mov rcx, r15
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
test ecx, ecx
jne 0x14002a678
mov byte [rbp + 0x70], al
jmp 0x14002a6dc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov byte [rsp + 0x52], 0
cdqe
lea r12, [rbp + rax + 0x70]
lea rdi, [rbp + 0x70]
lea rax, [rbp + 0x70]
cmp rax, r12
jae 0x14002a6d9
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rsp + 0x50], al
movzx eax, byte [rbx + 1]
mov byte [rsp + 0x51], al
add rbx, 2
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140038c30
mov byte [rdi], al
inc rdi
cmp rdi, r12
jb 0x14002a6a0
mov r8, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x28]
mov r9, qword [rbp + 0x18]
mov byte [rdi], 0
xor eax, eax
mov rcx, r15
lea rdi, [rbp + 0x70]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rax, [rbp + 0x18]
cmp r8, 0x10
cmovae rax, r9
lea rcx, [rbp + 0x70]
cmp rcx, rax
jb 0x14002a761
lea rax, [rbp + 0x18]
cmp r8, 0x10
cmovae rax, r9
add rax, rsi
lea rcx, [rbp + 0x70]
cmp rax, rcx
jbe 0x14002a761
lea rax, [rbp + 0x18]
cmp r8, 0x10
cmovae rax, r9
lea rbx, [rbp + 0x70]
sub rbx, rax
cmp rsi, rbx
jb 0x14002a946
sub rsi, rbx
cmp rdi, rsi
cmovb rsi, rdi
lea rdx, [rsi + rbx]
mov r8, r15
lea rcx, [rbp + 0x18]
call fcn.1400026c0
mov r8, rbx
xor edx, edx
lea rcx, [rbp + 0x18]
call fcn.1400026c0
jmp 0x14002a7dd
cmp rdi, 0xfffffffffffffffe
ja 0x14002a953
cmp r8, rdi
jae 0x14002a781
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.140002880
jmp 0x14002a799
test rdi, rdi
jne 0x14002a7a8
mov qword [rbp + 0x28], r14
lea rax, [rbp + 0x18]
cmp r8, 0x10
cmovae rax, r9
mov byte [rax], dil
mov r9, qword [rbp + 0x18]
mov rsi, qword [rbp + 0x28]
mov r8, qword [rbp + 0x30]
test rdi, rdi
setne al
test al, al
je 0x14002a7e9
lea rcx, [rbp + 0x18]
cmp r8, 0x10
cmovae rcx, r9
mov r8, rdi
lea rdx, [rbp + 0x70]
call fcn.140033fc0
mov qword [rbp + 0x28], rdi
lea rax, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rax, qword [rbp + 0x18]
mov byte [rdi + rax], 0
mov rsi, qword [rbp + 0x28]
mov r8, qword [rbp + 0x30]
mov r9, qword [rbp + 0x18]
mov r10d, r14d
mov rdi, r14
test rsi, rsi
je 0x14002a858
nop word [rax + rax]
lea rax, [rbp + 0x18]
cmp r8, 0x10
cmovae rax, r9
movzx edx, byte [rax + rdi]
lea rax, [rbp + 0x18]
cmovae rax, r9
lea rcx, [rbp + 0x18]
cmovae rcx, r9
movzx eax, byte [rax + rdi + 1]
mov byte [rcx + rdi], al
lea rax, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rax, qword [rbp + 0x18]
mov byte [rax + rdi + 1], dl
add r10d, 2
add rdi, 2
movsxd rax, r10d
mov rsi, qword [rbp + 0x28]
cmp rax, rsi
jae 0x14002a858
mov r8, qword [rbp + 0x30]
mov r9, qword [rbp + 0x18]
jmp 0x14002a800
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r14
mov word [rbp + 0x40], r14w
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x58], 0
cmp rsi, 0xffffffffffffffff
cmova rsi, r15
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.1400029c0
test al, al
je 0x14002a8cb
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rdx, qword [rbp + 0x18]
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
mov r8, rsi
call fcn.140033fc0
mov qword [rbp - 0x48], rsi
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rax, qword [rbp - 0x58]
mov byte [rax + rsi], 0
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.140020790
cmp qword [rbp + 0x50], 0
je 0x14002a8e8
lea rcx, [rbp + 0x40]
call fcn.1400201c0
mov qword [rbp + 8], 7
mov qword [rbp], r14
mov word [rbp - 0x10], r14w
mov r9, r15
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400030d0
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x10]
call fcn.140020650
cmp qword [rbp + 0x28], 0
jbe 0x14002a92d
lea rdx, [rbp + 0x18]
mov rcx, r13
call fcn.140027ad0
nop
cmp qword [rbp + 0x58], 8
jb 0x14002a4a5
mov rcx, qword [rbp + 0x40]
call fcn.140033ccc
jmp 0x14002a4a5
lea rcx, str.invalid_string_position
call fcn.1400335c8
int3
lea rcx, str.string_too_long
call fcn.14003356c
int3
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp qword [rbp + 0x30], 0x10
jb 0x14002a9a2
mov rcx, qword [rbp + 0x18]
call fcn.140033ccc
xor eax, eax
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140033cf0
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret