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

Disassembly:
push ebp
sub esp, 0x50
mov eax, 0x426dbe
call fcn.0041362c
sub esp, 0xc4
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp + 0x1c], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
setge byte [ebp + 0x43]
mov dword [ebp + 0x3c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 0x44], ebx
lea eax, [ebp + 0x3c]
push eax
push 0x42ba98
push 0x17
push ebx
push 0x42bb90
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [ebp + 0x3c]
cmp esi, ebx
je 0x40fbb0
push 0x4291d4
lea ecx, [ebp + 0x4c]
call fcn.0040ca2c
mov edi, eax
push str.rootcimv2
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 2
call fcn.0040ca2c
mov edi, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp + 0x44]
push edx
push ebx
push edi
push 0x80
push ebx
push ebx
push ebx
push eax
push esi
mov byte [ebp - 4], 3
call dword [ecx + 0xc]
push dword [ebp + 0x34]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
setl byte [ebp + 0x4b]
call edi
push dword [ebp + 0x4c]
mov byte [ebp - 4], 1
call edi
cmp byte [ebp + 0x4b], bl
jne 0x40fbb0
push ebx
push ebx
push 3
push ebx
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push dword [ebp + 0x44]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x40fbb0
mov dword [ebp + 0x38], ebx
push str.Select_ProcessId__Name__from_Win32_Process
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 4
call fcn.0040ca2c
mov esi, dword [ebp + 0x44]
push 0x42bb04
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 5
call fcn.0040ca2c
mov eax, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp + 0x38]
push edx
push ebx
push 0x20
push dword [ebp + 0x34]
mov byte [ebp - 4], 6
push eax
push esi
call dword [ecx + 0x50]
push dword [ebp + 0x4c]
mov esi, eax
call edi
cmp esi, ebx
jl 0x40fb9a
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x40fb9a
mov dword [ebp + 0x50], ebx
lea edx, [ebp + 0x30]
push edx
lea edx, [ebp + 0x50]
push edx
push 1
push 0x2710
mov dword [ebp + 0x30], ebx
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 7
call dword [ecx + 0x10]
cmp eax, ebx
jne 0x40fb89
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0x30], 1
jne 0x40fb89
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp + 0x20]
push edx
push ebx
push str.Name
push eax
mov byte [ebp - 4], 8
call dword [ecx + 0x10]
test eax, eax
jl 0x40fb4f
cmp word [ebp + 0x20], 8
jne 0x40fb4f
cmp dword [ebp + 0x28], ebx
je 0x40fb4f
push dword [ebp + 0x28]
lea ecx, [ebp - 0xd0]
call fcn.0040386e
push dword [eax]
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.004060ab
lea eax, [ebp - 0xcc]
cmp dword [ebp - 0xd0], eax
je 0x40fa57
push dword [ebp - 0xd0]
call fcn.00412862
pop ecx
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
call fcn.004036db
lea ecx, [ebp - 0x2c]
call fcn.0040434b
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
mov byte [ebp - 4], 0xc
sar eax, 5
mov dword [ebp + 0x4c], ebx
test eax, eax
ja 0x40fab0
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x40fa96
mov dword [ebp + 0x50], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x4c]
call fcn.0040e46d
push ebx
push 1
lea ecx, [ebp]
call fcn.00403cab
jmp 0x40fb5f
mov ecx, eax
push dword [ebp + 0x4c]
call fcn.0040daf4
cmp dword [eax + 0x18], 0x10
jb 0x40fac3
mov eax, dword [eax + 4]
jmp 0x40fac6
add eax, 4
cmp dword [ebp + 0x18], 0x10
mov ecx, dword [ebp + 4]
jae 0x40fad2
lea ecx, [ebp + 4]
push eax
push ecx
call fcn.00414801
pop ecx
pop ecx
test eax, eax
je 0x40faf5
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
inc dword [ebp + 0x4c]
sar ecx, 5
cmp dword [ebp + 0x4c], ecx
jb 0x40faae
jmp 0x40fa86
push dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x5c]
call fcn.0040daf4
mov al, byte [eax + 0x1c]
mov byte [ebp - 0x10], al
lea eax, [ebp + 0x20]
push eax
call esi
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp + 0x20]
push edx
push ebx
push str.ProcessId
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x40fa86
mov eax, dword [ebp + 0x28]
push 0xffffffffffffffff
mov dword [ebp - 0x30], eax
push ebx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040517d
mov ecx, dword [ebp + 0x60]
lea eax, [ebp - 0x4c]
push eax
call fcn.0040f82c
jmp 0x40fa86
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x40fb5f
mov dword [ebp + 0x50], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x20]
push eax
mov byte [ebp - 4], 7
call esi
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax]
lea edx, [ebp + 0x30]
push edx
lea edx, [ebp + 0x50]
push edx
push 1
push 0x2710
push eax
call dword [ecx + 0x10]
cmp eax, ebx
je 0x40f9d8
mov eax, dword [ebp + 0x50]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x40fb9a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 0x34]
call edi
mov eax, dword [ebp + 0x38]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40fbb0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 0x60]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
xor edi, edi
sar eax, 6
test eax, eax
jbe 0x40fbe5
lea eax, [ebp + 0x44]
push eax
push edi
mov ecx, esi
call fcn.0040db19
mov ecx, dword [ebp + 0x1c]
push eax
call fcn.0040e947
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc edi
sar eax, 6
cmp edi, eax
jb 0x40fbc2
mov eax, dword [ebp + 0x44]
cmp eax, ebx
je 0x40fbf5
mov dword [ebp + 0x44], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x3c]
cmp eax, ebx
je 0x40fc05
mov dword [ebp + 0x3c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0x43], bl
je 0x40fc10
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 0x44]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40fc20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x3c]
or dword [ebp - 4], 0xffffffff
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x40fc34
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x54
leave
ret 8