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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x54], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400349d8]
mov r8d, 1
xor edx, edx
lea rcx, [0x1400349e8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0xc8], 0
lea rdx, [0x140041690]
lea rcx, [rsp + 0x80]
call fcn.140003140
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.1400031f0
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx]
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0xc8]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0x78]
call qword [rax + 0x18]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x80]
call fcn.1400031d0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400037f5
lea rdx, str.Could_not_set_proxy_blanket._Error_code__0x
lea rcx, [0x1400483c0]
call fcn.1400083a0
lea rdx, [0x140003060]
mov rcx, rax
call fcn.140004610
mov edx, dword [rsp + 0x50]
mov rcx, rax
call fcn.140004410
lea rdx, [0x140008770]
mov rcx, rax
call fcn.140004650
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc8]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xd0]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, [0x1400416d8]
mov rcx, qword [rsp + 0x140]
call fcn.140004b30
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x140]
jmp 0x140003b2e
mov qword [rsp + 0xd8], 0
lea rdx, str.SELECT__FROM_Win32_OperatingSystem
lea rcx, [rsp + 0xc0]
call fcn.140003090
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x98], rax
lea rdx, [0x14004168c]
lea rcx, [rsp + 0xb8]
call fcn.140003090
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400031f0
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa0]
call fcn.1400031f0
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx]
mov qword [rsp + 0xb0], rcx
lea rdx, [rsp + 0xd8]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov r9d, 0x30
mov rdx, qword [rsp + 0xa8]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xb0]
call qword [rax + 0xa0]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0xb8]
call fcn.1400031d0
nop
lea rcx, [rsp + 0xc0]
call fcn.1400031d0
cmp dword [rsp + 0x50], 0
jge 0x1400039a2
lea rdx, str.Query_for_operating_system_failed.
lea rcx, [0x1400483c0]
call fcn.1400083a0
lea rdx, str._Error_code__0x
mov rcx, rax
call fcn.1400083a0
lea rdx, [0x140003060]
mov rcx, rax
call fcn.140004610
mov edx, dword [rsp + 0x50]
mov rcx, rax
call fcn.140004410
lea rdx, [0x140008770]
mov rcx, rax
call fcn.140004650
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc8]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xd0]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, [0x140041744]
mov rcx, qword [rsp + 0x140]
call fcn.140004b30
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x140]
jmp 0x140003b2e
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x100], 0
lea rax, str.NULL
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0xd8], 0
je 0x140003a8e
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0xe0]
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xd8]
call qword [rax + 0x20]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x100], 0
jne 0x140003a1a
jmp 0x140003a8e
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xe8]
xor r8d, r8d
lea rdx, [0x140041758]
mov rcx, qword [rsp + 0xe0]
call qword [rax + 0x20]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xe8]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xe0]
call qword [rax + 0x10]
jmp 0x1400039c5
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc8]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xd0]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xd8]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov eax, eax
mov r8d, eax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x108]
call fcn.140004780
nop
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x140]
call fcn.140003480
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x108]
call fcn.140004750
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.14000d2c0
add rsp, 0x138
ret