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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1012f018]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x4cda10
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x30]
call eax
push esi
mov edx, 0x969c50
mov ecx, eax
call edx
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x1002103a
push edi
mov eax, 0x556bd0
call eax
add esp, 4
lea eax, [eax + eax*8]
movzx edx, byte [ebx + eax*4 + 0x1c5]
imul ecx, edx, 0x8c
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
cmp byte [ecx + eax + 0x22], 0
jne 0x1002103a
movsx eax, word [esi + 0x22]
cmp edx, eax
jg 0x1002103a
cmp byte [ebx + 0x22], 8
jne 0x10020a08
cmp dword [0xe609e8], 2
je 0x10020a08
push 0
push 0
push 0x71
mov eax, 0x6d6c20
call eax
add esp, 0xc
mov eax, dword [0x8128ac8]
movzx eax, byte [eax + 0xb]
and eax, 7
cmp eax, 6
ja case.default.0x10020a20
movzx eax, byte [eax + 0x10021054]
jmp dword [eax*4 + 0x1002104c]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x20]
push eax
push 0x40
push 4
push 0x59c6fe
call esi
mov dword [0x59c6fe], 0
jmp 0x10020a69
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x20]
push eax
push 0x40
push 4
push 0x59c6fe
call esi
mov dword [0x59c6fe], 0x12c
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x24]
push 4
push 0x59c6fe
call esi
mov cl, byte [ebx + 0x22]
mov dword [esp + 0x30], 0
mov al, cl
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
cmp cl, 2
jb 0x10020e07
cmp cl, 8
ja 0x10020e07
lea esi, [edi + 0x108]
mov dword [esp + 0xc], 3
nop dword [eax + eax]
movss xmm0, dword [edi + 0xfc]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [edi + 0x100]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [edi + 0x104]
addss xmm0, dword [0x1012437c]
movss dword [esp + 0x38], xmm0
call fcn.100d373e
cdq
mov ecx, 0x259
idiv ecx
sub edx, 0x12c
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x30]
movss dword [esp + 0x3c], xmm0
call fcn.100d373e
cdq
mov ecx, 0x259
idiv ecx
sub edx, 0x12c
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x34]
movss dword [esp + 0x40], xmm0
call fcn.100d373e
cdq
mov ecx, 0x259
idiv ecx
sub edx, 0x12c
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x38]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [edi + 0x110]
mulss xmm0, dword [0x10124244]
movss dword [esp + 0x24], xmm0
call fcn.100210a0
mulss xmm0, dword [0x101243cc]
movss xmm1, dword [esp + 0x3c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x3c], xmm1
call fcn.10021080
mulss xmm0, dword [0x101243cc]
mov dword [edi + 0x34], 0
movzx eax, word [ebx + 0x22c]
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x50], 0x3f800000
addss xmm0, dword [esp + 0x40]
movss dword [esp + 0x40], xmm0
cmp ax, 0xffff
je 0x10020dc5
lea ecx, [esp + 0x2c]
cwde
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], 0
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], 0
push ecx
push eax
push str.i_ifff
push str.DeathStabEffect
push 0x10136628
mov dword [esp + 0x4c], 0
call fcn.100385c0
mov eax, dword [esp + 0x44]
add esp, 0x20
movss xmm1, dword [esp + 0x20]
movss xmm2, dword [esp + 0x28]
movss xmm3, dword [esp + 0x2c]
movss dword [esp + 0x48], xmm1
movss dword [esp + 0x4c], xmm2
movss dword [esp + 0x50], xmm3
mov dword [edi + 0x34], eax
test eax, eax
je 0x10020dc5
mov ecx, 0x87c5708
nop dword [eax + eax]
cmp byte [ecx], 0
je 0x10020cb8
add ecx, 0xa18
cmp ecx, 0x8900de8
jl 0x10020ca0
jmp 0x10020df9
movss xmm0, dword [esp + 0x30]
mov edx, 0xffff
movss dword [ecx + 0x18], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [ecx + 0x1c], xmm0
movss xmm0, dword [esp + 0x38]
movss dword [ecx + 0x20], xmm0
movss xmm0, dword [esp + 0x3c]
mov dword [ecx + 8], 0x142
mov dword [ecx + 0x54], 0
mov byte [ecx], 1
mov dword [ecx + 4], 0x142
mov dword [ecx + 0xc], 2
mov word [ecx + 0x10], 0x301
mov byte [ecx + 0x9d4], 0
mov dword [ecx + 0x9e8], edx
mov dword [ecx + 0x9d8], 0
mov word [ecx + 0x9f5], 0x100
mov byte [ecx + 0x64], 0
mov byte [ecx + 0x9f4], 0
mov byte [ecx + 0xa0c], 0
mov word [ecx + 0xa14], dx
mov eax, dword [esi]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0x34], eax
mov eax, dword [esi + 8]
movss dword [ecx + 0x58], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [ecx + 0x5c], xmm0
movss xmm0, dword [esp + 0x44]
mov dword [ecx + 0x38], eax
movss dword [ecx + 0x48], xmm1
movss dword [ecx + 0x4c], xmm2
movss dword [ecx + 0x50], xmm3
mov dword [ecx + 0x9dc], 0
mov dword [ecx + 0x9e0], 0
mov dword [ecx + 0x9e4], 0
mov dword [ecx + 0x54], edi
mov dword [ecx + 0x68], 0
movss dword [ecx + 0x60], xmm0
mov dword [ecx + 0x9d0], 0x14
mov dword [ecx + 0x6c], 5
mov eax, dword [edi + 0x34]
mov dword [ecx + 8], eax
mov dword [ecx + 0x14], 0x42200000
jmp 0x10020df9
push 0
lea eax, [esp + 0x4c]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
push ecx
mov dword [esp], 0x42200000
lea eax, [esp + 0x58]
push edi
push 2
push esi
push eax
lea eax, [esp + 0x5c]
push eax
push 0x142
mov eax, 0x72d1b0
call eax
add esp, 0x34
sub dword [esp + 0xc], 1
jne 0x10020af0
mov al, byte [ebx + 0x22]
mov edx, 0x4cd7f0
mov esi, 0x545030
cmp al, 8
ja 0x10020eab
mov eax, dword [esp + 0x18]
mov ecx, edi
movzx eax, byte [ebx + eax*4 + 0x1c5]
push eax
call edx
test eax, eax
je 0x1002103a
push 1
lea esi, [edi + 0xb4]
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, 0x545030
call eax
movss xmm0, dword [edi + 0x110]
mulss xmm0, dword [0x10124244]
movss dword [esp + 0xc], xmm0
call fcn.100210a0
mulss xmm0, dword [0x101243ac]
addss xmm0, dword [esi]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0xc]
call fcn.10021080
mulss xmm0, dword [0x101243ac]
mov edx, 0x4cd7f0
mov esi, 0x545030
movss xmm1, dword [edi + 0xb8]
subss xmm1, xmm0
movss dword [edi + 0xb8], xmm1
mov al, byte [ebx + 0x22]
sub al, 6
cmp al, 6
ja 0x10021030
mov eax, dword [esp + 0x18]
mov ecx, edi
movzx eax, byte [ebx + eax*4 + 0x1c5]
push eax
call edx
test eax, eax
je 0x1002103a
push 1
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call esi
movss xmm1, dword [edi + 0x110]
cvtps2pd xmm1, xmm1
movzx eax, byte [ebx + 0x22]
sub eax, 8
mov dword [esp + 0x30], 0x3f800000
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
movd xmm0, eax
mulsd xmm1, qword [0x10124298]
cvtdq2ps xmm0, xmm0
divsd xmm1, qword [0x101242e0]
mulss xmm0, dword [0x10124314]
movsd qword [esp + 0x18], xmm1
addss xmm0, dword [0x10124374]
movss dword [esp + 0x5c], xmm0
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movaps xmm0, xmm1
call fcn.1010a2b0
movss xmm1, dword [esp + 0x54]
mulsd xmm0, qword [esp + 0x10]
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [esp + 0x18]
movss dword [esp + 0x54], xmm1
call fcn.10109e60
movss xmm1, dword [esp + 0x58]
lea eax, [esp + 0x30]
mulsd xmm0, qword [esp + 0x10]
lea esi, [edi + 0x108]
push 0xffffffffffffffff
push ecx
mov dword [esp], 0
push 0
push 0
cvtps2pd xmm1, xmm1
push 0
push 0xffffffffffffffff
push edi
push 1
push eax
push esi
subsd xmm1, xmm0
lea eax, [esp + 0x7c]
push eax
push 0xa93
mov eax, 0x6d9070
cvtpd2ps xmm0, xmm1
movss dword [esp + 0x88], xmm0
call eax
add esp, 0x30
lea eax, [esp + 0x30]
push 0xffffffffffffffff
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 1
push eax
push esi
lea eax, [esp + 0x7c]
push eax
push 0xa93
mov eax, 0x6d9070
call eax
movzx esi, word [ebx + 0x80]
add esp, 0x30
mov eax, 0x402bc0
call eax
push esi
mov edx, 0x96a4c0
mov ecx, eax
call edx
test eax, eax
je 0x10021030
cmp byte [ebx + 0x22], 0xa
jb 0x10021030
cmp byte [eax + 0x30c], 0
je 0x10021030
mov byte [eax + 0x325], 0x23
cmp byte [ebx + 0x22], 0xc
jb 0x1002103a
mov byte [ebx + 0x22], 0xf
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007bf15
mov esp, ebp
pop ebp
ret