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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005684d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov edi, dword [0x1006ef68]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, 0x112652c
push eax
push 0x40
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
cmp dword [ebp - 0x1c], 0
jne 0x1004786e
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10042530
mov eax, esi
jmp 0x10047994
mov edi, dword [0x1006ef68]
lea ecx, [ebp - 0x18]
push ecx
push ecx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x28
add edi, 0x112652c
mov dword [ebp - 0x1c], 0
push edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], edi
call fcn.10042460
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
sub esi, edx
sar esi, 2
test esi, esi
je 0x100478bf
nop dword [eax]
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x100478b0
mov dword [ebp - 0x18], eax
test edx, edx
je 0x100478f5
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100478eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100478eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov esi, dword [0x1006ef68]
lea ecx, [ebp - 0x34]
push ecx
push ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x2c
push edx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], 0
add esi, 0x112652c
call fcn.10042460
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x50]
sub eax, edx
sar eax, 2
test eax, eax
je 0x10047942
mov edi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x10047933
mov edi, dword [ebp - 0x18]
test edx, edx
je 0x10047978
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004796e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004796e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov ecx, dword [ebp - 0x30]
sub esp, 8
mov edx, edi
push esi
call fcn.10044f90
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.10042530
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret