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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010f3b5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1012e010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x1013c3b8], 1
jne 0x1001298e
push 2
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0x101219e0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.100101d0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push dword [0x10130420]
lea ecx, [ebp - 0x48]
call fcn.1000d660
push 0x10012490
push str.SetPetSize
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10012c40
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x100125e4
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100125da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100129a8
push edx
push ecx
call fcn.100820e9
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x10012631
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012627
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100129a8
push edx
push ecx
call fcn.100820e9
add esp, 8
push 2
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0x101219e0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.100101d0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
push dword [0x10130420]
lea ecx, [ebp - 0x48]
call fcn.1000d660
push 0x10012270
push str.SetMaxCharacter
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10012e90
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x100126bf
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100126b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100129ad
push edx
push ecx
call fcn.100820e9
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x1001270c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100129ad
push edx
push ecx
call fcn.100820e9
add esp, 8
push dword [0x10130420]
mov ecx, 0x10130418
call fcn.10041cb0
push dword [0x10130420]
call fcn.100477d0
push dword [0x10130420]
call fcn.1004faa0
push str.Data__Local__General__Lua__CharacterSystem__CharacterList.lua
mov ecx, 0x1013041c
call fcn.10040410
push fcn.100129c0
push 0x663e8c
push 0xe8
call fcn.1007ca60
push 0x10012bd0
push 0x663e9d
push 0xe8
call fcn.1007ca60
push 0x100124c0
push 0x4d712a
push 0xe8
call fcn.1007ca60
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
add esp, 0x24
push eax
push 0x40
push 4
push 0x4d6c73
call esi
lea eax, [ebp - 0x14]
mov dword [0x4d6c73], 0
push eax
push dword [ebp - 0x14]
push 4
push 0x4d6c73
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x402106
call esi
lea eax, [ebp - 0x14]
mov byte [0x402106], 0
push eax
push dword [ebp - 0x14]
push 1
push 0x402106
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x4053a3
call esi
lea eax, [ebp - 0x14]
mov dword [0x4053a3], 0xe35fb
push eax
push dword [ebp - 0x14]
push 4
push 0x4053a3
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x401d30
call esi
lea eax, [ebp - 0x14]
mov dword [0x401d30], 0xe35fb
push eax
push dword [ebp - 0x14]
push 4
push 0x401d30
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x4d7530
call esi
lea eax, [ebp - 0x14]
mov dword [0x4d7530], 0xe35fb
push eax
push dword [ebp - 0x14]
push 4
push 0x4d7530
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x4d7564
call esi
lea eax, [ebp - 0x14]
mov dword [0x4d7564], 0xe35fb
push eax
push dword [ebp - 0x14]
push 4
push 0x4d7564
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0x20d
push 0x405380
call esi
push 0x20d
push 0x90
push 0x405380
call fcn.100cfd50
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 0x20d
push 0x405380
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push 0x4d74ce
call esi
mov eax, 0x4d74ce
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 5
push 0x4d74ce
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push 0x4d7568
call esi
mov eax, 0x4d7568
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 5
push 0x4d7568
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push 0x4d7465
call esi
mov eax, 0x4d7465
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 5
push 0x4d7465
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x4d7183
call esi
lea eax, [ebp - 0x14]
mov byte [0x4d7183], 0
push eax
push dword [ebp - 0x14]
push 1
push 0x4d7183
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x4d7179
call esi
lea eax, [ebp - 0x14]
mov dword [0x4d7179], 0x1e0
push eax
push dword [ebp - 0x14]
push 4
push 0x4d7179
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10081d3c
mov esp, ebp
pop ebp
ret
call fcn.100e403e
call fcn.100e403e
int3