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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421c2d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x431034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x42dda4
push 0x17
push 0
push 0x42ddb4
mov dword [ebp - 0x18], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4051f8
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00401180
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x404f93
mov edx, dword [eax]
jmp 0x404f95
xor edx, edx
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
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 dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov esi, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x40], eax
test esi, esi
je 0x40500b
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40500b
test esi, esi
je 0x40500b
mov eax, dword [esi]
test eax, eax
je 0x404fe6
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404ffd
push eax
call fcn.0040abbe
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040adf0
mov eax, dword [ebp - 0x40]
add esp, 8
test eax, eax
js 0x4051ef
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x4051e6
push str.SELECT__FROM_Win32_OperatingSystem
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], 0
call fcn.004010e0
mov esi, eax
push 0x42dc88
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.004010e0
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x40506a
mov esi, dword [esi]
jmp 0x40506c
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x405076
mov edx, dword [eax]
jmp 0x405078
xor edx, edx
mov eax, dword [ebp - 0x18]
lea ebx, [ebp - 0x24]
push ebx
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
mov esi, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x44], eax
test esi, esi
je 0x4050e1
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4050da
test esi, esi
je 0x4050da
mov eax, dword [esi]
test eax, eax
je 0x4050b8
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4050cf
push eax
call fcn.0040abbe
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040adf0
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x40512c
lock xadd dword [esi + 8], edi
dec edi
jne 0x40512c
test esi, esi
je 0x40512c
mov eax, dword [esi]
test eax, eax
je 0x40510a
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x405121
push eax
call fcn.0040abbe
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040adf0
add esp, 8
cmp dword [ebp - 0x44], 0
jl 0x4051e6
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push edx
push 1
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4051dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [eax]
cmp dword [ebp - 0x14], 0
je 0x4051dd
lea eax, [ebp - 0x38]
push eax
call esi
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x38]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Version
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4051b5
cmp word [ebp - 0x38], 8
jne 0x4051b5
push 3
push 0x42dcc0
push dword [ebp - 0x30]
call fcn.0040f7d0
add esp, 0xc
test eax, eax
je 0x405216
lea eax, [ebp - 0x38]
push eax
call edi
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x405170
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abb0
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x4051fa