Function at 0x10013160
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 0x101105ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x44
mov eax, dword [0x10130018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x10131104]
call fcn.1004db50
push str.MCustoms__Lua__CharacterSystem__CharacterCreateCape.lua
mov ecx, 0x10131100
call fcn.1003b3b0
mov esi, dword [0x10131104]
lea ecx, [ebp - 0x2c]
push 9
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.CapeStack
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.1000cdc0
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.100134e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10013231
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10013227
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100134cc
push ecx
push edx
call fcn.10081bcf
add esp, 8
cmp dword [0x10139780], 0x10
lea ecx, [ebp - 0x24]
mov esi, dword [ebp - 0x34]
mov eax, 0x1013976c
cmovae eax, dword [0x1013976c]
push ecx
push eax
push esi
mov dword [ebp - 0x24], 0x10123278
mov dword [ebp - 0x20], 0x10013d80
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.100863a0
add esp, 0xc
push 0xfffffffffffffffe
push esi
call fcn.10084090
lea ecx, [ebp - 0x34]
call fcn.10013eb0
sub esp, 8
lea ecx, [ebp - 0x34]
call fcn.10014160
sub esp, 8
lea ecx, [ebp - 0x34]
call fcn.10014410
sub esp, 8
lea ecx, [ebp - 0x34]
call fcn.100146c0
push dword [0x10131104]
call fcn.1003c1c0
mov ecx, dword [0x10131104]
call fcn.1004ffb0
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x10123154
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.1000cdc0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
push dword [0x10131104]
lea ecx, [ebp - 0x50]
call fcn.10007e90
sub esp, 8
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.10013ae0
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x10013337
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001332d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100134d1
push ecx
push edx
call fcn.10081bcf
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0x10
jb 0x1001337d
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10013373
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100134d1
push ecx
push edx
call fcn.10081bcf
add esp, 8
push 0x100129c0
push 0x57232e
push 0xe9
call fcn.10067c50
add esp, 0xc
push 0x10012a70
push 0x5757d4
push 0xe9
call fcn.10067c50
add esp, 0xc
push 0x10012ae0
push 0x574667
push 0xe9
call fcn.10067c50
add esp, 0xc
push 0x10012b50
push 0x5750fb
push 0xe9
call fcn.10067c50
add esp, 0xc
push 0x10012c30
push 0x5fa844
push 0xe9
call fcn.10067c50
add esp, 0xc
push 0x10012d90
push 0x5658b6
push 0xe9
call fcn.10067c50
add esp, 0xc
push 0x10012e60
push 0x8362a2
push 0xe9
call fcn.10067c50
add esp, 0xc
push 0x10012eb0
push 0x83640e
push 0xe9
call fcn.10067c50
add esp, 0xc
push 0x10012f00
push 0x57605b
push 0xe9
call fcn.10067c50
add esp, 0xc
push 0x10012f40
push 0x576144
push 0xe9
call fcn.10067c50
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x30]
add esp, 0xc
push eax
push 0x40
push 6
push 0x51ec76
call esi
mov eax, 0x51ec76
mov ecx, 0x90909090
mov dword [eax], ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push 6
push 0x51ec76
call esi
push 0x10012fb0
push 0x51ec76
push 0xe9
call fcn.10067c50
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100818a7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100e4eb1
call fcn.100e4eb1
int3