Function at 0x40aa30
Capabilities:
Enumerate processes
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588026
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5ef60c]
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
push str.CMonitoringExe::IsRunningMonExe_r_n
push 0x5f80f8
call fcn.00403a70
add esp, 8
xor ebx, ebx
push 0x5b95a8
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x250], ebx
call fcn.00401a30
push 0xc
mov dword [ebp - 4], ebx
push str.EPSDNMON.EXE
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x24c], ebx
call fcn.00401e90
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x244]
push ecx
push 1
push ebx
push ebx
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
neg eax
sbb eax, eax
neg eax
jne 0x40ab6b
push str.WTSEnumerateProcesses_Failed_r_n
push 0x5f80f8
call fcn.00403a70
add esp, 8
push str.CreateToolhelp32Snapshot___r_n
push 0x5f80f8
call fcn.00403a70
add esp, 8
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, ebx
je 0x40ac40
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40ac52
lea edx, [ebp - 0x218]
push edx
push str.CreateToolhelp32Snapshot______s_r_n
push 0x5f80f8
call fcn.00403a70
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.00558f06
add esp, 0x14
cmp eax, ebx
je 0x40ac1b
lea edx, [ebp - 0x23c]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ab21
jmp 0x40ac52
xor edi, edi
cmp dword [ebp - 0x24c], ebx
jbe 0x40ac59
mov esi, dword [ebp - 0x244]
add esi, 8
mov edx, dword [esi]
push edx
lea ecx, [ebp - 0x248]
call fcn.00401a30
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x240]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x40abec
mov eax, dword [ebp - 0x248]
push ecx
push eax
call fcn.00558f06
add esp, 8
or edx, 0xffffffff
mov byte [ebp - 4], bl
cmp eax, ebx
mov eax, dword [ebp - 0x248]
je 0x40abf6
add eax, 0xfffffff0
add esi, 0x10
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, dword [ebp - 0x24c]
jb 0x40ab82
jmp 0x40ac59
push 0x80004005
call fcn.00401fd0
add eax, 0xfffffff0
mov dword [ebp - 0x250], 1
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ac59
lea eax, [ebp - 0x218]
push eax
push str.CreateToolhelp32Snapshot_____match___s__r_n
push 0x5f80f8
mov dword [ebp - 0x250], 1
call fcn.00403a70
add esp, 0xc
jmp 0x40ac52
push str.CreateToolhelp32Snapshot_____failure__r_n
push 0x5f80f8
call fcn.00403a70
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
cmp eax, ebx
je 0x40ac6f
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [ebp - 0x244], ebx
mov esi, dword [ebp - 0x250]
xor ecx, ecx
cmp esi, ebx
setne cl
push ecx
push str.IsRunningMonExe__d__r_n
push 0x5f80f8
call fcn.00403a70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40acb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.0055799e
mov esp, ebp
pop ebp
ret