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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4581d0]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push edi
push eax
xor esi, esi
push 0x4551f0
push 1
push esi
push 0x4552c0
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x406995
push str.ERR_1
mov ecx, dword [ebp + 8]
call fcn.0040182e
jmp 0x406bfd
cmp dword [ebp - 0xc], esi
jne 0x4069a1
push 0x4a15c4
jmp 0x406988
push 0x458784
lea ecx, [ebp - 0x3c]
mov dword [ebp - 8], esi
call fcn.0040182e
push eax
push 0x458780
lea ecx, [ebp - 0x38]
call fcn.0040182e
push eax
push 0x45877c
lea ecx, [ebp - 0x34]
call fcn.0040182e
push eax
push 0x458778
lea ecx, [ebp - 0x20]
call fcn.0040182e
push eax
push str.ROOT
lea ecx, [ebp - 0x24]
call fcn.0040182e
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004019f3
lea ecx, [ebp - 0x30]
call fcn.00401802
lea ecx, [ebp - 0x2c]
call fcn.00401802
lea ecx, [ebp - 0x28]
call fcn.00401802
lea ecx, [ebp - 0x24]
call fcn.00401802
lea ecx, [ebp - 0x20]
call fcn.00401802
lea ecx, [ebp - 0x34]
call fcn.00401802
lea ecx, [ebp - 0x38]
call fcn.00401802
lea ecx, [ebp - 0x3c]
call fcn.00401802
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp - 0xc]
lea edi, [ebp - 8]
push edi
push esi
mov edx, dword [ecx]
push esi
push esi
push esi
push esi
push esi
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
jge 0x406abe
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0xc], esi
mov esi, dword [ebp + 8]
lea eax, [ecx - 0xc]
jl 0x406a98
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x406aa7
mov eax, dword [0x4581d0]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00401988
lea ecx, [ebp - 0x10]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.00401802
mov eax, esi
jmp 0x406db0
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x406af1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x45876c
jmp 0x406bed
push str.OperatingSystem
lea ecx, [ebp - 0x40]
call fcn.0040182e
push eax
push 0x458758
lea ecx, [ebp - 0x20]
call fcn.0040182e
push eax
push str.FROM_win32
lea ecx, [ebp - 0x24]
call fcn.0040182e
push eax
push 0x458748
lea ecx, [ebp - 0x28]
call fcn.0040182e
push eax
push str.SELECT
lea ecx, [ebp - 0x2c]
call fcn.0040182e
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004019f3
push eax
lea ecx, [ebp - 0x10]
call fcn.0040711b
lea ecx, [ebp - 0x3c]
call fcn.00401802
lea ecx, [ebp - 0x38]
call fcn.00401802
lea ecx, [ebp - 0x34]
call fcn.00401802
lea ecx, [ebp - 0x30]
call fcn.00401802
lea ecx, [ebp - 0x2c]
call fcn.00401802
lea ecx, [ebp - 0x28]
call fcn.00401802
lea ecx, [ebp - 0x24]
call fcn.00401802
lea ecx, [ebp - 0x20]
call fcn.00401802
lea ecx, [ebp - 0x40]
call fcn.00401802
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x10]
mov edi, dword [eax]
lea eax, [ebp - 0x14]
push eax
push esi
push 0x30
call fcn.00407267
push eax
push 0x458738
push dword [ebp - 8]
call dword [edi + 0x50]
cmp eax, esi
jge 0x406c0d
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x4a15c4
mov ecx, dword [ebp + 8]
call fcn.0040182e
lea ecx, [ebp - 0x10]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.00401802
mov eax, dword [ebp + 8]
jmp 0x406db0
cmp dword [ebp - 0x14], esi
push ebx
mov dword [ebp - 0x1c], esi
je 0x406d75
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, 0x45836c
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [eax + 0x10]
cmp dword [ebp - 0x1c], esi
je 0x406d75
mov eax, dword [ebp - 0x18]
push esi
lea edx, [ebp - 0x50]
push esi
mov ecx, dword [eax]
push edx
push esi
push str.Caption
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x48]
lea ecx, [ebp - 4]
call fcn.00401988
lea eax, [ebp - 0x50]
push eax
call edi
mov eax, dword [ebp - 0x18]
push esi
lea edx, [ebp - 0x50]
push esi
mov ecx, dword [eax]
push edx
push esi
push str.BuildNumber
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x24]
call fcn.004070c2
mov eax, dword [ebp - 0x24]
cmp dword [eax - 8], 2
jle 0x406cb1
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040182e
lea eax, [ebp - 0x20]
lea ecx, [ebp - 4]
push eax
call fcn.00401b5d
lea ecx, [ebp - 0x20]
call fcn.00401802
push dword [ebp - 0x48]
lea ecx, [ebp - 4]
call fcn.0040716b
lea eax, [ebp - 0x50]
push eax
call edi
lea ecx, [ebp - 0x24]
call fcn.00401802
mov eax, dword [ebp - 0x18]
push esi
lea edx, [ebp - 0x50]
push esi
mov ecx, dword [eax]
push edx
push esi
push str.OSArchitecture
push eax
call dword [ecx + 0x10]
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040182e
lea eax, [ebp - 0x28]
lea ecx, [ebp - 4]
push eax
call fcn.00401b5d
lea ecx, [ebp - 0x28]
call fcn.00401802
push dword [ebp - 0x48]
lea ecx, [ebp - 4]
call fcn.0040716b
lea eax, [ebp - 0x50]
push eax
call edi
mov eax, dword [ebp - 0x18]
push esi
lea edx, [ebp - 0x50]
push esi
mov ecx, dword [eax]
push edx
push esi
push str.CSDVersion
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.004070c2
mov eax, dword [ebp - 0x30]
cmp dword [eax - 8], 2
jle 0x406d53
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040182e
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 4]
push eax
call fcn.00401b5d
lea ecx, [ebp - 0x2c]
call fcn.00401802
push dword [ebp - 0x48]
lea ecx, [ebp - 4]
call fcn.0040716b
lea eax, [ebp - 0x50]
push eax
call edi
lea ecx, [ebp - 0x30]
call fcn.00401802
cmp dword [ebp - 0x14], esi
jne 0x406c25
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004017bc
lea ecx, [ebp - 0x10]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.00401802
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
leave
ret