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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5f50
push 0x4d5125
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
or dword [ebp - 0x3c], 0xffffffff
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x58], edx
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
cmp esi, edx
jne 0x4d45ba
cmp dword [ebp + 0xc], edx
jne 0x4d45ba
mov dword [ebp - 0x3c], VariantClear
jmp 0x4d4717
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x6c], eax
lea edx, [eax + eax]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], esi
mov ecx, dword [esi + 0x3c]
add ecx, esi
mov dword [ebp - 0x60], ecx
mov ebx, dword [ecx + 0x50]
mov dword [ebp - 0x28], ebx
mov ecx, dword [ecx + 0x34]
mov dword [ebp - 0x68], ecx
mov edi, 0x58acd2
mov dword [ebp - 0x34], edi
mov ecx, dword [0x58ad0e]
lea ecx, [ecx + 0x58acd2]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ecx + 0x50]
mov dword [ebp - 0x64], ecx
add edx, eax
add edx, ebx
lea ebx, [edx + ecx + 4]
mov dword [ebp - 0x5c], ebx
push 0x1c
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d4717
cmp dword [ebp - 0x48], 0x10000
jne 0x4d4645
cmp ebx, dword [ebp - 0x4c]
jae 0x4d4645
push 0x40
push 0x1000
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4d466e
push 0x40
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4d466e
mov dword [ebp - 0x3c], 0x80000080
jmp 0x4d4717
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push esi
push ebx
push dword [ebp - 0x20]
call fcn.004d494b
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d4717
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x68]
je 0x4d46a6
push eax
push 0
push eax
call fcn.004d4cf1
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d4717
push dword [ebp - 0x30]
call fcn.004d4bc5
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d4717
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.004d4cf1
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d4717
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
test byte [ebp + 0x13], 0x40
je 0x4d4704
lea ecx, [ebp - 0x2c]
push ecx
xor esi, esi
push esi
push dword [ebp - 0x20]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x14]
cmp ecx, esi
je 0x4d46fb
mov dword [ecx], eax
jmp 0x4d4717
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d4717
push dword [ebp - 0x20]
call eax
pop ecx
jmp 0x4d4717
or dword [ebp - 4], 0xffffffff
xor esi, esi
cmp dword [ebp - 0x3c], esi
je 0x4d4739
cmp dword [ebp - 0x20], esi
je 0x4d4739
push 0x10000
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10