Function at 0x486958
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c5b84
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 8]
mov dword [esp + 0x10], edi
call fcn.004810a4
lea eax, [esp + 0x14]
push eax
call fcn.00407c19
and dword [esp + 0x468], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4869ee
push 0x4def44
push ecx
lea eax, [esp + 0x2c]
push str.Failed_to_CreateToolhelp32Snapshot
push eax
call fcn.00408b2f
add esp, 0xc
push eax
call fcn.00408b2f
pop ecx
pop ecx
jmp 0x486bb4
lea eax, [esp + 0x20c]
push eax
push ebx
mov dword [esp + 0x214], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x486a31
push 0x4def44
push ecx
lea eax, [esp + 0x2c]
push str.Failed_to_Process32First
push eax
call fcn.00408b2f
add esp, 0xc
push eax
call fcn.00408b2f
pop ecx
pop ecx
jmp 0x486bad
mov esi, 0x4def44
push esi
push ecx
lea eax, [esp + 0x2c]
push 0x4dfd28
push eax
call fcn.00408b2f
add esp, 0xc
push eax
call fcn.00408b2f
pop ecx
pop ecx
push esi
push ecx
lea eax, [esp + 0x238]
push eax
push ecx
lea eax, [esp + 0x34]
push str.PROCESS_NAME:_t
push eax
call fcn.00408b2f
add esp, 0xc
push eax
call fcn.00408b2f
add esp, 0xc
push eax
call fcn.00408b2f
pop ecx
pop ecx
push dword [esp + 0x214]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x486ab6
push esi
push ecx
lea eax, [esp + 0x2c]
push str.Failed_to_OpenProcess
push eax
call fcn.00408b2f
add esp, 0xc
push eax
call fcn.00408b2f
pop ecx
pop ecx
jmp 0x486abd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0x14]
mov ecx, dword [eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
push esi
push ecx
push dword [esp + 0x21c]
lea eax, [esp + eax + 0x20]
or dword [eax + 0x14], 8
push ecx
lea eax, [esp + 0x34]
push str.Process_ID_t
push eax
call fcn.00408b2f
add esp, 0xc
push eax
call fcn.0047f808
pop ecx
push eax
call fcn.00408b2f
pop ecx
pop ecx
push esi
push ecx
push dword [esp + 0x22c]
lea eax, [esp + 0x30]
push ecx
push str.Parent_process_ID_t
push eax
call fcn.00408b2f
add esp, 0xc
push eax
call fcn.0047f808
pop ecx
push eax
call fcn.00408b2f
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
pop ecx
lea eax, [esp + eax + 0x18]
pop ecx
mov ecx, dword [eax + 0x14]
and ecx, 0xfffff3ff
or ecx, 0x200
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
push esi
push ecx
push dword [esp + 0x228]
lea eax, [esp + eax + 0x20]
and dword [eax + 0x14], 0xfffffff7
push ecx
lea eax, [esp + 0x34]
push str.Thread_count_t
push eax
call fcn.00408b2f
add esp, 0xc
push eax
call fcn.0047f808
pop ecx
push eax
call fcn.00408b2f
pop ecx
pop ecx
lea eax, [esp + 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x486a36
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x43c]
push eax
lea eax, [esp + 0x18]
call fcn.00407cf0
mov ebx, eax
lea eax, [edi + 0x44]
mov byte [esp + 0x468], 1
call fcn.00409d73
push 1
xor edi, edi
lea esi, [esp + 0x440]
mov byte [esp + 0x46c], 0
call fcn.0040a3ed
lea eax, [esp + 0x164]
push eax
call fcn.00407c19
lea ecx, [esp + 0x164]
mov byte [esp + 0x468], 2
call fcn.0048ae25
lea eax, [esp + 0x43c]
push eax
lea eax, [esp + 0x168]
call fcn.00407cf0
mov ebx, eax
mov eax, dword [esp + 0x10]
add eax, 0x60
mov byte [esp + 0x468], 3
call fcn.00409d73
push 1
lea esi, [esp + 0x440]
mov byte [esp + 0x46c], 2
call fcn.0040a3ed
lea eax, [esp + 0xbc]
push eax
call fcn.00407c19
lea edi, [esp + 0xbc]
mov byte [esp + 0x468], 4
call fcn.0048afa7
lea eax, [esp + 0x43c]
push eax
mov eax, edi
call fcn.00407cf0
mov ebx, eax
mov eax, dword [esp + 0x10]
add eax, 0x7c
mov byte [esp + 0x468], 5
call fcn.00409d73
push 1
xor edi, edi
lea esi, [esp + 0x440]
call fcn.0040a3ed
lea eax, [esp + 0xbc]
mov byte [esp + 0x468], 2
call fcn.004071a2
lea eax, [esp + 0x164]
mov byte [esp + 0x468], 0
call fcn.004071a2
or dword [esp + 0x468], 0xffffffff
lea eax, [esp + 0x14]
call fcn.004071a2
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret