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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00403fe0
xor eax, eax
push ebp
push 0x420315
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4202df
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x48]
mov ecx, 0x40
mov edx, esi
call fcn.0041fad8
cmp word [ebp - 0x48], 0x5a4d
je 0x42011d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4202ff
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, esi
call fcn.0041fa10
mov edx, eax
lea eax, [ebp - 0x140]
mov ecx, 0xf8
call fcn.0041fad8
cmp dword [ebp - 0x140], 0x4550
je 0x420155
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4202ff
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x10c]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x42018c
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x42019d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4202ff
push 0x11
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
push 0x40
push 0x1000
mov eax, dword [ebp - 0xf0]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
push 0x40
push 0x1000
mov eax, dword [ebp - 0xec]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xec]
mov edx, esi
mov eax, edi
call fcn.0041fad8
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov edi, ebx
mov dword [ecx + 0x34], edi
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x140]
mov eax, 0x3d
push dword [edx + eax*4]
dec eax
jns 0x420237
push esi
call fcn.0041faf0
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10c]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test eax, eax
je 0x420268
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0041fbe0
mov eax, dword [ebp - 8]
push eax
call fcn.0041fcc8
test al, al
jne 0x42027a
call fcn.0041f9bc
mov al, byte [ebp + 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0041fefc
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4202d5
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 0x4202b2
call fcn.0041f9bc
cmp byte [ebp + 0x1c], 0
je 0x4202ce
push 0
push 1
push edi
call esi
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4202ce
call fcn.0041f9bc
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4202f9
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42031c
lea eax, [ebp + 8]
call fcn.00403b54
ret