Function at 0x4d5c28
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4d5e8a
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x4c]
mov eax, esi
mov ecx, 0x40
call fcn.004071e0
cmp word [ebp - 0x4c], 0x5a4d
je 0x4d5c87
mov eax, 0x4ec8b4
mov edx, 0x4d5ec4
call fcn.0040a57c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5ea9
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
mov eax, esi
call fcn.004d5388
lea edx, [ebp - 0x144]
mov ecx, 0xf8
call fcn.004071e0
cmp dword [ebp - 0x144], 0x4550
je 0x4d5ccc
mov eax, 0x4ec8b4
mov edx, 0x4d5f30
call fcn.0040a57c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5ea9
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x110]
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x4d5d03
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf4]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x4d5d23
mov eax, 0x4ec8b4
mov edx, 0x4d5fa4
call fcn.0040a57c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5ea9
push 0x11
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x10], 0
push 0x40
push 0x1000
mov eax, dword [ebp - 0xf4]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc
push 0x40
push 0x1000
mov eax, dword [ebp - 0xf0]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xf0]
mov ecx, eax
mov edx, edi
mov eax, esi
call fcn.004071e0
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
mov edi, ebx
mov dword [ecx + 0x34], edi
lea edx, [ebp - 0x144]
mov ecx, dword [ebp - 0xc]
mov eax, esi
call fcn.004d546c
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x110]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test eax, eax
je 0x4d5de5
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004d55d4
mov eax, dword [ebp - 0xc]
push eax
call fcn.004d56c0
test al, al
jne 0x4d5e06
mov eax, 0x4ec8b4
mov edx, 0x4d6000
call fcn.0040ae2c
call fcn.00428720
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004d5ac4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4d5e80
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, ecx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, eax
test esi, esi
jne 0x4d5e4e
mov eax, 0x4ec8b4
mov edx, 0x4d6068
call fcn.0040a57c
call fcn.00428720
cmp byte [ebp - 2], 0
je 0x4d5e79
push 0
push 1
push edi
call esi
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d5e79
mov eax, 0x4ec8b4
mov edx, 0x4d60cc
call fcn.0040a57c
call fcn.00428720
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5ea3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8