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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6c8]
sub rsp, 0x7a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400bc190]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov r12, rcx
cmp byte [rcx], 0
jne 0x14001886f
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140018289
cmp eax, 1
je 0x140018289
mov dword [rsp + 0x68], 0x32
mov qword [rbp + 0x218], 0xf
xor edi, edi
mov qword [rbp + 0x210], rdi
mov byte [rbp + 0x200], dil
lea rcx, [rbp + 0x200]
call fcn.140019a30
mov rcx, rax
lea rdx, [0x14009c634]
call fcn.140016940
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.140016ad0
mov rdx, rax
lea rcx, [rbp + 0x4b0]
call fcn.140014540
lea r12, vtable.SysException.0
mov qword [rbp + 0x4b0], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x540], eax
lea rcx, [rbp + 0x4b0]
call fcn.140015950
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140019bc0
mov rbx, rax
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140057c1c
nop
lea rax, vtable.BaseException.0
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x50], 0xf
mov qword [rbp + 0x48], rdi
mov byte [rbp + 0x38], dil
lea rdx, [rbx + 0x18]
or rsi, 0xffffffffffffffff
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp + 0x38]
call fcn.140004fa0
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], rdi
mov byte [rbp + 0x60], dil
lea rdx, [rbx + 0x40]
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp + 0x60]
call fcn.140004fa0
nop
lea rax, vtable.ExceptionStream_class_SysException__class_Exception_.0
mov qword [rbp + 0x20], rax
mov qword [rbp + 0xa0], 0xf
mov qword [rbp + 0x98], rdi
mov byte [rbp + 0x88], dil
lea rdx, [rbx + 0x68]
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp + 0x88]
call fcn.140004fa0
nop
mov qword [rbp + 0x20], r12
mov eax, dword [rbx + 0x90]
mov dword [rbp + 0xb0], eax
lea rdx, [0x1400b9890]
lea rcx, [rbp + 0x20]
call fcn.14005a4ec
nop
xor edi, edi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
or rsi, 0xffffffffffffffff
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140018455
cmp eax, 0x80010119
je 0x140018455
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x6c], 0x40
mov qword [rbp + 0x1a0], 0xf
mov qword [rbp + 0x198], rdi
mov byte [rbp + 0x188], dil
lea rcx, [rbp + 0x188]
call fcn.140019a30
mov rcx, rax
lea rdx, [0x14009c634]
call fcn.140016940
mov rcx, rax
lea rdx, [rsp + 0x6c]
call fcn.140016ad0
mov rdx, rax
lea rcx, [rbp + 0x230]
call fcn.140014540
lea r12, vtable.SysException.0
mov qword [rbp + 0x230], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x2c0], eax
lea rcx, [rbp + 0x230]
call fcn.140019d70
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140019bc0
mov rbx, rax
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.140057c1c
nop
lea rax, vtable.BaseException.0
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xf0], 0xf
mov qword [rbp + 0xe8], rdi
mov byte [rbp + 0xd8], dil
lea rdx, [rbx + 0x18]
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp + 0xd8]
call fcn.140004fa0
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0x118], 0xf
mov qword [rbp + 0x110], rdi
mov byte [rbp + 0x100], dil
lea rdx, [rbx + 0x40]
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp + 0x100]
call fcn.140004fa0
nop
lea rax, vtable.ExceptionStream_class_SysException__class_Exception_.0
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0x140], 0xf
mov qword [rbp + 0x138], rdi
mov byte [rbp + 0x128], dil
lea rdx, [rbx + 0x68]
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp + 0x128]
call fcn.140004fa0
nop
mov qword [rbp + 0xc0], r12
mov eax, dword [rbx + 0x90]
mov dword [rbp + 0x150], eax
lea rdx, [0x1400b9890]
lea rcx, [rbp + 0xc0]
call fcn.14005a4ec
nop
lea r15, [r12 + 8]
mov qword [rsp + 0x20], r15
lea r9, [0x1400977f8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400978c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x1400185d1
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x60], 0x4b
mov qword [rbp + 0x1c8], 0xf
mov qword [rbp + 0x1c0], rdi
mov byte [rbp + 0x1b0], dil
lea rcx, [rbp + 0x1b0]
call fcn.140019a30
mov rcx, rax
lea rdx, [0x14009c634]
call fcn.140016940
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140016ad0
mov rdx, rax
lea rcx, [rbp + 0x410]
call fcn.140014540
lea r12, vtable.SysException.0
mov qword [rbp + 0x410], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4a0], eax
lea rcx, [rbp + 0x410]
call fcn.140019f20
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140019bc0
mov rbx, rax
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140057c1c
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rdi
mov byte [rbp - 0x68], 0
lea rdx, [rbx + 0x18]
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140004fa0
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rdi
mov byte [rbp - 0x40], 0
lea rdx, [rbx + 0x40]
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.140004fa0
nop
lea rax, vtable.ExceptionStream_class_SysException__class_Exception_.0
mov qword [rbp - 0x80], rax
mov qword [rbp], 0xf
mov qword [rbp - 8], rdi
mov byte [rbp - 0x18], 0
lea rdx, [rbx + 0x68]
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp - 0x18]
call fcn.140004fa0
nop
mov qword [rbp - 0x80], r12
mov eax, dword [rbx + 0x90]
mov dword [rbp + 0x10], eax
lea rdx, [0x1400b9890]
lea rcx, [rbp - 0x80]
call fcn.14005a4ec
nop
lea r13, [r12 + 0x18]
cmp qword [r13 + 0x18], 0x10
jb 0x1400185e3
mov r14, qword [r13]
jmp 0x1400185e6
mov r14, r13
mov ecx, 0x18
call fcn.140058324
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140018615
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, r14
call fcn.1400575c0
mov qword [rbx], rax
jmp 0x140018618
mov rbx, rdi
mov qword [rsp + 0x78], rbx
test rbx, rbx
jne 0x14001862d
mov ecx, 0x8007000e
call fcn.140057860
nop
mov rcx, qword [r15]
lea r14, [r12 + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov dword [rsp + 0x50], eax
lock xadd dword [rbx + 0x10], esi
dec esi
jne 0x14001868d
mov rcx, qword [rbx]
test rcx, rcx
je 0x140018677
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140018685
call fcn.140058280
mov rcx, rbx
call fcn.140058288
cmp dword [rsp + 0x50], 0
jge 0x140018768
mov rcx, qword [r15]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x64], 0x5a
mov qword [rbp + 0x178], 0xf
mov qword [rbp + 0x170], rdi
mov byte [rbp + 0x160], 0
lea rcx, [rbp + 0x160]
call fcn.140019a30
mov rcx, rax
lea rdx, [0x14009c634]
call fcn.140016940
mov rcx, rax
lea rdx, [rsp + 0x64]
call fcn.140016ad0
mov rdx, rax
lea rcx, [rbp + 0x2d0]
call fcn.140014540
lea r12, vtable.SysException.0
mov qword [rbp + 0x2d0], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x360], eax
lea rcx, [rbp + 0x2d0]
call fcn.14001a0d0
mov rcx, rax
mov rdx, r13
call fcn.1400157a0
mov rcx, rax
call fcn.14001a280
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140019bc0
mov rdx, rax
lea rcx, [rbp + 0x550]
call fcn.140012f60
lea rdx, [0x1400b9890]
lea rcx, [rbp + 0x550]
call fcn.14005a4ec
nop
mov dword [rsp + 0x38], 0x40
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x14001886a
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [r15]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x58], 0x67
mov qword [rbp + 0x1f0], 0xf
mov qword [rbp + 0x1e8], rdi
mov byte [rbp + 0x1d8], 0
lea rcx, [rbp + 0x1d8]
call fcn.140019a30
mov rcx, rax
lea rdx, [0x14009c634]
call fcn.140016940
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.140016ad0
mov rdx, rax
lea rcx, [rbp + 0x370]
call fcn.140014540
lea r12, vtable.SysException.0
mov qword [rbp + 0x370], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x400], eax
lea rcx, [rbp + 0x370]
call fcn.1400155f0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140019bc0
mov rdx, rax
lea rcx, [rbp + 0x5f0]
call fcn.140012f60
lea rdx, [0x1400b9890]
lea rcx, [rbp + 0x5f0]
call fcn.14005a4ec
nop
mov byte [r12], 1
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.1400579a0
lea r11, [rsp + 0x7a0]
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