Function at 0x412598
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
mov eax, 0x5cbcc0
call fcn.00496be4
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4125ce
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
mov eax, edx
jmp 0x412811
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 0x412800
push str.system
mov word [ebp - 0x38], 8
lea eax, [ebp - 8]
call fcn.00401af8
push eax
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x15c]
lea eax, [ebp - 4]
call fcn.004a44ec
inc dword [ebp - 0x2c]
mov eax, dword [eax]
pop edx
call fcn.0048b7f8
lea eax, [ebp - 8]
call fcn.00401b28
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.004a4690
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop ecx
test ecx, ecx
je 0x4127da
push str._system_process_
mov word [ebp - 0x38], 0x14
lea eax, [ebp - 0x10]
call fcn.00401af8
push eax
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0xc]
call fcn.004a44ec
inc dword [ebp - 0x2c]
mov eax, dword [eax]
pop edx
call fcn.0048b7f8
lea eax, [ebp - 0x10]
call fcn.00401b28
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.004a4690
dec dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
pop ecx
test ecx, ecx
je 0x4127da
push str.services.exe
call sub.USER32.DLL_CharLowerA
push eax
mov word [ebp - 0x38], 0x20
lea eax, [ebp - 0x18]
call fcn.00401af8
push eax
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x14]
call fcn.004a44ec
inc dword [ebp - 0x2c]
mov eax, dword [eax]
pop edx
call fcn.0048b7f8
lea eax, [ebp - 0x18]
call fcn.00401b28
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.004a4690
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4690
pop ecx
test ecx, ecx
je 0x4127da
mov eax, dword [0x5da0b8]
mov edx, dword [eax + 0x2d4]
add edx, 0x208
mov dword [ebp - 0x58], edx
mov word [ebp - 0x38], 0x2c
lea eax, [ebp - 0x20]
call fcn.00401af8
push eax
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x1c]
call fcn.004a44ec
inc dword [ebp - 0x2c]
mov eax, dword [eax]
pop edx
call fcn.0048b7f8
lea eax, [ebp - 0x20]
call fcn.00401b28
push eax
call sub.USER32.DLL_CharLowerA
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.004a44ec
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.004a4690
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a4690
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 0x4125f4
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