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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40e1a1
cmp dword [ebp - 0x10], 0x80010106
je 0x40e1a1
xor al, al
jmp 0x40e5fc
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40e1d8
cmp dword [ebp - 0x10], 0x80010119
je 0x40e1d8
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x40e5fc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x453290
push 1
push 0
push 0x4532a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40e20d
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x40e5fc
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
mov edx, esp
mov dword [ebp - 0x9c], esp
mov dword [ebp - 0x28], edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa0], esp
push str.ROOTCIMV2
call fcn.00402f80
mov eax, dword [ebp - 0x28]
push eax
call fcn.00407800
add esp, 0x1c
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.004075a0
add esp, 8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
call fcn.00404cc0
push eax
lea ecx, [ebp - 0x40]
call fcn.004098f0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
call fcn.0040a300
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00409fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004037d0
cmp dword [ebp - 0x10], 0
jge 0x40e2ed
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x40e5fc
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40e337
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x40e5fc
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x30
push ecx
mov edx, esp
mov dword [ebp - 0xa8], esp
mov dword [ebp - 0x48], edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], esp
push str.SELECT__FROM_Win32_ComputerSystemProduct
call fcn.00402f80
mov eax, dword [ebp - 0x48]
push eax
call fcn.00407800
add esp, 0x1c
mov dword [ebp - 0xb0], eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.004075a0
add esp, 8
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
call fcn.00404cc0
push eax
lea ecx, [ebp - 0x7c]
call fcn.004098f0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x58]
call fcn.0040a300
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
mov dword [ebp - 0x5c], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb8], esp
push 0x450d04
call fcn.00402f80
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00407800
add esp, 0x1c
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x78]
push eax
call fcn.004075a0
add esp, 8
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x64]
call fcn.00404cc0
push eax
lea ecx, [ebp - 0x74]
call fcn.004098f0
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
call fcn.0040a300
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 0x50]
call eax
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.00409fc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.004037d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.00409fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004037d0
cmp dword [ebp - 0x10], 0
jge 0x40e4a8
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x40e5fc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x1c], 0
je 0x40e5ca
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x24], 0
jne 0x40e4eb
jmp 0x40e5ca
push 0
push 0
lea ecx, [ebp - 0xd8]
push ecx
push 0
push ecx
mov edx, esp
mov dword [ebp - 0xc0], esp
mov dword [ebp - 0x84], edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc4], esp
push str.UUID
call fcn.00402f80
mov eax, dword [ebp - 0x84]
push eax
call fcn.00407800
add esp, 0x1c
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.004075a0
add esp, 8
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x8c]
call fcn.00404cc0
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004037d0
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042e564
add esp, 8
lea ecx, [ebp - 0xd8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax + 8]
call edx
jmp 0x40e4b6
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax + 8]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret