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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
mov eax, 0x59ab18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.0054e578
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.004eb77c
add esp, 8
movzx edx, word [ebp - 0x48]
push edx
lea ecx, [ebp - 0x17c]
push ecx
push edi
call fcn.004eb794
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.0054dc64
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.004eb7e8
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.0054e144
mov edx, dword [ebp + 0x14]
add esp, 0xc
mov dword [edx], 2
mov dl, 1
mov word [ebp - 0x2c], 0x14
mov eax, dword [0x535c44]
call fcn.00409d30
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.00538ae8
mov word [ebp - 0x2c], 8
jmp 0x4eb146
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 0x4eb172
test cl, cl
je 0x4eb1ad
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4eb172
add eax, 2
add edx, 2
test cl, cl
jne 0x4eb156
je 0x4eb1ad
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4eb19c
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 0x4eb2e1
mov ecx, dword [ebx + 0x14]
push ecx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 4]
push edx
push esi
call fcn.0054e0d4
add esp, 0xc
xor edi, edi
lea eax, [ebx + 0x10]
cmp edi, dword [ebp - 0x44]
mov ebx, eax
jge 0x4eb237
cmp dword [ebx], 0
jne 0x4eb20b
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4eb1fa
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 0x4eb2e1
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.0054e0d4
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 0x4eb1cd
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.004eaf94
add esp, 0x10
mov ecx, dword [ebp - 0xfc]
add ecx, esi
push ecx
push esi
mov eax, dword [ebp + 8]
push eax
call fcn.004eaeac
add esp, 0xc
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4eb29d
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