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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa0
xor edx, edx
mov qword [rcx], 0
mov rdi, rcx
xor ecx, ecx
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x5c], 0
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
mov ebx, eax
js 0x405ce4
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov edx, 0xffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
mov ebx, eax
js 0x405d16
lea rax, [rsp + 0x60]
xor edx, edx
mov r9, qword [0x004ce5e0]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov rcx, qword [0x004ce5d0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov ebx, eax
js 0x405d16
mov rbx, qword [rsp + 0x60]
mov ecx, 0x18
mov rax, qword [rbx]
mov r12, qword [rax + 0x18]
call fcn.004c4020
lea rcx, str.ROOTCIMV2
mov rbp, qword [sym.imp.OLEAUT32.dll_SysAllocString]
mov rsi, rax
mov qword [rax + 8], 0
mov dword [rax + 0x10], 1
call rbp
test rax, rax
mov qword [rsi], rax
je 0x405d20
lea rdx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], rdx
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r12
mov ebx, eax
lock sub dword [rsi + 0x10], 1
je 0x405d61
test ebx, ebx
js 0x405d0b
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov ebx, eax
js 0x405d00
mov r13, qword [rsp + 0x68]
mov ecx, 0x18
mov rax, qword [r13]
mov r14, qword [rax + 0xa0]
call fcn.004c4020
lea rcx, str.SELECT_UUID_FROM_Win32_ComputerSystemProduct
mov rsi, rax
mov qword [rax + 8], 0
mov dword [rax + 0x10], 1
call rbp
test rax, rax
mov rbx, rax
mov qword [rsi], rax
je 0x405dd1
mov ecx, 0x18
call fcn.004c4020
mov r12, rax
mov qword [rax + 8], 0
mov dword [rax + 0x10], 1
lea rcx, [0x004c9342]
call rbp
test rax, rax
mov qword [r12], rax
je 0x405d90
lea rdx, [rsp + 0x70]
mov r9d, 0x30
mov r8, rbx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rdx
mov rcx, r13
mov rdx, rax
call r14
mov rcx, r12
mov ebx, eax
call fcn.00423b40
mov rcx, rsi
call fcn.00423b40
test ebx, ebx
js 0x405d00
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x5c]
mov r8d, 1
lea r9, [rsp + 0x78]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
mov edx, 0xffffffff
call qword [rax + 0x20]
mov ebx, eax
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x405e12
test ebx, ebx
js 0x405cbd
mov rcx, qword [rsp + 0x78]
lea rsi, [rsp + 0x80]
xor r8d, r8d
lea rdx, str.UUID
mov r9, rsi
mov rax, qword [rcx]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [rax + 0x20]
test eax, eax
mov ebx, eax
js 0x405cb2
mov rcx, qword [rsp + 0x88]
call rbp
mov rcx, rsi
mov qword [rdi], rax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x405ce4
lea rdi, [0x004d5850]
mov ecx, 0x20
call fcn.004c4140
lea r8, [0x00423590]
mov qword [rax], rdi
lea rdx, [0x004d06a0]
mov rcx, rax
mov dword [rax + 8], 0x8007000e
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0
call fcn.004c4920
mov rcx, qword [rsi]
test rcx, rcx
je 0x405d6f
call qword [sym.imp.OLEAUT32.dll_SysFreeString]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x405d7d
call fcn.004c3fd0
mov edx, 0x18
mov rcx, rsi
call fcn.004c3ff0
jmp 0x405b2f
lea rdi, [0x004d5850]
mov ecx, 0x20
call fcn.004c4140
lea r8, [0x00423590]
mov qword [rax], rdi
lea rdx, [0x004d06a0]
mov rcx, rax
mov dword [rax + 8], 0x8007000e
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0
call fcn.004c4920
lea rdi, [0x004d5850]
mov ecx, 0x20
call fcn.004c4140
lea r8, [0x00423590]
mov qword [rax], rdi
lea rdx, [0x004d06a0]
mov rcx, rax
mov dword [rax + 8], 0x8007000e
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0
call fcn.004c4920
mov ebx, 0x80041002
jmp 0x405cbd