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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
mov eax, 0x598604
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.0054c16c
mov word [ebp - 0x2c], 8
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [edx], ecx
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004eb3d0
add esp, 8
movzx edx, word [ebp - 0x48]
push edx
lea ecx, [ebp - 0x17c]
push ecx
push edi
call fcn.004eb3e8
movzx eax, word [ebp - 0x176]
mov dword [ebp - 0x44], eax
add esp, 0xc
mov edx, dword [ebp - 0x44]
shl edx, 3
lea edx, [edx + edx*4]
push edx
call fcn.0054b858
mov ebx, eax
mov eax, dword [ebp - 0x44]
pop ecx
push eax
movzx edx, word [ebp - 0x48]
add edx, 0xf8
push edx
push ebx
push edi
call fcn.004eb43c
add esp, 0x10
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x12c]
push ecx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [ebp - 0x12c]
push eax
push 0
push esi
call fcn.0054bd38
mov edx, dword [ebp + 0x14]
add esp, 0xc
mov dword [edx], 2
mov dl, 1
mov word [ebp - 0x2c], 0x14
mov eax, dword [0x534b4c]
call fcn.00409d18
mov dword [ebp - 0x40], eax
mov edx, edi
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0x10]
mov edi, dword [eax]
call dword [edi + 8]
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.005379f0
mov word [ebp - 0x2c], 8
jmp 0x4ead9a
mov ecx, dword [ebp + 0x14]
mov eax, ebx
mov edx, str..text
mov dword [ecx], 3
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4eadc6
test cl, cl
je 0x4eae01
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4eadc6
add eax, 2
add edx, 2
test cl, cl
jne 0x4eadaa
je 0x4eae01
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4eadf0
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov word [ebp - 0x2c], 0x2c
mov edx, 3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x20
xor eax, eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x4eaf35
mov ecx, dword [ebx + 0x14]
push ecx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 4]
push edx
push esi
call fcn.0054bcc8
add esp, 0xc
xor edi, edi
lea eax, [ebx + 0x10]
cmp edi, dword [ebp - 0x44]
mov ebx, eax
jge 0x4eae8b
cmp dword [ebx], 0
jne 0x4eae5f
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4eae4e
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x2c], 0x44
mov edx, 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x38
xor eax, eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x4eaf35
mov ecx, dword [ebx]
push ecx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 4]
add edx, dword [ebx + 4]
push edx
mov ecx, dword [ebx - 4]
add ecx, esi
push ecx
call fcn.0054bcc8
mov eax, dword [ebx - 4]
add esp, 0xc
add eax, esi
inc edi
mov dword [ebx - 8], eax
add ebx, 0x28
cmp edi, dword [ebp - 0x44]
jl 0x4eae21
mov edx, dword [ebp + 0x14]
mov dword [edx], 4
mov ecx, esi
sub ecx, dword [ebp - 0x148]
push ecx
mov eax, dword [ebp - 0xdc]
add eax, esi
push eax
push esi
mov edx, dword [ebp + 8]
push edx
call fcn.004eabe8
add esp, 0x10
mov ecx, dword [ebp - 0xfc]
add ecx, esi
push ecx
push esi
mov eax, dword [ebp + 8]
push eax
call fcn.004eab00
add esp, 0xc
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4eaef1
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov word [ebp - 0x2c], 0x5c
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x50
mov eax, dword [ebp - 0x154]
add eax, esi
push 0
push 1
push esi
call eax
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [edx], ecx
mov eax, esi
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x4eaf35
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret