Function at 0x4159a0
Capabilities:
Enumerate processes
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.kernel32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
je 0x415b38
mov dword [ebp - 0x260], 0x1c
mov esi, eax
lea eax, [ebp - 0x260]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.kernel32.dll_Thread32First
sub esp, 8
mov ebx, eax
mov dword [esp + 0x10], str.name
mov dword [esp + 0xc], str.prio
mov dword [esp + 8], 0x436bb4
mov dword [esp + 4], str.process
mov dword [esp], str.__8.8s___8.8s__s_____s__all_IDs_are_in_hex__n
call fcn.004242a0
test ebx, ebx
je 0x415c08
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x274], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x26c], eax
lea esi, [esi]
lea esi, [esi]
mov edi, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x254]
cmp dword [edi + 0x20], eax
je 0x415b0d
mov ecx, dword [ebp - 0x270]
cmp eax, ecx
je 0x415ab3
mov dword [esp], eax
call fcn.00424580
mov ebx, eax
test eax, eax
je 0x415b40
mov edx, dword [eax + 0x18]
mov eax, 0x436b99
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x254]
mov dword [esp], str._08lx_s__ls_n
mov dword [esp + 4], eax
call fcn.004242a0
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x258]
mov dword [esp], ebx
mov edi, 0x436ba5
mov dword [esp + 4], eax
call fcn.00424a50
mov ecx, dword [ebp - 0x258]
lea edx, [eax + 0x58]
test eax, eax
mov eax, 0x43679c
cmove edx, eax
cmp ecx, dword [0x4425b0]
mov eax, 0x436ba0
mov dword [esp + 0x10], edx
cmovne eax, edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x250]
mov dword [esp + 4], ecx
mov dword [esp], str._t_08lx__4ld_s__s_n
mov dword [esp + 8], eax
call fcn.004242a0
lea eax, [ebp - 0x260]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.kernel32.dll_Thread32Next
sub esp, 8
test eax, eax
jne 0x415a50
mov dword [esp], esi
mov eax, dword [ebp - 0x274]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x270], eax
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x415bf6
mov dword [ebp - 0x244], 0x22c
lea edx, [ebp - 0x244]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.kernel32.dll_Process32FirstW
sub esp, 8
test eax, eax
je 0x415be8
mov dword [ebp - 0x278], ebx
mov ebx, dword [ebp - 0x270]
jmp 0x415bb9
lea eax, [ebp - 0x244]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.kernel32.dll_Process32NextW
sub esp, 8
test eax, eax
je 0x415c18
cmp ebx, dword [ebp - 0x23c]
jne 0x415ba0
mov ebx, dword [ebp - 0x278]
mov dword [esp], edi
mov eax, dword [ebp - 0x274]
call eax
lea edx, [ebp - 0x220]
mov eax, 0x43679c
sub esp, 4
jmp 0x415a89
mov dword [esp], edi
mov eax, dword [ebp - 0x274]
call eax
sub esp, 4
mov edx, 0x436b9e
mov eax, 0x43679c
jmp 0x415a89
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x274], eax
jmp 0x415b2a
mov ebx, dword [ebp - 0x278]
mov dword [esp], edi
mov eax, dword [ebp - 0x274]
call eax
sub esp, 4
jmp 0x415bf6