Function at 0x401060
Capabilities:
Enumerate process modules
Enumerate processes
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
mov eax, dword [0x41a004]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x4010b1
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4010c8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.00401314
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
push str._n_n
call fcn.00401010
lea eax, [esp + 0x38]
push eax
push str._nPROCESS_NAME:___s
call fcn.00401010
push str._n_______________________________________________________
call fcn.00401010
add esp, 0x10
xor esi, esi
push dword [esp + 0x18]
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40111e
push edi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov esi, eax
test esi, esi
jne 0x40111e
push edi
call ebx
push dword [esp + 0x18]
push str._n__Process_ID_________0x_08X
call fcn.00401010
push dword [esp + 0x2c]
push str._n__Thread_count________d
call fcn.00401010
push dword [esp + 0x38]
push str._n__Parent_process_ID__0x_08X
call fcn.00401010
push dword [esp + 0x44]
push str._n__Priority_base_______d
call fcn.00401010
add esp, 0x20
test esi, esi
je 0x40116b
push esi
push str._n__Priority_class______d
call fcn.00401010
add esp, 8
push dword [esp + 0x18]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401246
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x401243
nop dword [eax]
nop dword [eax + eax]
lea eax, [esp + 0x260]
push eax
push str._n_n_____MODULE_NAME:______s
call fcn.00401010
lea eax, [esp + 0x468]
push eax
push str._n_____Executable_______s
call fcn.00401010
push dword [esp + 0x258]
push str._n_____Process_ID______0x_08X
call fcn.00401010
push dword [esp + 0x264]
push str._n_____Ref_count__g____0x_04X
call fcn.00401010
push dword [esp + 0x270]
push str._n_____Ref_count__p____0x_04X
call fcn.00401010
push dword [esp + 0x27c]
push str._n_____Base_address____0x_08X
call fcn.00401010
push dword [esp + 0x288]
push str._n_____Base_size________d
call fcn.00401010
add esp, 0x38
lea eax, [esp + 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x4011b0
push esi
call ebx
mov edi, dword [esp + 0x18]
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012df
lea eax, [esp + 0x668]
mov dword [esp + 0x668], 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x4012dc
nop dword [eax]
cmp dword [esp + 0x674], edi
jne 0x4012c9
push dword [esp + 0x670]
push str._n_n_____THREAD_ID_______0x_08X
call fcn.00401010
push dword [esp + 0x680]
push str._n_____Base_priority____d
call fcn.00401010
push dword [esp + 0x68c]
push str._n_____Delta_priority___d
call fcn.00401010
push 0x418c00
call fcn.00401010
add esp, 0x1c
lea eax, [esp + 0x668]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x401280
push esi
call ebx
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4010d0
push esi
call ebx
mov ecx, dword [esp + 0x684]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401314
mov esp, ebp
pop ebp
ret