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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d730
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x412074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov byte [eax], bl
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x18]
push ecx
push 0x410480
push 0x17
push ebx
push 0x40e2d0
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40121d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x401209
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
lea ebx, [ebp - 0x24]
call section..text
mov byte [ebp - 4], 2
mov eax, dword [eax]
test eax, eax
je 0x40123d
mov eax, dword [eax]
jmp 0x40123f
xor eax, eax
mov ecx, dword [esi]
lea edx, [ebp - 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
mov eax, dword [ecx + 0xc]
push esi
call eax
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40129f
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40129f
test esi, esi
je 0x40129f
mov eax, dword [esi]
test eax, eax
je 0x401286
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x401296
push eax
call fcn.0040184b
add esp, 4
push esi
call fcn.00401831
add esp, 4
test edi, edi
jns 0x4012e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4012b6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4012cc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
mov ebx, str.getKVMState
call fcn.00401110
lea ecx, [ebp - 0x24]
push ecx
mov ebx, str.AMT_Service
mov byte [ebp - 4], 3
call fcn.00401110
mov dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x60]
push 0
push 0
push edi
push esi
push eax
call edx
test eax, eax
jns 0x40138e
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x401341
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push edi
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x401360
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4012cc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x4c]
push eax
call esi
push 0
push 0
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push 0
push str.ReturnValue
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x44], 0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jne 0x4013ff
lea ecx, [ebp - 0x3c]
push ecx
call esi
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push str.active
push eax
call edx
cmp word [ebp - 0x34], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x3c]
setne al
push edx
mov byte [ecx], al
mov byte [ebp - 0x11], 1
call ebx
lea eax, [ebp - 0x4c]
push eax
call ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x401418
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
push edi
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40143a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401450
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret