Function at 0x404710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
mov eax, 0x4afea0
call fcn.0049c620
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x58], eax
mov word [ebp - 0x44], 8
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xffffffff
jne 0x4047b0
mov word [ebp - 0x44], 0x20
mov edx, 0x4adf23
lea eax, [ebp - 8]
call fcn.004a849c
inc dword [ebp - 0x38]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004a8670
mov eax, dword [ebp + 8]
mov word [ebp - 0x44], 0x2c
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a8640
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a8640
pop eax
mov word [ebp - 0x44], 0x20
inc dword [ebp - 0x38]
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x404a07
mov eax, dword [0x4aa868]
mov edx, dword [eax]
call dword [edx + 0x40]
mov dword [ebp - 0x188], 0x128
lea ecx, [ebp - 0x188]
push ecx
push dword [ebp - 0x58]
call sub.KERNEL32.DLL_Process32First
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
dec eax
jne 0x40499b
mov word [ebp - 0x44], 0x38
mov edx, 0x4adf24
lea eax, [ebp - 0x10]
call fcn.004a849c
inc dword [ebp - 0x38]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x164]
lea eax, [ebp - 0xc]
call fcn.004a849c
inc dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x38]
pop edx
call fcn.004a8698
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x180]
call fcn.004a85fc
mov edx, eax
inc dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
inc dword [ebp - 0x38]
pop eax
call fcn.004a8698
lea edx, [ebp - 0x1c]
push edx
mov edx, 0x4adf26
lea eax, [ebp - 0x20]
call fcn.004a849c
inc dword [ebp - 0x38]
lea edx, [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
inc dword [ebp - 0x38]
pop eax
call fcn.004a8698
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.004a8670
dec dword [ebp - 0x38]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004a8640
dec dword [ebp - 0x38]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004a8640
dec dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a8640
dec dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a8640
dec dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a8640
dec dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a8640
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a8640
mov edx, dword [ebp - 0x170]
mov eax, dword [0x4aa868]
call fcn.004882f4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jl 0x404962
mov word [ebp - 0x44], 0x44
xor eax, eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
inc dword [ebp - 0x38]
mov edx, dword [ebp - 0x60]
mov eax, dword [0x4aa868]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
inc dword [ebp - 0x38]
mov eax, 0x4adf28
call fcn.004a89e0
lea edx, [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.004a8684
dec dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004a8640
dec dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004a8640
mov ecx, dword [ebp - 0x180]
mov edx, dword [ebp - 4]
mov eax, dword [0x4aa868]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov dword [ebp - 0x188], 0x128
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x58]
call sub.KERNEL32.DLL_Process32Next
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
dec edx
je 0x4047e0
push dword [ebp - 0x58]
call sub.KERNEL32.DLL_CloseHandle
mov word [ebp - 0x44], 0x50
xor ecx, ecx
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x30]
inc dword [ebp - 0x38]
mov eax, dword [0x4aa868]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
call fcn.004a8670
mov eax, dword [ebp + 8]
mov word [ebp - 0x44], 0x5c
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004a8640
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a8640
pop eax
mov word [ebp - 0x44], 0x50
inc dword [ebp - 0x38]
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret