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

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov rdi, rcx
lea rax, [rbp - 0x30]
lea r9, [0x1400162d0]
lea rcx, [0x140016270]
lea r8d, [rbx + 1]
xor edx, edx
mov qword [rbp - 0x30], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400039fc
mov rcx, qword [rbp - 0x30]
lea rdx, [rbp + 0x38]
mov qword [rbp + 0x38], rbx
mov rax, qword [rcx]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rdx, str.ROOTWMI
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [rax + 0x18]
test eax, eax
js 0x1400039f2
mov rcx, qword [rbp + 0x38]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
lea edx, [rbx + 0xa]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov rcx, qword [rbp + 0x38]
test eax, eax
js 0x1400039ec
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x20], rbx
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
lea rdx, str.MSSMBios_RawSMBiosTables
xor r9d, r9d
xor r8d, r8d
call qword [rax + 0x90]
test eax, eax
jns 0x140003a10
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
mov dword [rbp + 0x30], ebx
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x28]
mov r8d, 1
or edx, 0xffffffff
call qword [rax + 0x20]
test eax, eax
js 0x140003b2e
lea rcx, [rbp - 0x18]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x28]
lea rdx, [rbp + 0x28]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x18]
lea rdx, str.SmbiosMajorVersion
xor r8d, r8d
call qword [rax + 0x20]
lea rcx, [rbp - 0x18]
test eax, eax
js 0x140003b28
movzx eax, byte [rbp - 0x10]
mov byte [rdi], al
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x18]
lea rdx, str.SmbiosMinorVersion
xor r8d, r8d
call qword [rax + 0x20]
lea rcx, [rbp - 0x18]
test eax, eax
js 0x140003b28
movzx eax, byte [rbp - 0x10]
mov byte [rdi + 1], al
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x18]
lea rdx, str.SMBiosData
xor r8d, r8d
call qword [rax + 0x20]
test eax, eax
js 0x140003b24
mov eax, 0x2011
cmp ax, word [rbp - 0x18]
jne 0x140003b24
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
mov ecx, eax
mov dword [rdi + 0x10], eax
call fcn.140004538
mov r8d, dword [rdi + 0x10]
mov rdx, rbx
mov rcx, rax
mov qword [rdi + 8], rax
call fcn.14000b280
mov ebx, 1
lea rcx, [rbp - 0x18]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret