Function at 0x4d9a37
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 0x4faf50
push 0x4da5fc
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 0x4d9a91
cmp dword [ebp + 0xc], edx
jne 0x4d9a91
mov dword [ebp - 0x3c], VariantClear
jmp 0x4d9bee
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, 0x58fdfb
mov dword [ebp - 0x34], edi
mov ecx, dword [0x58fe37]
lea ecx, [ecx + 0x58fdfb]
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 0x4d9bee
cmp dword [ebp - 0x48], 0x10000
jne 0x4d9b1c
cmp ebx, dword [ebp - 0x4c]
jae 0x4d9b1c
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 0x4d9b45
push 0x40
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4d9b45
mov dword [ebp - 0x3c], 0x80000080
jmp 0x4d9bee
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.004d9e22
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d9bee
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x68]
je 0x4d9b7d
push eax
push 0
push eax
call fcn.004da1c8
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d9bee
push dword [ebp - 0x30]
call fcn.004da09c
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d9bee
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.004da1c8
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d9bee
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 0x4d9bdb
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 0x4d9bd2
mov dword [ecx], eax
jmp 0x4d9bee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d9bee
push dword [ebp - 0x20]
call eax
pop ecx
jmp 0x4d9bee
or dword [ebp - 4], 0xffffffff
xor esi, esi
cmp dword [ebp - 0x3c], esi
je 0x4d9c10
cmp dword [ebp - 0x20], esi
je 0x4d9c10
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