Function at 0x4b8e80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x571180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0xb0], ebx
mov eax, dword [edi + 8]
test eax, eax
je 0x4b8eb9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
push ebx
push 0
push 0x1fffff
mov byte [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [edi + 8], eax
test eax, eax
jne 0x4b8f5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.OpenProcess_for_PID__d_failed_with_error__d.
lea eax, [ebp - 0x9c]
push 0x64
push eax
call fcn.004bb2c0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xb4], 0x534829
push SysReAllocString
push eax
mov dword [ebp - 0xb0], 0
call fcn.004bb5c0
mov dword [ebp - 0xb0], eax
add esp, 0x1c
lea eax, [ebp - 0x9c]
mov ecx, esi
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
push eax
push dword [0x54c384]
call fcn.004797f0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2e59
mov esp, ebp
pop ebp
ret 8
push SysReAllocString
push 0x534829
mov dword [ebp - 0xc4], 0x534829
mov dword [ebp - 0xc0], 0
call fcn.004bb5c0
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc4]
push SysReAllocString
push eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xac], 0xffffffff
call fcn.004bb590
add esp, 0x10
test eax, eax
jne 0x4b8fd8
push 4
call fcn.004c3701
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xa0]
push eax
push 4
push ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov eax, dword [ebx]
jmp 0x4b90d2
mov esi, dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push dword [edi + 8]
call esi
mov eax, dword [ebp - 0xa0]
mov ecx, 4
shr eax, 2
mov dword [ebp - 0xa4], eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004c3701
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa8], ebx
push eax
mov eax, dword [ebp - 0xa4]
shl eax, 2
push eax
push ebx
push dword [edi + 8]
call esi
test eax, eax
je 0x4b90d8
xor esi, esi
cmp dword [ebp - 0xa4], esi
jbe 0x4b90d8
nop word [eax + eax]
push 0x32
lea eax, [ebp - 0x38]
push eax
push dword [ebx + esi*4]
lea ebx, [ebx + esi*4]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x4b90b9
lea eax, [ebp - 0x38]
mov dword [ebp - 0xbc], 0x534829
push SysReAllocString
push eax
mov dword [ebp - 0xb8], 0
call fcn.004bb5c0
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xbc]
push SysReAllocString
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.004bb500
add esp, 0x14
test eax, eax
je 0x4b90ca
mov ebx, dword [ebp - 0xa8]
inc esi
cmp esi, dword [ebp - 0xa4]
jae 0x4b90d8
jmp 0x4b9050
mov eax, dword [ebx]
mov ebx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
push ebx
call fcn.004c36f7
mov eax, dword [ebp - 0xac]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
xor ecx, ebp
mov eax, dword [ebp - 0xb0]
mov dword [edi + 4], eax
mov al, 1
mov byte [edi], 1
pop edi
pop esi
pop ebx
call fcn.004c2e59
mov esp, ebp
pop ebp
ret 8