Function at 0x424610
Capabilities:
Enumerate processes
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x268
mov dword [esp + 4], 0
mov dword [esp], 4
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
cmp eax, 0xffffffff
je 0x4247fe
mov dword [ebp - 0x254], 0x1c
mov edi, eax
lea eax, [ebp - 0x254]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._Thread32First_8
sub esp, 8
mov ebx, eax
mov dword [esp + 0x10], str.name
mov dword [esp + 0xc], str.prio
mov dword [esp + 8], 0x440dd0
mov dword [esp + 4], str.process
mov dword [esp], str.__8.8s___8.8s__s_____s__all_IDs_are_in_hex__n
call sym._dbg_printf
test ebx, ebx
je 0x4247e0
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x260], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x258], eax
jmp 0x4246f9
mov dword [esp + 4], eax
mov dword [esp], str._ls_n
call sym._dbg_printf
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
lea eax, [ebp - 0x254]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._Thread32Next_8
sub esp, 8
test eax, eax
je 0x4247f0
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x248]
cmp dword [ecx + 0x20], eax
je 0x4246dc
cmp eax, ebx
je 0x424750
mov dword [esp], eax
call sym._dbg_get_process
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x424810
mov edx, dword [eax + 0x18]
mov eax, 0x440db5
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x248]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], str._08lx_s__ls_n
call sym._dbg_printf
mov ebx, dword [ebp - 0x248]
mov edx, dword [ebp - 0x24c]
mov ecx, 0x440dbc
cmp edx, dword [0x43ac10]
mov eax, 0x440dc1
cmove eax, ecx
mov dword [esp], str._t_08lx__4ld_s
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x244]
mov dword [esp + 8], eax
call sym._dbg_printf
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call sym._fetch_thread_description
mov esi, eax
test eax, eax
jne 0x4246c0
mov eax, dword [ebp - 0x24c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp], eax
call sym._dbg_get_thread
mov dword [esp], 0x440a24
lea edx, [eax + 0x58]
test eax, eax
mov eax, 0x440850
cmovne eax, edx
mov dword [esp + 4], eax
call sym._dbg_printf
jmp 0x4246dc
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x260], eax
lea esi, cs:[esi]
mov dword [esp], edi
mov eax, dword [ebp - 0x260]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0
mov esi, dword [ebp - 0x248]
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov ebx, eax
cmp eax, 0xffffffff
je 0x4248d0
lea eax, [ebp - 0x238]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [ebp - 0x238], 0x22c
call sym._Process32FirstW_8
sub esp, 8
test eax, eax
jne 0x424899
mov dword [esp], ebx
mov eax, dword [ebp - 0x260]
call eax
mov edx, 0x440dba
mov eax, 0x440850
sub esp, 4
jmp 0x42472c
lea eax, [ebp - 0x238]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Process32NextW_8
sub esp, 8
test eax, eax
je 0x4248bf
cmp esi, dword [ebp - 0x230]
jne 0x424880
mov dword [esp], ebx
mov eax, dword [ebp - 0x260]
call eax
lea edx, [ebp - 0x214]
mov eax, 0x440850
sub esp, 4
jmp 0x42472c
mov dword [esp], ebx
mov eax, dword [ebp - 0x260]
call eax
sub esp, 4
lea esi, [esi]
mov edx, 0x440dba
mov eax, 0x440850
jmp 0x42472c