Function at 0x140140940
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov qword [rbp], r9
mov r13, r8
mov rsi, rdx
mov rbx, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
je 0x1401409b0
cmp eax, 1
je 0x1401409b0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 1
je 0x1401409b0
test eax, eax
jne 0x140141388
inc dword [0x14028b8f8]
xor r15d, r15d
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x1402014f0]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x1402014e0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140141373
cmp qword [rsp + 0x70], r15
je 0x140141373
mov qword [rbp - 0x68], r15
cmp qword [rbx + 0x18], 8
jb 0x140140a03
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.1400d5400
nop
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x140140a1e
mov r14, qword [rax]
jmp 0x140140a21
mov r14, r15
mov rdi, qword [rsp + 0x70]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call rbx
mov r14d, eax
test eax, eax
js 0x14014131f
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14014131f
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140140afb
mov rdi, qword [rbp - 0x68]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
mov rcx, rdi
call rbx
mov rdi, qword [rsp + 0x70]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
mov rcx, rdi
call rbx
cmp dword [0x14028b8f8], 0
jle 0x140140af2
call qword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x14028b8f8]
or r12, 0xffffffffffffffff
jmp 0x140141362
mov qword [rbp - 0x70], r15
cmp qword [rsi + 0x18], 8
jb 0x140140b09
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.1400d5400
mov rbx, rax
mov ecx, SafeArrayCopy
call fcn.1401649b4
mov rsi, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x140140b4a
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, [0x14022def8]
call fcn.1401879c0
mov qword [rsi], rax
jmp 0x140140b4d
mov rsi, r15
mov qword [rbp - 0x30], rsi
test rsi, rsi
jne 0x140140b61
mov ecx, 0x8007000e
call fcn.1401878b0
nop
mov rax, qword [rbx]
test rax, rax
je 0x140140b6e
mov r14, qword [rax]
jmp 0x140140b71
mov r14, r15
mov rdi, qword [rbp - 0x68]
mov rax, qword [rdi]
mov rbx, qword [rax + 0xa0]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 0x30
mov r8, r14
mov rdx, qword [rsi]
mov rcx, rdi
call rbx
mov ebx, eax
lea rcx, [rbp - 0x30]
call fcn.1400d54a0
nop
lea rcx, [rbp - 0x38]
call fcn.1400d54a0
test ebx, ebx
js 0x140140aaa
mov rdi, qword [rbp - 0x70]
test rdi, rdi
je 0x140140aaa
mov rsi, r15
mov qword [rbp - 0x40], r15
lea r14, vtable.WaJson.0
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x78], r15d
mov byte [rbp - 0x78], sil
mov dword [rbp - 0x80], 5
or r12, 0xffffffffffffffff
nop dword [rax + rax]
mov dword [rbp - 0x48], r15d
test rsi, rsi
je 0x140140c26
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
mov rcx, rsi
call rbx
mov qword [rbp - 0x40], r15
mov rdi, qword [rbp - 0x70]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
mov r8d, 1
mov edx, r12d
mov rcx, rdi
call rbx
cmp dword [rbp - 0x48], 0
je 0x14014127b
test eax, eax
js 0x14014127b
mov rbx, qword [r13]
cmp rbx, qword [r13 + 8]
je 0x140141248
mov qword [rbp + 0x70], 7
mov qword [rbp + 0x68], r15
mov word [rbp + 0x58], r15w
mov r9, r12
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.1400be8c0
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
cmp qword [rbx + 0x18], 8
jb 0x140140cab
mov rdx, qword [rbx]
jmp 0x140140cae
mov rdx, rbx
lea rcx, [rbp - 8]
call fcn.1400d5400
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x140140cc5
mov r14, qword [rcx]
jmp 0x140140cc8
mov r14, r15
mov rsi, qword [rbp - 0x40]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [fcn.1400059b0]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x28]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call rdi
mov edi, eax
lea rcx, [rbp - 8]
call fcn.1400d54a0
test edi, edi
js 0x14014120e
movzx ecx, word [rbp - 0x28]
mov eax, ecx
cmp ecx, 2
jb 0x140140fd9
cmp eax, 3
jbe 0x140140f1a
cmp eax, 8
je 0x140140dfc
cmp eax, 0xb
je 0x140140d3c
cmp eax, 0x10
je 0x140140f1a
jmp 0x140140fd9
movsx esi, word [rbp - 0x20]
lea r14, vtable.WaJson.0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x60], r15d
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x58], 5
mov rdi, qword [fcn.1400c02b0]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rcx, [rsp + 0x50]
call rdi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x58], 1
cmp dword [rbp - 0x80], 2
je 0x140140db5
mov dword [rsp + 0x68], 2
mov rax, qword [rsp + 0x78]
mov rdi, qword [rax + 0x90]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call rdi
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x18]
mov rcx, qword [rbp - 0x78]
call fcn.1400c70b0
mov rsi, qword [rbp + 0x18]
mov rax, qword [rsi + 0x30]
mov rdi, qword [rax + 0x38]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x30]
call rdi
nop
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x50]
call fcn.1400c02b0
nop
jmp 0x140141215
mov rcx, qword [rbp - 0x20]
test rcx, rcx
jne 0x140140e09
mov al, 1
jmp 0x140140e72
cmp rcx, 0xffffffffffffffff
jne 0x140140e13
mov al, 1
jmp 0x140140e72
mov eax, 0xbaadf00d
cmp rcx, rax
jne 0x140140e21
mov al, 1
jmp 0x140140e72
mov eax, 0xdddddddd
cmp rcx, rax
jne 0x140140e2f
mov al, 1
jmp 0x140140e72
mov eax, 0xfeeefeee
cmp rcx, rax
jne 0x140140e3d
mov al, 1
jmp 0x140140e72
mov eax, 0xabababab
cmp rcx, rax
jne 0x140140e4b
mov al, 1
jmp 0x140140e72
mov eax, 0xcdcdcdcd
cmp rcx, rax
jne 0x140140e59
mov al, 1
jmp 0x140140e72
mov eax, 0xcccccccc
cmp rcx, rax
jne 0x140140e67
mov al, 1
jmp 0x140140e72
mov eax, 0xfdfdfdfd
cmp rcx, rax
sete al
lea rdx, [0x140227194]
test al, al
cmove rdx, rcx
lea r14, vtable.WaJson.0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x50], r15d
mov byte [rbp - 0x50], 0
mov dword [rbp - 0x58], 5
lea rcx, [rbp - 0x60]
call fcn.1400c2c80
nop
cmp dword [rbp - 0x80], 2
je 0x140140ed6
mov dword [rsp + 0x68], 2
mov rax, qword [rsp + 0x78]
mov rdi, qword [rax + 0x90]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call rdi
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp - 0x78]
call fcn.1400c70b0
mov rsi, qword [rbp + 0x28]
mov rax, qword [rsi + 0x30]
mov rdi, qword [rax + 0x38]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rbp - 0x60]
lea rcx, [rsi + 0x30]
call rdi
nop
mov qword [rbp - 0x60], r14
lea rcx, [rbp - 0x60]
call fcn.1400c02b0
nop
jmp 0x140141215
mov esi, dword [rbp - 0x20]
lea r14, vtable.WaJson.0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x60], r15d
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x58], 5
mov rdi, qword [fcn.1400c02b0]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rcx, [rsp + 0x50]
call rdi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x58], 1
cmp dword [rbp - 0x80], 2
je 0x140140f92
mov dword [rsp + 0x68], 2
mov rax, qword [rsp + 0x78]
mov rdi, qword [rax + 0x90]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call rdi
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x38]
mov rcx, qword [rbp - 0x78]
call fcn.1400c70b0
mov rsi, qword [rbp + 0x38]
mov rax, qword [rsi + 0x30]
mov rdi, qword [rax + 0x38]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x30]
call rdi
nop
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x50]
call fcn.1400c02b0
nop
jmp 0x140141215
test cl, 0x1b
je 0x14014120e
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14014120e
cmp rcx, 0xffffffffffffffff
je 0x14014120e
mov eax, 0xbaadf00d
cmp rcx, rax
je 0x14014120e
mov eax, 0xdddddddd
cmp rcx, rax
je 0x14014120e
mov eax, 0xfeeefeee
cmp rcx, rax
je 0x14014120e
mov eax, 0xabababab
cmp rcx, rax
je 0x14014120e
mov eax, 0xcdcdcdcd
cmp rcx, rax
je 0x14014120e
mov eax, 0xcccccccc
cmp rcx, rax
je 0x14014120e
mov eax, 0xfdfdfdfd
cmp rcx, rax
je 0x14014120e
call fcn.140140920
cmp eax, 1
jne 0x14014120e
lea rax, vtable.WaJson.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x60], r15d
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x58], 5
mov r14d, r15d
mov rcx, qword [rbp - 0x20]
cmp dword [rcx + 0x18], r15d
jbe 0x140141194
lea r12, vtable.WaJson.0
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [rcx + 0x1c]
add edx, r14d
mov dword [rbp - 0x38], edx
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
test eax, eax
js 0x14014117f
mov esi, dword [rbp - 0x30]
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x50], r15d
mov byte [rbp - 0x50], 0
mov dword [rbp - 0x58], 5
mov rdi, qword [fcn.1400c02b0]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rcx, [rbp - 0x60]
call rdi
mov dword [rbp - 0x50], esi
mov dword [rbp - 0x58], 1
cmp dword [rsp + 0x58], 3
je 0x140141139
mov dword [rsp + 0x68], 3
mov rax, qword [rsp + 0x50]
mov rdi, qword [rax + 0x90]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call rdi
mov rdi, qword [rsp + 0x60]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 8], rax
jne 0x140141150
mov rcx, rdi
call fcn.1400c5b30
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x68], rcx
mov qword [rbp + 0x10], rcx
test rcx, rcx
je 0x14014116c
lea rdx, [rbp - 0x60]
call fcn.1400bf000
nop
add qword [rdi + 8], 0x18
mov qword [rbp - 0x60], r12
lea rcx, [rbp - 0x60]
call fcn.1400c02b0
nop
inc r14d
mov rcx, qword [rbp - 0x20]
cmp r14d, dword [rcx + 0x18]
jb 0x1401410b0
or r12, 0xffffffffffffffff
cmp dword [rbp - 0x80], 2
je 0x1401411c3
mov dword [rsp + 0x68], 2
mov rax, qword [rsp + 0x78]
mov rdi, qword [rax + 0x90]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call rdi
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp - 0x78]
call fcn.1400c70b0
mov rsi, qword [rbp + 0x48]
mov rax, qword [rsi + 0x30]
mov rdi, qword [rax + 0x30]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x30]
call rdi
nop
lea r14, vtable.WaJson.0
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x50]
call fcn.1400c02b0
nop
jmp 0x140141215
lea r14, vtable.WaJson.0
lea rcx, [rbp - 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov r8, qword [rbp + 0x70]
cmp r8, 8
jb 0x14014123a
inc r8
mov rdx, qword [rbp + 0x58]
lea rcx, [rbp + 0x58]
call fcn.1400be810
add rbx, 0x20
cmp rbx, qword [r13 + 8]
jne 0x140140c71
mov rdi, qword [rbp]
mov rax, qword [rdi]
mov rbx, qword [rax + 0xd8]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 0x70]
test rdi, rdi
je 0x14014127f
mov rsi, qword [rbp - 0x40]
jmp 0x140140c00
mov rdi, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x40]
test rsi, rsi
je 0x1401412a1
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
mov rcx, rsi
call rbx
mov rdi, qword [rbp - 0x70]
test rdi, rdi
je 0x1401412bb
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x1401412d9
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
mov rcx, rdi
call rbx
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1401412f8
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
mov rcx, rdi
call rbx
cmp dword [0x14028b8f8], 0
jle 0x14014130d
call qword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x14028b8f8]
mov qword [rsp + 0x78], r14
lea rcx, [rsp + 0x78]
call fcn.1400c02b0
nop
jmp 0x140141365
mov rdi, qword [rsp + 0x70]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400059b0]
mov rcx, rdi
call rbx
cmp dword [0x14028b8f8], 0
jle 0x14014134e
call qword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x14028b8f8]
or r12, 0xffffffffffffffff
mov eax, 0xffffffea
cmp r14d, 0x80070005
cmove r12d, eax
mov r15d, r12d
lea rcx, [rbp - 0x10]
call fcn.1400d54a0
mov eax, r15d
jmp 0x14014138c
cmp dword [0x14028b8f8], r15d
jle 0x140141388
call qword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x14028b8f8]
or rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.1401646e0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret