Function at 0x14001d900
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 [0x140065ec0]
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 0x14001d968
jmp 0x14001e162
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 0x14001d9be
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp qword [rbp + 0x30], 0x10
jb 0x14001d9b4
mov rcx, qword [rbp + 0x18]
call fcn.14002747c
mov eax, 1
jmp 0x14001e174
mov qword [rsp + 0x58], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x14004f9b8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14004fa88]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14001d9f4
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
jmp 0x14001d9a4
mov qword [rsp + 0x60], r14
mov ecx, 0x18
call fcn.1400276bc
mov rdi, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x14001da3a
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, [0x140056618]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
jne 0x14001da3d
mov ecx, 0x8007000e
call fcn.140026e10
int3
mov rdi, r14
mov qword [rbp - 0x18], rdi
test rdi, rdi
jne 0x14001da51
mov ecx, 0x8007000e
call fcn.140026e10
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 0x14001dab5
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001da9f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001daad
call fcn.140027b08
mov rcx, rdi
call fcn.14002747c
test ebx, ebx
jns 0x14001dad0
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
jmp 0x14001d9a4
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 0x14001db25
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 0x14001d9a4
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x68], r14d
mov ecx, 0x18
call fcn.1400276bc
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14001db62
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_DiskDrive
call fcn.140026e20
mov qword [rdi], rax
jmp 0x14001db65
mov rdi, r14
mov qword [rbp - 0x28], rdi
test rdi, rdi
jne 0x14001db79
mov ecx, 0x8007000e
call fcn.140026e10
nop
mov ecx, 0x18
call fcn.1400276bc
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14001dbac
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, [0x140056650]
call fcn.140026e20
mov qword [rbx], rax
jmp 0x14001dbaf
mov rbx, r14
mov qword [rbp - 0x20], rbx
test rbx, rbx
jne 0x14001dbc3
mov ecx, 0x8007000e
call fcn.140026e10
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 0x14001dc1f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001dc08
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001dc16
call fcn.140027b08
mov rcx, rbx
call fcn.14002747c
nop
mov eax, r15d
lock xadd dword [rdi + 0x10], eax
dec eax
jne 0x14001dc4f
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001dc39
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001dc47
call fcn.140027b08
mov rcx, rdi
call fcn.14002747c
test esi, esi
jns 0x14001dc75
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 0x14001d9a4
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001e130
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 0x14001e130
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 0x14001dc75
cmp dx, 1
je 0x14001dc75
mov rcx, qword [rbp - 0x68]
call fcn.140026fb0
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, [0x140056674]
call fcn.140038890
movsxd rcx, eax
test eax, eax
jne 0x14001dd7d
cmp rdi, 3
jb 0x14001dc75
mov eax, r14d
setne al
mov ecx, eax
test ecx, ecx
jne 0x14001dc75
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, [0x140056678]
call qword [rax + 0x20]
movzx edx, word [rbp - 0x70]
test dx, dx
je 0x14001dc75
cmp dx, 1
je 0x14001dc75
mov rcx, qword [rbp - 0x68]
call fcn.140026fb0
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 0x14001dfb1
mov byte [rbp + 0x70], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp + 0x71]
call fcn.14002a2d0
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 0x14001de48
mov byte [rbp + 0x70], al
jmp 0x14001deac
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 0x14001dea9
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.14002b000
mov byte [rdi], al
inc rdi
cmp rdi, r12
jb 0x14001de70
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 0x14001df31
lea rax, [rbp + 0x18]
cmp r8, 0x10
cmovae rax, r9
add rax, rsi
lea rcx, [rbp + 0x70]
cmp rax, rcx
jbe 0x14001df31
lea rax, [rbp + 0x18]
cmp r8, 0x10
cmovae rax, r9
lea rbx, [rbp + 0x70]
sub rbx, rax
cmp rsi, rbx
jb 0x14001e116
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 0x14001dfad
cmp rdi, 0xfffffffffffffffe
ja 0x14001e123
cmp r8, rdi
jae 0x14001df51
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.140002880
jmp 0x14001df69
test rdi, rdi
jne 0x14001df78
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 0x14001dfb9
lea rcx, [rbp + 0x18]
cmp r8, 0x10
cmovae rcx, r9
mov r8, rdi
lea rdx, [rbp + 0x70]
call fcn.140027770
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 0x14001e028
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 0x14001e028
mov r8, qword [rbp + 0x30]
mov r9, qword [rbp + 0x18]
jmp 0x14001dfd0
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 0x14001e09b
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.140027770
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.140014100
cmp qword [rbp + 0x50], 0
je 0x14001e0b8
lea rcx, [rbp + 0x40]
call fcn.140013b30
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.140003080
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x10]
call fcn.140013fc0
cmp qword [rbp + 0x28], 0
jbe 0x14001e0fd
lea rdx, [rbp + 0x18]
mov rcx, r13
call fcn.14001b2a0
nop
cmp qword [rbp + 0x58], 8
jb 0x14001dc75
mov rcx, qword [rbp + 0x40]
call fcn.14002747c
jmp 0x14001dc75
lea rcx, str.invalid_string_position
call fcn.140026d70
int3
lea rcx, str.string_too_long
call fcn.140026d14
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 0x14001e172
mov rcx, qword [rbp + 0x18]
call fcn.14002747c
xor eax, eax
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.1400274a0
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