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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov dword [rsp + 0x50], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x80010106
jne 0x14013d955
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14013d981
mov rcx, qword [rsp + 0x280]
call fcn.140012ea4
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x280]
jmp 0x14013df0e
mov rdx, qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rsp + 0x140]
call fcn.14013e328
nop
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 + 0x58], eax
cmp dword [rsp + 0x58], 0
jge 0x14013da1a
cmp dword [rsp + 0x58], 0x80010119
je 0x14013da1a
mov rcx, qword [rsp + 0x280]
call fcn.140012ea4
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x140]
call fcn.14013d7d0
mov rax, qword [rsp + 0x280]
jmp 0x14013df0e
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [0x140203470]
mov r8d, 1
xor edx, edx
lea rcx, [0x140203480]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x14013da79
mov rcx, qword [rsp + 0x280]
call fcn.140012ea4
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x140]
call fcn.14013d7d0
mov rax, qword [rsp + 0x280]
jmp 0x14013df0e
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x68]
call fcn.140006a64
nop
lea rax, [rsp + 0x1e8]
lea rcx, str.ROOTCIMV2
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_shutdown
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x68]
call fcn.140009d28
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
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
lea rdx, [rsp + 0x1e8]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0xb8]
test eax, eax
jge 0x14013db5f
mov rcx, qword [rsp + 0x280]
call fcn.140012ea4
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x68]
call fcn.14013e4f4
nop
lea rcx, [rsp + 0x140]
call fcn.14013d7d0
mov rax, qword [rsp + 0x280]
jmp 0x14013df0e
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x60]
call fcn.140006a64
nop
lea rcx, [rsp + 0x60]
call fcn.140009d28
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, rax
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x14013dbfd
mov rcx, qword [rsp + 0x280]
call fcn.140012ea4
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x60]
call fcn.14013e4f4
nop
lea rcx, [rsp + 0x68]
call fcn.14013e4f4
nop
lea rcx, [rsp + 0x140]
call fcn.14013d7d0
mov rax, qword [rsp + 0x280]
jmp 0x14013df0e
mov rax, qword [0x1402018b8]
mov qword [rsp + 0x1e0], rax
lea rax, [rsp + 0x200]
lea rcx, str.SELECT_Name_FROM_Win32_OperatingSystem
mov rdi, rax
mov rsi, rcx
mov ecx, 0x4e
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x60]
call fcn.140009d28
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x30
lea r8, [rsp + 0x200]
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x88]
call qword [rsp + reloc.OLEAUT32.dll_SetErrorInfo]
test eax, eax
jge 0x14013dcdb
mov rcx, qword [rsp + 0x280]
call fcn.140012ea4
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x60]
call fcn.14013e4f4
nop
lea rcx, [rsp + 0x68]
call fcn.14013e4f4
nop
lea rcx, [rsp + 0x140]
call fcn.14013d7d0
mov rax, qword [rsp + 0x280]
jmp 0x14013df0e
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.140006a64
nop
lea rcx, [rsp + 0x118]
call fcn.140012ea4
nop
lea rcx, [rsp + 0x78]
call fcn.1400f6040
movzx eax, al
test eax, eax
je 0x14013de6d
lea rcx, [rsp + 0x78]
call fcn.140009d28
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe0]
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0xd8]
cmp dword [rsp + 0x70], 0
jne 0x14013dd72
jmp 0x14013de6d
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xa0]
call fcn.140006a64
nop
lea rcx, [rsp + 0xa0]
call fcn.140009d28
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x100]
xor r8d, r8d
lea rdx, str.Name
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xe8]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xf8]
call fcn.14013df54
mov rdx, qword [rax]
lea rcx, [rsp + 0x1a0]
call fcn.14013e364
nop
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x180]
call fcn.14013a878
mov qword [rsp + 0xf0], rax
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x118]
call fcn.140016c84
lea rcx, [rsp + 0x180]
call fcn.140015f78
nop
lea rcx, [rsp + 0x1a0]
call fcn.14013d7d0
nop
lea rcx, [rsp + 0xa0]
call fcn.14013e4f4
jmp 0x14013dcfc
xor r8d, r8d
mov dl, 0x7c
lea rcx, [rsp + 0x118]
call fcn.14006366c
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0xffffffffffffffff
je 0x14013deaa
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x118]
call fcn.140028340
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x280]
call fcn.1400126c8
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x118]
call fcn.140015f78
nop
lea rcx, [rsp + 0x78]
call fcn.14013e4f4
nop
lea rcx, [rsp + 0x60]
call fcn.14013e4f4
nop
lea rcx, [rsp + 0x68]
call fcn.14013e4f4
nop
lea rcx, [rsp + 0x140]
call fcn.14013d7d0
mov rax, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0x268
pop rdi
pop rsi
ret