Function at 0x4026e0
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
mov dword [ebp - 0x154], 0
mov dword [0x10ce358], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [0x10ce358]
mov dword [0x10ce358], eax
mov eax, dword [0x10ce358]
sub eax, dword [0x10ce35c]
mov dword [0x10ce358], eax
push 0
push 0
call fcn.00401060
push 0x40
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x150]
push edx
call fcn.004f83c0
add esp, 0xc
movzx eax, word [ebp - 0x150]
cmp eax, 0x5a4d
je 0x402754
xor eax, eax
jmp 0x402a98
mov dword [0x10ce358], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [0x10ce358]
mov dword [0x10ce358], eax
mov ecx, dword [0x10ce358]
sub ecx, dword [0x10ce35c]
mov dword [0x10ce358], ecx
push 0xf8
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.004f83c0
add esp, 0xc
cmp dword [ebp - 0x108], 0x4550
je 0x4027b2
xor eax, eax
jmp 0x402a98
mov dword [ebp - 0x158], 0
push 0x40
push 0x2000
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x402802
push 0x40
push 0x2000
mov eax, dword [ebp - 0xb8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x402812
xor eax, eax
jmp 0x402a98
mov dword [0x10ce358], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [0x10ce358]
mov dword [0x10ce358], eax
mov ecx, dword [0x10ce358]
sub ecx, dword [0x10ce35c]
mov dword [0x10ce358], ecx
push 0x40
push 0x1000
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x1000
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004f83c0
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x158]
mov dword [ecx + 0x34], edx
mov dword [0x10ce358], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [0x10ce358]
mov dword [0x10ce358], eax
mov eax, dword [0x10ce358]
sub eax, dword [0x10ce35c]
mov dword [0x10ce358], eax
mov ecx, dword [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0xc]
push edx
sub esp, 0xf8
mov ecx, 0x3e
lea esi, [ebp - 0x108]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
push eax
call fcn.00401ea0
cmp dword [ebp + 0x10], 0
jne 0x402910
mov ecx, dword [ebp - 0x158]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0xd4]
mov dword [ebp - 4], edx
je 0x402932
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402080
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00402170
test eax, eax
jne 0x402968
cmp dword [ebp - 0x158], 0
je 0x402968
push 0x4000
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x10ce358], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [0x10ce358]
mov dword [0x10ce358], eax
mov ecx, dword [0x10ce358]
sub ecx, dword [0x10ce35c]
mov dword [0x10ce358], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402560
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x28], 0
je 0x402a10
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x158]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x10c], edx
je 0x402a10
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x158]
jbe 0x402a10
mov dword [0x10ce358], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [0x10ce358]
mov dword [0x10ce358], eax
mov ecx, dword [0x10ce358]
sub ecx, dword [0x10ce35c]
mov dword [0x10ce358], ecx
pushal
push 0
push 1
push dword [ebp - 0x158]
mov eax, dword [ebp - 0x10c]
call eax
mov dword [ebp - 0x154], eax
popal
mov dword [0x10ce358], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [0x10ce358]
mov dword [0x10ce358], eax
mov edx, dword [0x10ce358]
sub edx, dword [0x10ce35c]
mov dword [0x10ce358], edx
cmp dword [ebp - 0x154], 0
je 0x402a50
mov eax, dword [ebp - 0x158]
jmp 0x402a98
push 0x4000
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x10ce358], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [0x10ce358]
mov dword [0x10ce358], eax
mov edx, dword [0x10ce358]
sub edx, dword [0x10ce35c]
mov dword [0x10ce358], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc