Function at 0x40cfc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530433
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x58deec]
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
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x138]
push eax
push edi
mov dword [ebp - 0x138], 0x128
mov dword [ebp - 0x140], ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40d04b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d044
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40d1e6
lea ecx, [ebp + 8]
call fcn.00408a30
lea ecx, [ebp - 0x138]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40d195
jmp 0x40d070
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x13c]
call fcn.00405830
mov edx, dword [ebp - 0x13c]
mov esi, dword [edx - 0xc]
mov byte [ebp - 4], 1
cmp esi, ebx
jl 0x40d204
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40d0ba
push esi
lea ecx, [ebp - 0x13c]
call fcn.00401dd0
mov edx, dword [ebp - 0x13c]
lea eax, [esi + 1]
push eax
push edx
call fcn.0051685f
add esp, 8
cmp eax, 0x50
ja case.0x40d0d7.0
movzx ecx, byte [eax + 0x40d234]
jmp dword [ecx*4 + 0x40d224]
mov eax, dword [ebp - 0x13c]
cmp esi, dword [eax - 8]
jg 0x40d204
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x13c]
mov byte [esi + edx], bl
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x40d218
mov eax, dword [ebp - 0x13c]
push ecx
push eax
call fcn.0051628c
add esp, 8
cmp eax, ebx
jne 0x40d125
inc dword [ebp - 0x140]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005175cf
add esp, 8
cmp eax, ebx
jl 0x40d204
mov ecx, dword [ebp - 0x13c]
cmp eax, dword [ecx - 8]
jg 0x40d204
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x13c]
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d180
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x138]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40d070
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005175cf
add esp, 8
cmp eax, ebx
jl 0x40d204
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x40d204
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
mov byte [eax + edx], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x140]
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.005156a7
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401010
call fcn.004169a2
call fcn.004169da
push 0x80004005
call fcn.00401010
mov edi, edi
invalid