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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x424501
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x42e43c]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x42e43c]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x40bc71
cmp dword [esi + 0x430], 8
jb 0x40bc15
mov esi, dword [esi + 0x41c]
jmp 0x40bc1b
add esi, 0x41c
push esi
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.0040d6ac
add esp, 0xc
push str._Module:_
lea ecx, [esp + 0x38]
push 0x64
push ecx
call fcn.0040d5de
add esp, 0xc
push str.Failed_to_initialize_COM_library_n
lea edx, [esp + 0x38]
push 0x64
push edx
call fcn.0040d5de
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x34]
push eax
mov eax, dword [ecx + 0x434]
mov esi, 0x64
call fcn.00402c20
jmp 0x40bf2b
lea edx, [esp + 0x18]
push edx
push 0x42550c
push 1
push ebx
push 0x4255dc
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40bcab
push str.Failed_to_create_IWbemLocator_object_n
mov eax, 0x64
lea edi, [esp + 0x38]
mov ebx, esi
call fcn.00401040
jmp 0x40bf25
lea eax, [esp + 0x1c]
push eax
mov edi, str.ROOTDCIMSYSMAN
mov dword [esp + 0x18], ebx
call fcn.00401130
mov dword [esp + 0x110], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x40bccf
mov ecx, dword [eax]
jmp 0x40bcd1
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea edi, [esp + 0x14]
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x1c]
mov ebx, eax
mov dword [esp + 0x110], 0xffffffff
call fcn.004011d0
test ebx, ebx
jge 0x40bd21
push str.Could_not_connect__ROOTDCIMSYSMAN_._n
mov eax, 0x64
lea edi, [esp + 0x38]
mov ebx, esi
call fcn.00401040
mov eax, dword [esp + 0x18]
jmp 0x40bf1d
mov eax, dword [esp + 0x14]
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
jge 0x40bd68
push str.Could_not_set_proxy_blanket._n
mov eax, 0x64
lea edi, [esp + 0x38]
mov ebx, esi
call fcn.00401040
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
jmp 0x40bf1d
push str.SELECT__FROM_CIM_SoftwareIdentity
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], 0
call fcn.004010a0
mov edi, eax
push 0x42aad8
lea ebx, [esp + 0x2c]
mov dword [esp + 0x114], 1
call fcn.004010a0
mov byte [esp + 0x110], 2
mov ecx, dword [edi]
test ecx, ecx
je 0x40bdab
mov ecx, dword [ecx]
jmp 0x40bdad
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x40bdb7
mov edx, dword [eax]
jmp 0x40bdb9
xor edx, edx
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
lea ebx, [esp + 0x20]
push ebx
push 0
push 0x30
push ecx
push edx
push eax
mov eax, dword [edi + 0x50]
call eax
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.004011d0
lea edi, [esp + 0x30]
mov dword [esp + 0x110], 0xffffffff
call fcn.004011d0
test ebx, ebx
jge 0x40be1d
push str.Query_for_operating_system_name_failed_n
mov eax, 0x64
lea edi, [esp + 0x38]
mov ebx, esi
call fcn.00401040
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
jmp 0x40bf1d
push 0x1000
mov dword [esp + 0x28], 0
call fcn.0040c03e
add esp, 4
push str._t_softwareidentityinstances__n
mov ebx, eax
push 0x800
push ebx
call fcn.0040d6ac
add esp, 0xc
push ebx
mov edi, esi
call fcn.00406150
push ebx
call fcn.0040d1fe
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x40bece
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x30]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x24], 0
je 0x40bece
push str.Getting_the_CIM_SoftwareIdentity_in_XML_format_n
mov eax, 0x64
lea edi, [esp + 0x38]
mov ebx, esi
call fcn.00401040
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040b200
mov dword [esp + 0x1c], eax
push str.Adding_it_to_WMI_list_n
mov eax, 0x64
call fcn.00401040
mov ebx, dword [esp + 0x1c]
push ebx
mov edi, esi
call fcn.00406150
push ebx
call fcn.0040cf19
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x40be60
push 0x1000
call fcn.0040c03e
add esp, 4
push str._t__softwareidentityinstances__n
mov ebx, eax
push 0x800
push ebx
call fcn.0040d6ac
add esp, 0xc
push ebx
mov edi, esi
call fcn.00406150
push ebx
call fcn.0040d1fe
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0040cf24
mov esp, ebp
pop ebp
ret