Function at 0x47d6b4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
test dl, dl
je 0x47d6c7
add esp, 0xfffffff0
call fcn.004041b4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
xor eax, eax
push ebp
push 0x47d9b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41bac4]
call fcn.00403e60
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004210c8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push 0x40
push 0x1000
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
call fcn.004080b4
mov eax, dword [ebp - 0x18]
add eax, 4
add eax, 0x14
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 6]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jb 0x47d7e1
inc eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
shl eax, 3
lea eax, [eax + eax*4]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
call fcn.004080bc
push ebp
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.0047d688
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x14]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
call fcn.004080b4
inc dword [ebp - 0x28]
dec dword [ebp - 0x78]
jne 0x47d781
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xa0]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
jmp 0x47d877
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
add eax, 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
dec eax
test eax, eax
jb 0x47d871
inc eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x50]
test byte [eax + 1], 0xf0
je 0x47d860
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x50]
mov dx, word [edx]
and dx, 0xfff
movzx edx, dx
add eax, edx
mov edx, dword [ebp - 0x3c]
add dword [eax], edx
mov eax, dword [ebp - 0x50]
add eax, 2
mov dword [ebp - 0x50], eax
inc dword [ebp - 0x54]
dec dword [ebp - 0x78]
jne 0x47d83a
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x48]
ja 0x47d810
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov dl, 1
mov eax, dword [0x41af84]
call fcn.00403e60
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x47d970
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x47d8da
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x64]
call fcn.0041d9e8
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 4], 0
jne 0x47d8f1
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x68], eax
jmp 0x47d95f
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x68], eax
jmp 0x47d95f
mov eax, dword [ebp - 0x68]
test byte [eax + 3], 0x80
je 0x47d916
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
and eax, 0xffff
mov dword [ebp - 0x6c], eax
jmp 0x47d924
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x47d944
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x70]
mov dword [eax], edx
jmp 0x47d956
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0x68]
mov dword [edx], eax
mov eax, dword [ebp - 0x68]
add eax, 4
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
cmp dword [eax], 0
jne 0x47d8fe
mov eax, dword [ebp - 0x5c]
add eax, 0x14
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0xc], 0
jne 0x47d8ae
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x47d99a
push 0
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [ebp - 0x74]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d9c0
mov eax, dword [ebp - 0x10]
call fcn.00403e90
ret