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

Disassembly:
push ebp
sub esp, 0x50
mov eax, 0x4256ca
call fcn.004121ac
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 0x429a28
push 0x17
push ebx
push 0x429b24
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [ebp + 0x3c]
cmp esi, ebx
je 0x40e3b9
push 0x429b20
lea ecx, [ebp + 0x4c]
call fcn.0040b185
mov edi, eax
push str.rootcimv2
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 2
call fcn.0040b185
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 0x40e3b9
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 0x40e3b9
mov dword [ebp + 0x38], ebx
push str.Select_ProcessId__Name__from_Win32_Process
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 4
call fcn.0040b185
mov esi, dword [ebp + 0x44]
push 0x429a94
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 5
call fcn.0040b185
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 0x40e3a3
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x40e3a3
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 0x40e392
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0x30], 1
jne 0x40e392
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 0x40e358
cmp word [ebp + 0x20], 8
jne 0x40e358
cmp dword [ebp + 0x28], ebx
je 0x40e358
push dword [ebp + 0x28]
lea ecx, [ebp - 0xd0]
call fcn.004034de
push dword [eax]
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.0040590a
lea eax, [ebp - 0xcc]
cmp dword [ebp - 0xd0], eax
je 0x40e260
push dword [ebp - 0xd0]
call fcn.004110f2
pop ecx
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
call fcn.00403256
lea ecx, [ebp - 0x2c]
call fcn.00403d3d
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 0x40e2b9
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x40e29f
mov dword [ebp + 0x50], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x4c]
call fcn.0040cc44
push ebx
push 1
lea ecx, [ebp]
call fcn.0040394b
jmp 0x40e368
mov ecx, eax
push dword [ebp + 0x4c]
call fcn.0040c2b4
cmp dword [eax + 0x18], 0x10
jb 0x40e2cc
mov eax, dword [eax + 4]
jmp 0x40e2cf
add eax, 4
cmp dword [ebp + 0x18], 0x10
mov ecx, dword [ebp + 4]
jae 0x40e2db
lea ecx, [ebp + 4]
push eax
push ecx
call fcn.00412e4d
pop ecx
pop ecx
test eax, eax
je 0x40e2fe
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 0x40e2b7
jmp 0x40e28f
push dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x5c]
call fcn.0040c2b4
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 0x40e28f
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.00404a70
mov ecx, dword [ebp + 0x60]
lea eax, [ebp - 0x4c]
push eax
call fcn.0040e035
jmp 0x40e28f
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x40e368
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 0x40e1e1
mov eax, dword [ebp + 0x50]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x40e3a3
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 0x40e3b9
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 0x40e3ee
lea eax, [ebp + 0x44]
push eax
push edi
mov ecx, esi
call fcn.0040c2d9
mov ecx, dword [ebp + 0x1c]
push eax
call fcn.0040d158
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc edi
sar eax, 6
cmp edi, eax
jb 0x40e3cb
mov eax, dword [ebp + 0x44]
cmp eax, ebx
je 0x40e3fe
mov dword [ebp + 0x44], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x3c]
cmp eax, ebx
je 0x40e40e
mov dword [ebp + 0x3c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0x43], bl
je 0x40e419
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 0x44]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40e429
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 0x40e43d
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