Function at 0x4ed8f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, dword [0x56bbf8]
mov eax, dword [ebx]
test eax, eax
jne 0x4ed914
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edb18
mov dword [ebx], eax
push 0x4000
push 8
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edb18
mov edi, eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x4000
push edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4ed9b0
mov eax, dword [ebx]
test eax, eax
jne 0x4ed95a
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edb29
mov dword [ebx], eax
push 0x4000
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edb29
push 0x4000
mov dword [ebp - 0x10], edi
push edi
mov dword [ebp - 0x14], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebp - 0x18]
mov ebx, esi
shr ebx, 2
cmp esi, 0x4004
jae 0x4edb3a
cmp esi, 4
mov dword [ebp - 0x40], ebx
jae 0x4eda5e
mov edi, 4
xor esi, esi
jmp 0x4eda94
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x3c], 0x56ac28
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0x41b090
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
lea esi, [ebp - 0x3c]
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004089e0
add esp, 8
movsd xmm0, qword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
movsd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], eax
movsd qword [ebp - 0x3c], xmm0
mov eax, dword [ebx]
test eax, eax
jne 0x4eda24
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edb4f
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edb4f
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x24]
movsd qword [eax], xmm0
mov byte [ebp - 0x34], 0x27
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x56aaa0
mov eax, dword [ebx]
test eax, eax
je 0x4edac5
mov esi, dword [ebp + 8]
jmp 0x4edad7
mov eax, dword [0x56bbf8]
and esi, 0xfffffffc
mov eax, dword [eax]
test eax, eax
jne 0x4eda81
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4edb71
mov ecx, dword [0x56bbf8]
mov dword [ecx], eax
push esi
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edb71
mov edi, eax
push esi
mov ebx, dword [ebp - 0x14]
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push ebx
push 0
mov ebx, dword [0x56bbf8]
push dword [ebx]
call sub.kernel32.dll_HeapFree
mov edi, dword [ebp - 0x10]
jmp 0x4edb04
call sub.kernel32.dll_GetProcessHeap
mov esi, dword [ebp + 8]
test eax, eax
je 0x4edb60
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4edb60
mov ecx, dword [ebp - 0x34]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x3c]
movsd qword [eax], xmm0
mov dword [esi + 8], eax
mov dword [esi + 4], 3
mov dword [esi], 0
push edi
push 0
push dword [ebx]
call sub.kernel32.dll_HeapFree
mov eax, esi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0x4000
call fcn.004085f0
add esp, 8
ud2
push 4
push 0x4000
call fcn.004085f0
add esp, 8
jmp 0x4edb7c
push 0x56ac00
push 0x1000
push ebx
call fcn.00417f20
add esp, 0xc
jmp 0x4edb7c
mov dword [ebp - 0x10], edi
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4edb7c
mov dword [ebp - 0x10], edi
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4edb7c
push 4
push esi
call fcn.004085f0
add esp, 8
ud2