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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, edx
push edi
test ecx, ecx
je 0x45c703
test esi, esi
je 0x45c703
mov eax, dword [esi]
push 0x8000
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
js 0x45c6f0
mov eax, dword [esi + 8]
push 2
push ebx
push ebx
push esi
call eax
mov ecx, dword [esi + 8]
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0x144], eax
call ecx
add esp, 0x20
or eax, edx
jne 0x45c6e7
push 0x40
lea eax, [ebp - 0x48]
push eax
mov eax, dword [esi + 4]
push esi
call eax
add esp, 0xc
cmp eax, 0x40
jne 0x45c6e7
mov eax, 0x5a4d
cmp word [ebp - 0x48], ax
jne 0x45c6e7
mov eax, dword [esi + 8]
push ebx
push ebx
push dword [ebp - 0xc]
push esi
call eax
add esp, 0x10
cmp eax, dword [ebp - 0xc]
jne 0x45c6e7
test edx, edx
jne 0x45c6e7
push 0xf8
lea eax, [ebp - 0x140]
push eax
mov eax, dword [esi + 4]
push esi
call eax
add esp, 0xc
cmp eax, 0xf8
jne 0x45c6e7
cmp dword [ebp - 0x140], 0x4550
jne 0x45c6e7
movzx ecx, word [ebp - 0x12c]
mov edi, dword [ebp - 0xc]
add ecx, 0x18
mov eax, dword [esi + 8]
add edi, ecx
push ebx
push ebx
push edi
push esi
call eax
add esp, 0x10
cmp eax, edi
jne 0x45c6e7
test edx, edx
jne 0x45c6e7
movzx eax, word [ebp - 0x13a]
lea edi, [eax + eax*4]
shl edi, 3
lea eax, [edi + 0x28]
push eax
call fcn.0060a1f7
add esp, 4
mov dword [ebp - 0x148], eax
test eax, eax
je 0x45c6e7
mov ecx, dword [esi + 4]
push edi
push eax
push esi
call ecx
add esp, 0xc
cmp eax, edi
jne 0x45c6d9
movzx eax, word [ebp - 0x13a]
xorps xmm0, xmm0
mov ebx, dword [ebp - 0x148]
test edi, edi
mov ecx, dword [ebp - 0x144]
push 0x40
lea eax, [eax + eax*4]
movups xmmword [ebx + eax*8], xmm0
push 0x1000
movups xmmword [ebx + eax*8 + 0x10], xmm0
movq qword [ebx + eax*8 + 0x20], xmm0
movzx eax, word [ebp - 0x13a]
cmovne ecx, dword [ebp - 0xec]
lea eax, [eax + eax*4]
mov dword [ebx + eax*8 + 0x10], ecx
mov ecx, dword [ebp - 0x108]
movzx eax, word [ebp - 0x13a]
lea edx, [ecx - 1]
dec ecx
add edx, dword [ebx + 0x10]
lea eax, [eax + eax*4]
not ecx
and edx, ecx
mov dword [ebx + eax*8 + 8], edx
push dword [ebp - 0xf0]
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x144], ebx
test ebx, ebx
je 0x45c6d9
push dword [ebp - 0xf0]
push 0
push ebx
call fcn.005f46f0
mov cx, word [ebp - 0x13a]
add esp, 0xc
movzx eax, cx
xor ebx, ebx
add eax, 1
je 0x45c6ae
mov edi, dword [ebp - 0x148]
add edi, 0x14
nop dword [eax]
mov eax, dword [esi + 8]
push 0
push 0
push dword [edi]
push esi
call eax
add esp, 0x10
cmp eax, dword [edi]
jne 0x45c6a7
test edx, edx
jne 0x45c6a7
push dword [edi - 4]
mov eax, dword [edi - 8]
add eax, dword [ebp - 0x144]
push eax
mov eax, dword [esi + 4]
push esi
call eax
add esp, 0xc
cmp eax, dword [edi - 4]
jne 0x45c6a7
mov cx, word [ebp - 0x13a]
inc ebx
movzx eax, cx
add edi, 0x28
inc eax
cmp ebx, eax
jl 0x45c660
jmp 0x45c6ae
mov cx, word [ebp - 0x13a]
movzx eax, cx
xor ecx, ecx
inc eax
cmp ebx, eax
sete cl
test ecx, ecx
jne 0x45c6d3
push 0x8000
push ecx
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
xor ebx, ebx
jmp 0x45c6d9
mov ebx, dword [ebp - 0x144]
push dword [ebp - 0x148]
call fcn.005fa0fb
add esp, 4
mov eax, dword [esi + 0xc]
push esi
call eax
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aa758
mov esp, ebp
pop ebp
ret