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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor r12d, r12d
mov r15, rcx
lea rcx, str.ROOTCIMV2
mov qword [rsp + 0x70], r12
mov ebx, r12d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, [0x1400cb510]
mov r14, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_ComputerSystemProduct
mov rdi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
test r14, r14
je 0x140056a8f
test rdi, rdi
je 0x140056a8f
test rax, rax
je 0x140056a8f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 1
ja 0x140056a8f
mov qword [rsp + 0x40], r12
lea edx, [r12 - 1]
mov dword [rsp + 0x38], r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 3
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
je 0x1400568f0
cmp eax, 0x80010119
jne 0x140056a89
lea rax, [rsp + 0x70]
mov qword [rsp + 0x158], r13
mov r13d, 1
mov qword [rsp + 0x20], rax
mov r8d, r13d
lea r9, [0x1400a5460]
xor edx, edx
lea rcx, [0x1400a5450]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140056a81
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov rdx, r14
mov rax, qword [rcx]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [rax + 0x18]
test eax, eax
jne 0x140056a76
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], r12
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0x140056a6b
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140056a6b
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], r12d
lea r9, [rsp + 0x58]
mov rax, qword [rcx]
mov r8d, r13d
mov qword [rsp + 0x20], rdx
lea edx, [r13 - 2]
call qword [rax + 0x20]
test eax, eax
jne 0x140056a60
nop dword [rax]
test ebx, ebx
jne 0x140056a60
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r12
lea rdx, str.UUID
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140056a2b
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x70]
mov r8d, 0x80
call fcn.14007dd78
mov r8d, 0x80
lea rdx, [rbp - 0x70]
mov rcx, r15
call fcn.140075520
test eax, eax
cmove ebx, r13d
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x58]
mov r8d, r13d
mov edx, 0xffffffff
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0x1400569d0
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov r13, qword [rsp + 0x158]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14006f1f0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret