Function at 0x418db0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject pe
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c0
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, ecx
mov dword [ebp - 0x5b8], edx
push edi
xor esi, esi
mov dword [ebp - 0x5a8], eax
mov dword [ebp - 0x5b4], 0
mov edi, 0x2bc
mov dword [ebp - 0x5c0], esi
call fcn.00418d10
cmp eax, 0x40
jne 0x418e3b
mov edi, 0x2bd
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00418d10
cmp eax, 0x40
je 0x418e3b
push 0x10
push 0x4a550c
push str.You_must_run_64_bit_version_of_MPQEditor_to_do_this.
push dword [0x4b3e5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
mov eax, 0x3eb
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x5a4]
mov edx, edi
push eax
push str.RT_BINARY
call fcn.00418960
mov ebx, eax
lea eax, [ebp - 0x5a0]
push eax
mov eax, dword [ebp + 0xc]
push str.RT_BINARY
movzx edx, ax
call fcn.00418960
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x10
mov dword [ebp - 0x5b0], eax
test ebx, ebx
je 0x419158
test eax, eax
je 0x419158
mov eax, dword [ebp - 0x5a4]
mov edi, dword [ebp - 0x5a0]
add eax, 0xff
add edi, 0xfff
and eax, 0xffffff00
and edi, 0xfffff000
mov dword [ebp - 0x5bc], eax
add edi, eax
push edi
push 8
push dword [0x4b2a38]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x5ac], eax
test eax, eax
je 0x419145
push dword [ebp - 0x5a4]
push ebx
push eax
call fcn.0047e060
push dword [ebp - 0x5a0]
mov eax, dword [ebp - 0x5bc]
push dword [ebp - 0x5b0]
add eax, dword [ebp - 0x5ac]
push eax
call fcn.0047e060
add esp, 0x18
push 0x40
push 0x1000
push edi
push 0
push dword [ebp - 0x5a8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x5a0], eax
test eax, eax
je 0x41911b
lea ecx, [ebp - 0x5b4]
push ecx
push edi
push dword [ebp - 0x5ac]
push eax
push dword [ebp - 0x5a8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 0x5b4], edi
jne 0x419114
mov ecx, dword [ebp - 0x5a4]
mov eax, ebx
mov edi, dword [ebp - 0x5b8]
add ecx, ebx
test edi, edi
jne 0x418ff6
cmp ebx, ecx
jae 0x418f7b
cmp dword [eax], 0x64726854
jne 0x418f74
cmp dword [eax + 4], 0x636f7250
je 0x418f8d
add eax, 8
cmp eax, ecx
jb 0x418f63
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x7f
jmp 0x419123
mov ecx, dword [ebp - 0x5a0]
sub eax, ebx
add ecx, 8
add eax, ecx
je 0x418f83
lea ecx, [ebp - 0x5c0]
push ecx
push 0
push 0
push eax
push 0
push 0
push dword [ebp - 0x5a8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x418fd0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x8000
push 0
push dword [ebp - 0x5a0]
push dword [ebp - 0x5a8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x419123
cmp ebx, ecx
jae 0x418f7b
nop word [eax + eax]
cmp dword [eax], 0x6e69614d
jne 0x419011
cmp dword [eax + 4], 0x636f7250
je 0x41902a
add eax, 8
cmp eax, ecx
jb 0x419000
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x7f
jmp 0x419123
mov esi, dword [ebp - 0x5a0]
sub eax, ebx
add esi, 8
add esi, eax
je 0x418f83
push 0
lea eax, [ebp - 0x5a4]
mov dword [ebp - 0x5a0], 0
push eax
push str.Wow64SetThreadContext
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x5a4], 0
push eax
push str.Wow64GetThreadContext
push str.kernel32.dll
call fcn.004774c0
add esp, 0x18
push dword [ebp - 0x5a8]
call fcn.004773e0
test al, al
je 0x4190d5
push 0x2c8
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2d0], 0x10007
push 0
push eax
call fcn.0047df00
add esp, 0xc
lea eax, [ebp - 0x2d0]
push eax
push edi
call dword [ebp - 0x5a0]
test eax, eax
je 0x41911b
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x220], esi
push eax
push edi
call dword [ebp - 0x5a4]
test eax, eax
je 0x41911b
xor esi, esi
jmp 0x419123
lea eax, [ebp - 0x59c]
mov dword [ebp - 0x59c], 0x1003f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x41910d
lea eax, [ebp - 0x59c]
mov dword [ebp - 0x4ec], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x41910d
xor esi, esi
jmp 0x419123
mov esi, 0x78
jmp 0x419123
mov esi, 0x1d
jmp 0x419123
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x5ac]
push 0
push dword [0x4b2a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x5b0]
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x419161
mov eax, dword [ebp - 0x5b0]
mov esi, 8
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x419161
mov esi, 0x138f
test eax, eax
je 0x419172
push eax
push 0
push dword [0x4b2a38]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x419181
push ebx
push 0
push dword [0x4b2a38]
call ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0047c26b
mov esp, ebp
pop ebp
ret