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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fea5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x4c400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x54], edi
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 0x4b1c44
push 1
push 0
push 0x4b1c34
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41882f
xor eax, eax
mov dword [edi], 0
xor ecx, ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418811
sub ecx, edx
sar ecx, 1
push ecx
push 0
mov ecx, edi
call fcn.00405ec0
jmp 0x418b09
push ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x34], 0
call fcn.00424f40
mov byte [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x41884d
mov edx, dword [eax]
jmp 0x41884f
xor edx, edx
mov eax, dword [ebp - 0x38]
lea esi, [ebp - 0x34]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
test esi, esi
je 0x4188be
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4188be
test esi, esi
je 0x4188be
mov eax, dword [esi]
test eax, eax
je 0x418899
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4188b0
push eax
call fcn.0043d68a
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0043d19d
mov eax, dword [ebp - 0x5c]
add esp, 8
test eax, eax
js 0x4188e6
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x34]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4188f4
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x418ae4
push str.SELECT__FROM_Win32_OperatingSystem
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x3c], 0
call fcn.00424e40
mov esi, eax
push 0x4b68a8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00424e40
mov byte [ebp - 4], 3
mov esi, dword [esi]
test esi, esi
je 0x418929
mov esi, dword [esi]
jmp 0x41892b
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x418935
mov edx, dword [eax]
jmp 0x418937
xor edx, edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x34]
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
test esi, esi
je 0x4189a2
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x41899b
test esi, esi
je 0x41899b
mov eax, dword [esi]
test eax, eax
je 0x418979
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x418990
push eax
call fcn.0043d68a
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0043d19d
add esp, 8
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x4189f1
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x4189f1
test esi, esi
je 0x4189f1
mov eax, dword [esi]
test eax, eax
je 0x4189cf
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4189e6
push eax
call fcn.0043d68a
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0043d19d
add esp, 8
cmp dword [ebp - 0x54], 0
jl 0x4188dd
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x418abc
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x40]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x18], 0
je 0x418abc
cmp dword [ebp - 0x40], 0
jne 0x418a3f
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x418a14
jmp 0x418abc
xor esi, esi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x50]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push dword [esi + 0x4b7770]
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x418aaa
cmp dword [ebp - 0x48], 0
je 0x418aaa
push str.Caption
push dword [esi + 0x4b7770]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x418aaa
mov edx, dword [ebp - 0x48]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x54], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418a90
sub ecx, dword [ebp - 0x54]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00405ec0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esi, 8
cmp esi, 0x50
jb 0x418a41
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x418ae4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
movups xmm0, xmmword [ebp - 0x30]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043cc06
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret