Function at 0x4584d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c3ad
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x48e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x150], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x458699
cmp edi, 0xffffffff
je 0x458699
lea eax, [ebp - 0x150]
push eax
push edi
call sub.KERNEL32.dll_Process32First
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458540
sub ecx, edx
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x458553
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push dword [esi + 0x10]
push eax
call fcn.00458330
add esp, 0x10
test al, al
jne 0x4585d2
lea eax, [ebp - 0x150]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4586ba
lea eax, [ebp - 0x12c]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458590
sub eax, edx
mov ecx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x4585a3
mov ecx, dword [esi]
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [esi + 0x10]
push ecx
call fcn.00458330
add esp, 0x10
test al, al
jne 0x4585d2
lea eax, [ebp - 0x150]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4586ba
jmp 0x458580
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x148]
push str.Process::Process
push str._debug____s_
mov dword [ebx + 4], eax
call fcn.00414660
add esp, 8
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x4585fe
mov eax, dword [esi]
push dword [ebx + 4]
push str.with_id
push eax
push str.found_process
push str._s__s__s__lu
call fcn.00414660
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putchar]
push 0xa
call edi
add esp, 0x18
push dword [ebx + 4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4586f9
cmp eax, 0xffffffff
je 0x4586f9
push str.Process::Process
push str._debug____s_
mov dword [ebx], eax
call fcn.00414660
add esp, 8
cmp dword [esi + 0x14], 0xf
jbe 0x458660
mov esi, dword [esi]
push dword [ebx]
push esi
push str.got_handle_to_process
push str._s__s___x_
call fcn.00414660
push 0xa
call edi
add esp, 0x14
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004590b0
mov esp, ebp
pop ebp
ret 4
push str.failed_to_get_process_list
lea ecx, [ebp - 0x174]
call fcn.0040a2a0
push 0x48aa58
lea eax, [ebp - 0x174]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x1a
lea eax, [ebp - 0x28]
push str.couldnt_find_process_
push eax
call fcn.00458430
add esp, 0x10
push eax
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 0
call fcn.004527d0
push 0x48aa58
lea eax, [ebp - 0x15c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.failed_opening_handle_to_process
lea ecx, [ebp - 0x168]
call fcn.0040a2a0
push 0x48aa58
lea eax, [ebp - 0x168]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3