Function at 0x4d3cee
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 0x4f4f50
push 0x4d48b3
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 0x4d3d48
cmp dword [ebp + 0xc], edx
jne 0x4d3d48
mov dword [ebp - 0x3c], VariantClear
jmp 0x4d3ea5
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, 0x51e741
mov dword [ebp - 0x34], edi
mov ecx, dword [0x51e77d]
lea ecx, [ecx + 0x51e741]
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 0x4d3ea5
cmp dword [ebp - 0x48], 0x10000
jne 0x4d3dd3
cmp ebx, dword [ebp - 0x4c]
jae 0x4d3dd3
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 0x4d3dfc
push 0x40
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4d3dfc
mov dword [ebp - 0x3c], 0x80000080
jmp 0x4d3ea5
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.004d40d9
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d3ea5
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x68]
je 0x4d3e34
push eax
push 0
push eax
call fcn.004d447f
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d3ea5
push dword [ebp - 0x30]
call fcn.004d4353
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d3ea5
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.004d447f
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d3ea5
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 0x4d3e92
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 0x4d3e89
mov dword [ecx], eax
jmp 0x4d3ea5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d3ea5
push dword [ebp - 0x20]
call eax
pop ecx
jmp 0x4d3ea5
or dword [ebp - 4], 0xffffffff
xor esi, esi
cmp dword [ebp - 0x3c], esi
je 0x4d3ec7
cmp dword [ebp - 0x20], esi
je 0x4d3ec7
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