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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], 2
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 1
je 0x408576
cmp eax, ebx
je 0x408576
cmp eax, 0x80010106
je 0x40857d
lea eax, [ebx + 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 1
lea eax, [ebp - 8]
push eax
push 0x433520
push 1
push ebx
push 0x4335f0
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4085a7
mov dword [ebp - 0xc], 3
jmp 0x4087da
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
push str.ROOTWMI
mov dword [ebp - 4], ebx
call esi
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ebx
push edi
push eax
mov eax, dword [ecx + 0xc]
call eax
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, eax
call edi
test ebx, ebx
jns 0x4085f7
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0xc], 6
jmp 0x4087d8
mov eax, dword [ebp - 4]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x408635
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0xc], 7
jmp 0x4087d8
push str.MSSMBios_RawSMBiosTables
mov dword [ebp - 0x18], 0
call esi
lea edx, [ebp - 0x18]
push edx
push 0
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push ebx
push eax
mov eax, dword [ecx + 0x48]
call eax
push ebx
mov dword [ebp - 0x10], eax
call edi
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
jl 0x4087bb
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4087bb
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x408798
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.SmbiosMajorVersion
call esi
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push ebx
push eax
call edx
push ebx
mov dword [ebp - 0x10], eax
call edi
cmp dword [ebp - 0x10], 0
jge 0x4086d7
lea eax, [ebp - 0x38]
push eax
jmp 0x408787
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.SmbiosMinorVersion
call esi
push 0
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x38]
push edx
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0
push ebx
push eax
mov eax, dword [ecx + 0x10]
call eax
push ebx
mov dword [ebp - 0x10], eax
call edi
cmp dword [ebp - 0x10], 0
jge 0x40871e
lea ecx, [ebp - 0x38]
push ecx
jmp 0x408787
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.SMBiosData
call esi
push 0
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x38]
push edx
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
push esi
mov ebx, eax
call edi
test ebx, ebx
js 0x408783
mov ecx, 0x2011
cmp cx, word [ebp - 0x38]
jne 0x408783
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
push ecx
push eax
push edx
call fcn.004083f0
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4087d8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0xc], 5
pop edi
pop esi
cmp dword [ebp - 0x20], 0
je 0x4087e6
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret