Function at 0x10021640
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1012f040]
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 dword [esp + 0x10], eax
test eax, eax
je 0x10021d12
push edi
mov eax, 0x556bd0
call eax
mov dword [esp + 0x1c], eax
add esp, 4
lea eax, [eax + eax*8]
movzx esi, byte [ebx + eax*4 + 0x1c5]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
imul edx, esi, 0x8c
mov ecx, dword [eax + 0x2c]
cmp byte [edx + ecx + 0x22], 0
jne 0x10021d12
movsx eax, word [eax + 0x22]
cmp esi, eax
jg 0x10021d12
cmp byte [ebx + 0x22], 8
jne 0x100216de
cmp dword [0xe609e8], 2
je 0x100216de
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.0x100216f6
movzx eax, byte [eax + 0x10021d2c]
jmp dword [eax*4 + 0x10021d24]
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 0x1002173f
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 al, byte [ebx + 0x22]
sub al, 2
mov dword [esp + 0x30], 0
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 al, 6
ja 0x10021ad2
mov esi, 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 [0x10124a1c]
movss dword [esp + 0x38], xmm0
call fcn.100d7f0e
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.100d7f0e
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.100d7f0e
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 [0x101248e8]
movss dword [esp + 0x24], xmm0
call fcn.10021d80
mulss xmm0, dword [0x10124a6c]
movss xmm1, dword [esp + 0x3c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x3c], xmm1
call fcn.10021d60
mulss xmm0, dword [0x10124a6c]
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 0x10021a8f
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 0x10136688
mov dword [esp + 0x4c], 0
call fcn.10039cd0
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 0x10021a8f
mov ecx, 0x87c5708
nop dword [eax + eax]
cmp byte [ecx], 0
je 0x10021978
add ecx, 0xa18
cmp ecx, 0x8900de8
jl 0x10021960
jmp 0x10021ac9
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]
mov dword [ecx + 8], 0x142
mov dword [ecx + 0x54], 0
movss dword [ecx + 0x20], xmm0
movss xmm0, dword [esp + 0x44]
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 [edi + 0x108]
mov dword [ecx + 0x30], eax
mov eax, dword [edi + 0x10c]
mov dword [ecx + 0x34], eax
mov eax, dword [edi + 0x110]
movss dword [ecx + 0x48], xmm1
movss xmm1, dword [esp + 0x40]
movss dword [ecx + 0x4c], xmm2
movss xmm2, dword [esp + 0x3c]
mov dword [ecx + 0x38], eax
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 + 0x58], xmm2
movss dword [ecx + 0x5c], xmm1
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 0x10021ac9
push 0
lea eax, [esp + 0x4c]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
push ecx
mov dword [esp], 0x42200000
lea eax, [edi + 0x108]
push edi
push 2
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x5c]
push eax
push 0x142
mov eax, 0x72d1b0
call eax
add esp, 0x34
sub esi, 1
jne 0x100217b0
cmp byte [ebx + 0x22], 8
mov edx, 0x4cd7f0
mov esi, 0x545030
ja 0x10021b75
mov eax, dword [esp + 0x14]
mov ecx, edi
movzx eax, byte [ebx + eax*4 + 0x1c5]
push eax
call edx
test eax, eax
je 0x10021d12
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 [0x101248e8]
movss dword [esp + 0x14], xmm0
call fcn.10021d80
mulss xmm0, dword [0x10124a4c]
addss xmm0, dword [esi]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0x14]
call fcn.10021d60
mulss xmm0, dword [0x10124a4c]
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 0x10021d08
mov eax, dword [esp + 0x18]
mov ecx, edi
lea eax, [eax + eax*8]
movzx eax, byte [ebx + eax*4 + 0x1c5]
push eax
call edx
test eax, eax
je 0x10021d12
push 1
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call esi
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
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x101249b4]
addss xmm0, dword [0x10124a14]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [edi + 0x110]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10124938]
divsd xmm0, qword [0x10124980]
movsd qword [esp + 0x18], xmm0
call fcn.1010dd90
movss xmm1, dword [esp + 0x24]
cvtps2pd xmm1, xmm1
mulsd xmm0, xmm1
movss xmm1, dword [esp + 0x54]
cvtps2pd xmm1, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [esp + 0x18]
movss dword [esp + 0x54], xmm1
call fcn.1010d940
movss xmm1, dword [esp + 0x24]
lea eax, [esp + 0x30]
cvtps2pd xmm1, xmm1
push 0xffffffffffffffff
push ecx
mov dword [esp], 0
lea esi, [edi + 0x108]
push 0
push 0
push 0
mulsd xmm0, xmm1
push 0xffffffffffffffff
movss xmm1, dword [esp + 0x70]
cvtps2pd xmm1, xmm1
push edi
push 1
push eax
push esi
lea eax, [esp + 0x7c]
push eax
subsd xmm1, xmm0
mov eax, 0x6d9070
push 0xa93
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
add esp, 0x30
movzx esi, word [ebx + 0x80]
mov eax, 0x402bc0
call eax
push esi
mov edx, 0x96a4c0
mov ecx, eax
call edx
test eax, eax
je 0x10021d08
cmp byte [ebx + 0x22], 0xa
jb 0x10021d08
cmp byte [eax + 0x30c], 0
je 0x10021d08
mov byte [eax + 0x325], 0x23
cmp byte [ebx + 0x22], 0xc
jb 0x10021d12
mov byte [ebx + 0x22], 0xf
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007fd54
mov esp, ebp
pop ebp
ret