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

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov edx, 2
mov ecx, 0
mov rax, qword [sym.imp.ole32.dll_CoInitializeEx]
call rax
mov dword [rbp + 0x13c], eax
cmp dword [rbp + 0x13c], 0
jns 0x14000181c
mov eax, dword [rbp + 0x13c]
mov edx, eax
lea rax, str.Failed_to_initialize_COM_library._Error_code___08x_n
mov rcx, rax
call sym.printf
jmp 0x140001cbd
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
mov r9d, 0
mov r8d, 0
mov edx, 0xffffffff
mov ecx, 0
mov rax, qword [sym.imp.ole32.dll_CoInitializeSecurity]
call rax
mov dword [rbp + 0x13c], eax
cmp dword [rbp + 0x13c], 0
jns 0x140001899
mov eax, dword [rbp + 0x13c]
mov edx, eax
lea rax, str.Failed_to_initialize_security._Error_code___08x_n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
jmp 0x140001cbd
mov qword [rbp + 0x110], 0
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
mov r9, qword [0x14000bc90]
mov r8d, 1
mov edx, 0
mov rax, qword [0x14000bc80]
mov rcx, rax
mov rax, qword [sym.imp.ole32.dll_CoCreateInstance]
call rax
mov dword [rbp + 0x13c], eax
cmp dword [rbp + 0x13c], 0
jns 0x140001909
mov eax, dword [rbp + 0x13c]
mov edx, eax
lea rax, str.Failed_to_create_IWbemLocator_object._Err_code___08x_n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
jmp 0x140001cbd
mov qword [rbp + 0x108], 0
lea rax, str.ROOTCIMV2
mov rcx, rax
mov rax, qword [sym.imp.OLEAUT32.dll_SysAllocString]
call rax
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x110]
mov rax, qword [rax]
mov r10, qword [rax + 0x18]
mov rax, qword [rbp + 0x110]
mov rdx, qword [rbp + 0x130]
lea rcx, [rbp + 0x108]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
call r10
mov dword [rbp + 0x13c], eax
mov rax, qword [rbp + 0x130]
mov rcx, rax
mov rax, qword [sym.imp.OLEAUT32.dll_SysFreeString]
call rax
cmp dword [rbp + 0x13c], 0
jns 0x1400019ec
mov eax, dword [rbp + 0x13c]
mov edx, eax
lea rax, str.Could_not_connect._Error_code___08x_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x110]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x110]
mov rcx, rax
call rdx
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
jmp 0x140001cbd
mov qword [rbp + 0x100], 0
lea rax, [0x14000b13e]
mov rcx, rax
mov rax, qword [sym.imp.OLEAUT32.dll_SysAllocString]
call rax
mov qword [rbp + 0x128], rax
lea rax, str.SELECT__FROM_Win32_Processor
mov rcx, rax
mov rax, qword [sym.imp.OLEAUT32.dll_SysAllocString]
call rax
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x108]
mov rax, qword [rax]
mov r10, qword [rax + 0xa0]
mov rax, qword [rbp + 0x108]
mov r8, qword [rbp + 0x120]
mov rdx, qword [rbp + 0x128]
lea rcx, [rbp + 0x100]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
mov r9d, 0x30
mov rcx, rax
call r10
mov dword [rbp + 0x13c], eax
mov rax, qword [rbp + 0x128]
mov rcx, rax
mov rax, qword [sym.imp.OLEAUT32.dll_SysFreeString]
call rax
mov rax, qword [rbp + 0x120]
mov rcx, rax
mov rax, qword [sym.imp.OLEAUT32.dll_SysFreeString]
call rax
cmp dword [rbp + 0x13c], 0
jns 0x140001b00
mov eax, dword [rbp + 0x13c]
mov edx, eax
lea rax, str.Query_for_CPU_name_failed._Error_code___08x_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x108]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x108]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x110]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x110]
mov rcx, rax
call rdx
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
jmp 0x140001cbd
mov qword [rbp + 0xf8], 0
mov dword [rbp + 0xf4], 0
jmp 0x140001c52
mov rax, qword [rbp + 0x100]
mov rax, qword [rax]
mov r10, qword [rax + 0x20]
mov rax, qword [rbp + 0x100]
lea rcx, [rbp + 0xf8]
lea rdx, [rbp + 0xf4]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 1
mov edx, 0xffffffff
mov rcx, rax
call r10
mov dword [rbp + 0x11c], eax
mov eax, dword [rbp + 0xf4]
test eax, eax
je 0x140001c64
mov rax, qword [rbp + 0xf8]
mov rax, qword [rax]
mov r10, qword [rax + 0x20]
mov rax, qword [rbp + 0xf8]
lea rdx, [rbp + 0xd0]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
lea rdx, str.Name
mov rcx, rax
call r10
mov dword [rbp + 0x11c], eax
cmp dword [rbp + 0x11c], 0
js 0x140001c38
mov rdx, qword [rbp + 0xd8]
lea rax, [rbp - 0x30]
mov r8d, 0x100
mov rcx, rax
call sym.wcstombs
lea rax, [rbp - 0x30]
lea rdx, str.Intel
mov rcx, rax
call sym.strstr
test rax, rax
je 0x140001c03
lea rax, [rbp - 0x30]
lea rdx, str.e_32m
mov rcx, rax
call sym.printInColor
jmp 0x140001c16
lea rax, [rbp - 0x30]
lea rdx, str.e_31m
mov rcx, rax
call sym.printInColor
lea rax, [0x14000b1d2]
mov rcx, rax
call sym.printf
lea rax, [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.OLEAUT32.dll_VariantClear]
call rax
mov rax, qword [rbp + 0xf8]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x100]
test rax, rax
jne 0x140001b1a
jmp 0x140001c65
nop
mov rax, qword [rbp + 0x100]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x100]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x108]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x108]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x110]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x110]
mov rcx, rax
call rdx
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
nop
add rsp, 0x1c0
pop rbp
ret