Function at 0x40dd50
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
push ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
jne 0x40dd77
xor eax, eax
pop ebx
add esp, 0x134
ret 8
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40df6a
push ebp
push esi
mov esi, dword [esp + 0x14c]
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.0041ff50
add esp, 8
test eax, eax
jne 0x40df4d
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x40debd
mov edx, dword [esi + 4]
test edx, edx
je 0x40ddef
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x40ddf4
mov ecx, 1
test edx, edx
jne 0x40ddfc
xor eax, eax
jmp 0x40de01
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
jge 0x40de0d
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x18], eax
mov ebx, eax
je 0x40de3e
push ebp
push ebx
call fcn.0040e8e0
add ebp, 4
add esp, 8
add ebx, 4
cmp ebp, edi
jne 0x40de2a
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push 1
push ebx
call fcn.0040e8b0
mov ecx, dword [esi + 8]
add ebx, 4
push ebx
push ecx
push edi
mov ecx, esi
call fcn.0040e880
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.0040e870
mov ecx, dword [esi + 4]
push ecx
call fcn.00420d62
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [edx + eax*4]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], ecx
jne 0x40dea2
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esi + 4], edx
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
jmp 0x40df4d
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x14]
sub ecx, eax
mov dword [esi + 4], edx
sar ecx, 2
lea eax, [edx + ecx*4 + 4]
mov dword [esi + 8], eax
jmp 0x40df4d
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x40df0b
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.0040e880
mov eax, dword [esi + 8]
lea edx, [esp + 0x24]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.0040e8b0
mov eax, dword [esi + 8]
cmp edi, eax
je 0x40df49
mov ecx, dword [esp + 0x24]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x40defc
jmp 0x40df49
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x18], ecx
push ecx
mov ecx, esi
call fcn.0040e880
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x40df35
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x40df26
lea eax, [edi + 4]
cmp edi, eax
je 0x40df49
mov ecx, dword [esp + 0x24]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x40df3c
add dword [esi + 8], 4
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x128
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40dda9
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
add esp, 0x134
ret 8