Function at 0x4c2f04
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc84
mov eax, 0x4e84e4
push ebx
push esi
push edi
call fcn.0049c448
xor edx, edx
lea ecx, [ebp - 0x2d]
mov dword [ebp - 0x2c], edx
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004c2e84
add esp, 8
test al, al
jne 0x4c2f45
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4c312a
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4c311d
mov dword [ebp - 0x158], 0x128
lea eax, [ebp - 0x158]
push eax
push edi
call sub.KERNEL32.DLL_Process32First
test eax, eax
setne al
and eax, 1
test al, al
je 0x4c2fce
push 0xc
call fcn.0049b6f8
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4c2fa6
mov word [ebp - 0x18], 0x14
mov edx, dword [ebp - 4]
push edx
call fcn.004129a8
pop ecx
mov word [ebp - 0x18], 8
mov ecx, dword [ebp - 4]
jmp 0x4c2fa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x158]
push eax
push edi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
setne al
and eax, 1
cmp dword [ebp + 0xc], 0
je 0x4c2fce
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [edx], ecx
test al, al
je 0x4c3117
mov eax, dword [ebp - 0x150]
push eax
push 8
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x37c]
mov dword [ebp - 0x37c], 0x224
push eax
push esi
call sub.KERNEL32.DLL_Module32First
test eax, eax
setne al
and eax, 1
test al, al
je 0x4c30f4
push 0x12c
call fcn.0049b6f8
pop ecx
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004129e8
add esp, 8
mov edx, dword [ebp - 0x158]
mov dword [ebx], edx
mov ecx, dword [ebp - 0x154]
mov dword [ebx + 4], ecx
mov eax, dword [ebp - 0x150]
mov dword [ebx + 8], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp - 0x148]
mov dword [ebx + 0x10], ecx
mov eax, dword [ebp - 0x144]
mov dword [ebx + 0x14], eax
mov edx, dword [ebp - 0x140]
mov dword [ebx + 0x18], edx
mov ecx, dword [ebp - 0x13c]
mov dword [ebx + 0x1c], ecx
mov eax, dword [ebp - 0x138]
mov dword [ebx + 0x20], eax
cmp byte [ebp - 0x2d], 0
je 0x4c30ab
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x25c]
or ecx, 0xffffffff
lea edx, [ebx + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x4c30d7
lea eax, [ebx + 0x24]
push esi
mov esi, eax
push edi
xor eax, eax
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebp + 0xc]
lea edx, [ebx + 0x24]
push eax
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push eax
call fcn.00492878
add esp, 0xc
mov dword [ebx + 0x128], eax
push esi
call sub.KERNEL32.DLL_CloseHandle
lea edx, [ebp - 0x158]
push edx
push edi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
setne al
and eax, 1
test al, al
jne 0x4c2fd6
push edi
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret