Function at 0x412578
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
mov eax, 0x5c9c24
call fcn.00496c14
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4125ae
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
mov eax, edx
jmp 0x4127f1
mov dword [ebp - 0x180], 0x128
lea ecx, [ebp - 0x180]
push ecx
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_Process32First
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4127e0
push str.system
mov word [ebp - 0x38], 8
lea eax, [ebp - 8]
call fcn.00401ad8
push eax
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x15c]
lea eax, [ebp - 4]
call fcn.004a451c
inc dword [ebp - 0x2c]
mov eax, dword [eax]
pop edx
call fcn.0048b828
lea eax, [ebp - 8]
call fcn.00401b08
push eax
call sub.USER32.DLL_CharLowerA
push eax
call sub.KERNEL32.DLL_lstrcmpA
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
pop ecx
test ecx, ecx
je 0x4127ba
push str._system_process_
mov word [ebp - 0x38], 0x14
lea eax, [ebp - 0x10]
call fcn.00401ad8
push eax
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0xc]
call fcn.004a451c
inc dword [ebp - 0x2c]
mov eax, dword [eax]
pop edx
call fcn.0048b828
lea eax, [ebp - 0x10]
call fcn.00401b08
push eax
call sub.USER32.DLL_CharLowerA
push eax
call sub.KERNEL32.DLL_lstrcmpA
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
pop ecx
test ecx, ecx
je 0x4127ba
push str.services.exe
call sub.USER32.DLL_CharLowerA
push eax
mov word [ebp - 0x38], 0x20
lea eax, [ebp - 0x18]
call fcn.00401ad8
push eax
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x14]
call fcn.004a451c
inc dword [ebp - 0x2c]
mov eax, dword [eax]
pop edx
call fcn.0048b828
lea eax, [ebp - 0x18]
call fcn.00401b08
push eax
call sub.USER32.DLL_CharLowerA
push eax
call sub.KERNEL32.DLL_lstrcmpA
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a46c0
pop ecx
test ecx, ecx
je 0x4127ba
mov eax, dword [0x5d8038]
mov edx, dword [eax + 0x2d4]
add edx, 0x208
mov dword [ebp - 0x58], edx
mov word [ebp - 0x38], 0x2c
lea eax, [ebp - 0x20]
call fcn.00401ad8
push eax
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x1c]
call fcn.004a451c
inc dword [ebp - 0x2c]
mov eax, dword [eax]
pop edx
call fcn.0048b828
lea eax, [ebp - 0x20]
call fcn.00401b08
push eax
call sub.USER32.DLL_CharLowerA
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.004a451c
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a46c0
mov dword [ebp - 0x180], 0x128
lea ecx, [ebp - 0x180]
push ecx
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_Process32Next
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4125d4
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x48]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret