Function at 0x10098510
Capabilities:
Encrypt data using rc4 prga

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
sub esp, 0x50
mov eax, dword [0x101d7380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebx + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
cmp esi, 2
jl 0x10099123
mov eax, dword [edi + 0x28]
lea ecx, [esi - 1]
cmp byte [ebx + 0x14], 0
cmovne ecx, esi
movss xmm0, dword [eax]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebx + 0x18]
comiss xmm0, dword [0x100ef7fc]
mov dword [ebp - 0x28], ecx
seta dl
test byte [edi + 0x24], 1
mov byte [ebp - 0x35], dl
je 0x10098eeb
mov eax, dword [ebx + 0x10]
and eax, 0xffffff
mov dword [ebp - 0x4c], eax
test dl, dl
je 0x1009859b
lea eax, [ecx + ecx*8]
add eax, eax
jmp 0x100985a1
lea eax, [ecx + ecx*2]
shl eax, 2
movzx esi, dl
lea ecx, [esi + 3]
imul ecx, dword [ebx + 0xc]
push ecx
mov dword [ebp - 0x50], ecx
mov ecx, edi
push eax
call fcn.1009ca90
shl esi, 4
lea eax, [esi + 0x18]
imul eax, dword [ebx + 0xc]
call fcn.100bd430
mov ecx, dword [ebx + 0xc]
mov eax, esp
mov esi, dword [ebx + 8]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], edx
lea eax, [eax + ecx*8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x28], edx
jle 0x1009869d
mov edi, dword [ebp - 0x28]
xorps xmm4, xmm4
nop dword [eax + eax]
lea eax, [edx + 1]
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp dword [ebp - 0x1c], ecx
cmovne eax, dword [ebp - 0x1c]
movss xmm2, dword [esi + eax*8]
movss xmm1, dword [esi + eax*8 + 4]
subss xmm2, dword [esi + edx*8]
subss xmm1, dword [esi + edx*8 + 4]
movaps xmm0, xmm2
movss dword [ebp - 8], xmm2
movaps xmm3, xmm1
mulss xmm0, xmm2
mulss xmm3, xmm1
movss dword [ebp - 0x34], xmm1
addss xmm3, xmm0
comiss xmm3, xmm4
jbe 0x10098677
cvtps2pd xmm0, xmm3
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10098648
sqrtsd xmm0, xmm0
jmp 0x1009864d
call fcn.100c9480
movss xmm1, dword [0x100ef7fc]
xorps xmm4, xmm4
cvtsd2ss xmm0, xmm0
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x14]
movss xmm2, dword [ebp - 8]
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm1, dword [ebp - 0x34]
mulss xmm2, xmm0
mov eax, dword [ebp - 0x2c]
xorps xmm2, xmmword [0x100f00c0]
movss dword [eax + edx*8], xmm1
movss dword [eax + edx*8 + 4], xmm2
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
cmp edx, edi
jl 0x100985f0
mov edi, dword [ebp - 0x18]
mov dl, byte [ebx + 0x14]
test dl, dl
jne 0x100986bd
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + ecx*8 - 0x10]
mov ecx, dword [edx + ecx*8 - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [edx - 8], eax
mov eax, edx
mov dl, byte [ebx + 0x14]
mov dword [eax - 4], ecx
cmp byte [ebp - 0x35], 0
jne 0x100989e4
test dl, dl
jne 0x10098794
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
movss xmm0, dword [edi]
addss xmm0, dword [esi]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [edi + 4]
addss xmm0, dword [esi + 4]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
movss dword [ebp - 8], xmm0
mov ecx, dword [ebp - 8]
mov dword [edx + 4], ecx
movss xmm0, dword [esi]
subss xmm0, dword [edi]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, dword [edi + 4]
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp - 0x10]
movss dword [ebp - 8], xmm0
mov ecx, dword [ebp - 8]
mov dword [edx + 0xc], ecx
movss xmm0, dword [esi + eax*8 - 8]
addss xmm0, dword [edx - 8]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + eax*8 - 4]
addss xmm0, dword [edx - 4]
mov edx, eax
mov eax, dword [ebp - 0xc]
add edx, edx
movss dword [ebp - 8], xmm0
mov ecx, dword [ebp - 8]
mov dword [edi + edx*8 - 0x10], eax
mov eax, edi
mov dword [eax + edx*8 - 0xc], ecx
mov ecx, dword [ebx + 0xc]
movss xmm0, dword [esi + ecx*8 - 8]
subss xmm0, dword [eax - 8]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + ecx*8 - 4]
subss xmm0, dword [eax - 4]
mov eax, dword [ebp - 0xc]
mov dword [edi + edx*8 - 8], eax
mov eax, edi
mov edi, dword [ebp - 0x18]
movss dword [ebp - 8], xmm0
mov ecx, dword [ebp - 8]
mov dword [eax + edx*8 - 4], ecx
cmp dword [ebp - 0x28], 0
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x40], ecx
jle 0x1009893c
movss xmm5, dword [0x100f0110]
lea edi, [esi + 8]
mov edx, 1
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x18]
mov ecx, 8
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x44], 0x10
mov dword [ebp - 0x30], ecx
nop dword [eax]
cmp edx, dword [ebx + 0xc]
jne 0x100987e8
mov eax, dword [edi + 0x34]
mov edx, esi
mov dword [ebp - 0x48], esi
xor esi, esi
mov dword [ebp - 0x1c], 0
jmp 0x100987fa
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x14]
add eax, 3
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
movss xmm4, dword [0x100ef7fc]
movss xmm3, dword [ecx + edi - 8]
movss xmm2, dword [ecx + edi - 4]
mov edi, eax
addss xmm3, dword [eax + ecx]
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x44], 0x10
addss xmm2, dword [edi + ecx + 4]
mulss xmm3, xmm5
mulss xmm2, xmm5
movaps xmm0, xmm3
mulss xmm0, xmm3
movaps xmm1, xmm2
mulss xmm1, xmm2
addss xmm1, xmm0
movaps xmm0, xmm5
maxss xmm0, xmm1
divss xmm4, xmm0
movaps xmm1, xmm4
mulss xmm4, xmm2
mulss xmm1, xmm3
movaps xmm0, xmm1
addss xmm0, dword [eax]
mov eax, dword [ebp - 0x10]
movss dword [esi + eax], xmm0
movaps xmm0, xmm4
addss xmm0, dword [edx + 4]
movss dword [esi + eax + 4], xmm0
movss xmm0, dword [edx]
subss xmm0, xmm1
movss dword [esi + eax + 8], xmm0
movss xmm0, dword [edx + 4]
mov edx, dword [ebp - 0x18]
subss xmm0, xmm4
movss dword [esi + eax + 0xc], xmm0
mov eax, dword [ebp - 0x3c]
movzx edi, ax
mov eax, dword [edx + 0x3c]
mov word [eax], di
mov eax, dword [ebp - 0x40]
movzx esi, ax
mov eax, dword [edx + 0x3c]
lea ecx, [esi + 2]
mov word [eax + 2], si
mov eax, dword [edx + 0x3c]
mov word [eax + 4], cx
mov eax, dword [edx + 0x3c]
mov word [eax + 6], cx
lea ecx, [edi + 2]
mov eax, dword [edx + 0x3c]
mov word [eax + 8], cx
lea ecx, [esi + 1]
mov eax, dword [edx + 0x3c]
lea edx, [edi + 1]
mov word [eax + 0xa], di
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
mov word [eax + 0xc], dx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
mov word [eax + 0xe], cx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x3c]
mov word [eax + 0x10], si
mov eax, dword [ecx + 0x3c]
mov word [eax + 0x12], si
mov eax, dword [ecx + 0x3c]
mov word [eax + 0x14], di
mov edi, ecx
mov eax, dword [edi + 0x3c]
mov word [eax + 0x16], dx
mov edx, dword [ebp - 0x34]
add dword [edi + 0x3c], 0x18
inc edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x30]
add dword [ebp - 0x14], 8
add ecx, 8
sub dword [ebp - 0x28], 1
mov esi, dword [ebx + 8]
mov dword [ebp - 0x30], ecx
jne 0x100987d0
mov esi, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + eax*8]
mov edx, dword [esi + eax*8 + 4]
mov eax, dword [edi + 0x38]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x38]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
mov eax, dword [edi + 0x38]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x20], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x10], 0x10
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x2c], edx
mov eax, dword [edi + 0x38]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x34], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x38], ecx
mov eax, dword [ebp - 0x14]
add dword [edi + 0x38], 0x3c
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx + 0xc]
jl 0x10098944
mov eax, dword [ebp - 0x50]
movzx eax, ax
add dword [edi + 0x34], eax
jmp 0x10099123
movss xmm6, dword [ebx + 0x18]
movss xmm4, dword [0x100ef7fc]
movss xmm5, dword [0x100f0110]
subss xmm6, xmm4
mulss xmm6, xmm5
movaps xmm7, xmm6
addss xmm7, xmm4
test dl, dl
jne 0x10098bed
mov edi, dword [ebp - 0x2c]
movaps xmm0, xmm7
mov edx, dword [ebp - 0x10]
movaps xmm1, xmm6
mulss xmm0, dword [edi]
addss xmm0, dword [esi]
movss dword [ebp - 0xc], xmm0
movaps xmm0, xmm7
mulss xmm0, dword [edi + 4]
mov eax, dword [ebp - 0xc]
addss xmm0, dword [esi + 4]
mov dword [edx], eax
movss dword [ebp - 8], xmm0
movaps xmm0, xmm6
mov ecx, dword [ebp - 8]
mov dword [edx + 4], ecx
mulss xmm0, dword [edi]
addss xmm0, dword [esi]
movss dword [ebp - 0xc], xmm0
movaps xmm0, xmm6
mulss xmm0, dword [edi + 4]
mov eax, dword [ebp - 0xc]
addss xmm0, dword [esi + 4]
mov dword [edx + 8], eax
movss dword [ebp - 8], xmm0
mov ecx, dword [ebp - 8]
mov dword [edx + 0xc], ecx
mulss xmm1, dword [edi]
movss xmm0, dword [esi]
subss xmm0, xmm1
movaps xmm1, xmm6
mulss xmm1, dword [edi + 4]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + 4]
mov eax, dword [ebp - 0xc]
subss xmm0, xmm1
mov dword [edx + 0x10], eax
movaps xmm1, xmm7
movss dword [ebp - 8], xmm0
mov ecx, dword [ebp - 8]
mov dword [edx + 0x14], ecx
mulss xmm1, dword [edi]
movss xmm0, dword [esi]
subss xmm0, xmm1
movaps xmm1, xmm7
mulss xmm1, dword [edi + 4]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + 4]
mov eax, dword [ebp - 0xc]
subss xmm0, xmm1
mov dword [edx + 0x18], eax
mov eax, dword [ebx + 0xc]
movss dword [ebp - 8], xmm0
movaps xmm0, xmm7
mov ecx, dword [ebp - 8]
mov dword [edx + 0x1c], ecx
mov edx, eax
mulss xmm0, dword [edi + eax*8 - 8]
shl edx, 5
addss xmm0, dword [esi + eax*8 - 8]
movss dword [ebp - 0xc], xmm0
movaps xmm0, xmm7
mulss xmm0, dword [edi + eax*8 - 4]
mov edi, dword [ebp - 0x10]
addss xmm0, dword [esi + eax*8 - 4]
mov eax, dword [ebp - 0xc]
mov dword [edx + edi - 0x20], eax
mov eax, edi
movss dword [ebp - 8], xmm0
movaps xmm0, xmm6
mov ecx, dword [ebp - 8]
mov dword [edx + eax - 0x1c], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2c]
mulss xmm0, dword [ecx + eax*8 - 8]
addss xmm0, dword [esi + eax*8 - 8]
movss dword [ebp - 0xc], xmm0
movaps xmm0, xmm6
mulss xmm0, dword [ecx + eax*8 - 4]
addss xmm0, dword [esi + eax*8 - 4]
movss dword [ebp - 8], xmm0
mov eax, dword [ebp - 0xc]
movaps xmm1, xmm6
mov ecx, dword [ebp - 8]
mov dword [edx + edi - 0x18], eax
mov eax, edi
mov dword [edx + eax - 0x14], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2c]
movss xmm0, dword [esi + eax*8 - 8]
mulss xmm1, dword [ecx + eax*8 - 8]
subss xmm0, xmm1
movaps xmm1, xmm6
mulss xmm1, dword [ecx + eax*8 - 4]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + eax*8 - 4]
mov eax, dword [ebp - 0xc]
subss xmm0, xmm1
mov dword [edx + edi - 0x10], eax
movaps xmm1, xmm7
mov eax, edi
movss dword [ebp - 8], xmm0
mov ecx, dword [ebp - 8]
mov dword [edx + eax - 0xc], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2c]
movss xmm0, dword [esi + eax*8 - 8]
mulss xmm1, dword [ecx + eax*8 - 8]
subss xmm0, xmm1
movaps xmm1, xmm7
mulss xmm1, dword [ecx + eax*8 - 4]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + eax*8 - 4]
mov eax, dword [ebp - 0xc]
subss xmm0, xmm1
mov dword [edx + edi - 8], eax
mov eax, edi
mov edi, dword [ebp - 0x18]
movss dword [ebp - 8], xmm0
mov ecx, dword [ebp - 8]
mov dword [edx + eax - 4], ecx
cmp dword [ebp - 0x28], 0
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x44], ecx
jle 0x10098e2b
mov edx, 1
mov dword [ebp - 0x40], 0x20
mov ecx, 8
mov dword [ebp - 8], edx
lea eax, [esi + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x3c], eax
nop word [eax + eax]
cmp edx, dword [ebx + 0xc]
jne 0x10098c38
mov eax, dword [edi + 0x34]
mov edx, esi
mov dword [ebp - 0x48], esi
xor esi, esi
mov dword [ebp - 0x34], 0
jmp 0x10098c4a
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x3c]
add eax, 4
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
movss xmm2, dword [edi + ecx - 4]
mov edi, dword [ebp - 0x18]
movss xmm3, dword [eax + ecx - 8]
mov eax, dword [ebp - 0x34]
addss xmm2, dword [eax + ecx + 4]
addss xmm3, dword [eax + ecx]
mov eax, dword [ebp - 0x48]
mulss xmm2, xmm5
mulss xmm3, xmm5
movaps xmm1, xmm2
mulss xmm1, xmm2
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm5
movaps xmm5, xmm4
maxss xmm0, xmm1
movaps xmm1, xmm7
divss xmm5, xmm0
movaps xmm4, xmm5
mulss xmm5, xmm2
mulss xmm4, xmm3
movaps xmm2, xmm7
mulss xmm2, xmm5
mulss xmm1, xmm4
mulss xmm4, xmm6
movaps xmm0, xmm1
mulss xmm5, xmm6
addss xmm0, dword [eax]
mov eax, dword [ebp - 0x10]
movss dword [esi + eax], xmm0
movaps xmm0, xmm2
addss xmm0, dword [edx + 4]
movss dword [esi + eax + 4], xmm0
movaps xmm0, xmm4
addss xmm0, dword [edx]
movss dword [esi + eax + 8], xmm0
movaps xmm0, xmm5
addss xmm0, dword [edx + 4]
movss dword [esi + eax + 0xc], xmm0
movss xmm0, dword [edx]
subss xmm0, xmm4
movss dword [esi + eax + 0x10], xmm0
movss xmm0, dword [edx + 4]
subss xmm0, xmm5
movss dword [esi + eax + 0x14], xmm0
movss xmm0, dword [edx]
subss xmm0, xmm1
movss dword [esi + eax + 0x18], xmm0
movss xmm0, dword [edx + 4]
subss xmm0, xmm2
movss dword [esi + eax + 0x1c], xmm0
mov eax, dword [ebp - 0x30]
movzx eax, ax
mov dword [ebp - 0x14], eax
lea esi, [eax + 1]
mov eax, dword [edi + 0x3c]
mov word [eax], si
mov eax, dword [ebp - 0x44]
movzx edi, ax
mov eax, dword [ebp - 0x18]
lea ecx, [edi + 1]
mov eax, dword [eax + 0x3c]
lea edx, [edi + 2]
mov word [eax + 2], cx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x3c]
mov word [eax + 4], dx
mov eax, dword [ecx + 0x3c]
mov word [eax + 6], dx
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp - 0x14]
add edx, 2
mov word [eax + 8], dx
mov edx, ecx
mov eax, dword [edx + 0x3c]
mov word [eax + 0xa], si
mov eax, dword [edx + 0x3c]
lea ecx, [edi + 1]
add dword [ebp - 0x40], 0x20
add dword [ebp - 0x3c], 8
movss xmm4, dword [0x100ef7fc]
mov word [eax + 0xc], si
mov eax, dword [edx + 0x3c]
movss xmm5, dword [0x100f0110]
mov word [eax + 0xe], cx
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x14]
mov word [eax + 0x10], di
mov eax, dword [edx + 0x3c]
mov word [eax + 0x12], di
mov eax, dword [edx + 0x3c]
mov word [eax + 0x14], cx
mov eax, dword [edx + 0x3c]
mov word [eax + 0x16], si
lea esi, [ecx + 2]
mov eax, dword [edx + 0x3c]
lea ecx, [edi + 3]
mov word [eax + 0x18], si
mov eax, dword [edx + 0x3c]
lea edx, [edi + 2]
mov edi, dword [ebp - 0x18]
mov word [eax + 0x1a], dx
mov eax, dword [edi + 0x3c]
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
mov word [eax + 0x1c], cx
mov eax, dword [edi + 0x3c]
mov word [eax + 0x1e], cx
mov eax, dword [edi + 0x3c]
mov ecx, dword [ebp - 0x14]
add ecx, 3
mov word [eax + 0x20], cx
mov eax, dword [edi + 0x3c]
mov ecx, dword [ebp - 0x1c]
add ecx, 8
mov dword [ebp - 0x1c], ecx
mov word [eax + 0x22], si
add dword [edi + 0x3c], 0x24
sub dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x30]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x44], eax
jne 0x10098c20
mov esi, dword [ebp - 0x10]
add esi, 0x10
mov eax, dword [edi + 0x38]
lea esi, [esi + 0x20]
mov ecx, dword [esi - 0x30]
mov edx, dword [esi - 0x2c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [esi - 0x28]
mov edx, dword [esi - 0x24]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
mov eax, dword [edi + 0x38]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x20], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x24], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [esi - 0x20]
mov edx, dword [esi - 0x1c]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x2c], edx
mov eax, dword [edi + 0x38]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x34], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x38], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [esi - 0x18]
mov edx, dword [esi - 0x14]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x40], edx
mov eax, dword [edi + 0x38]
mov dword [eax + 0x44], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x48], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x4c], ecx
add dword [edi + 0x38], 0x50
sub dword [ebx + 0xc], 1
jne 0x10098e31
mov eax, dword [ebp - 0x50]
movzx eax, ax
add dword [edi + 0x34], eax
jmp 0x10099123
lea eax, [ecx*4]
push eax
lea eax, [ecx + ecx*2]
mov ecx, edi
add eax, eax
push eax
call fcn.1009ca90
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x28], eax
jle 0x10099123
movss xmm5, dword [ebx + 0x18]
xorps xmm2, xmm2
mulss xmm5, dword [0x100f0110]
movss dword [ebx + 0x18], xmm5
lea ecx, [eax + 1]
xor edx, edx
cmp ecx, esi
mov dword [ebp - 0x30], ecx
cmovne edx, ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x48], edx
movss xmm6, dword [ecx + eax*8]
movss xmm3, dword [ecx + edx*8]
movss xmm4, dword [ecx + edx*8 + 4]
subss xmm3, xmm6
subss xmm4, dword [ecx + eax*8 + 4]
movss dword [ebp - 0x34], xmm6
movaps xmm0, xmm3
movss dword [ebp - 0x50], xmm3
movaps xmm1, xmm4
mulss xmm0, xmm3
mulss xmm1, xmm4
movss dword [ebp - 8], xmm4
addss xmm1, xmm0
comiss xmm1, xmm2
jbe 0x10098fc2
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10098f88
sqrtsd xmm0, xmm0
jmp 0x10098f8d
call fcn.100c9480
movss xmm1, dword [0x100ef7fc]
cvtsd2ss xmm0, xmm0
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x48]
movss xmm3, dword [ebp - 0x50]
divss xmm1, xmm0
movss xmm4, dword [ebp - 8]
movss xmm5, dword [ebx + 0x18]
movaps xmm0, xmm1
movss xmm6, dword [ebp - 0x34]
mulss xmm3, xmm0
mulss xmm4, xmm1
mov eax, dword [edi + 0x38]
movaps xmm1, xmm5
mulss xmm1, xmm4
movaps xmm2, xmm5
mov esi, dword [ebp - 0x24]
mulss xmm2, xmm3
addss xmm6, xmm1
movss dword [eax], xmm6
mov eax, dword [ebp - 0x14]
movss xmm0, dword [ecx + eax*8 + 4]
mov eax, dword [edi + 0x38]
subss xmm0, xmm2
movss dword [eax + 4], xmm0
movaps xmm0, xmm1
mov eax, dword [edi + 0x38]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x20]
mov dword [eax + 0xc], esi
mov eax, dword [edi + 0x38]
mov esi, dword [ebx + 0x10]
mov dword [eax + 0x10], esi
addss xmm0, dword [ecx + edx*8]
mov eax, dword [edi + 0x38]
mov esi, dword [ebp - 0x24]
movss dword [eax + 0x14], xmm0
movss xmm0, dword [ecx + edx*8 + 4]
mov eax, dword [edi + 0x38]
subss xmm0, xmm2
movss dword [eax + 0x18], xmm0
mov eax, dword [edi + 0x38]
mov dword [eax + 0x1c], esi
mov esi, dword [ebp - 0x20]
mov dword [eax + 0x20], esi
mov eax, dword [edi + 0x38]
mov esi, dword [ebx + 0x10]
mov dword [eax + 0x24], esi
movss xmm0, dword [ecx + edx*8]
mov eax, dword [edi + 0x38]
subss xmm0, xmm1
mov esi, dword [ebp - 0x20]
movss dword [eax + 0x28], xmm0
movaps xmm0, xmm2
addss xmm0, dword [ecx + edx*8 + 4]
mov eax, dword [edi + 0x38]
mov edx, dword [ebp - 0x24]
movss dword [eax + 0x2c], xmm0
mov eax, dword [edi + 0x38]
mov dword [eax + 0x30], edx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x34], esi
mov eax, dword [edi + 0x38]
mov dword [eax + 0x38], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 0x38]
movss xmm0, dword [ecx + edx*8]
subss xmm0, xmm1
movss dword [eax + 0x3c], xmm0
addss xmm2, dword [ecx + edx*8 + 4]
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x24]
movss dword [eax + 0x40], xmm2
mov eax, dword [edi + 0x38]
mov dword [eax + 0x44], ecx
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x48], esi
mov eax, dword [edi + 0x38]
mov dword [eax + 0x4c], ecx
mov ecx, dword [edi + 0x3c]
movzx eax, word [edi + 0x34]
add dword [edi + 0x38], 0x50
mov word [ecx], ax
movzx ecx, word [edi + 0x34]
mov eax, dword [edi + 0x3c]
inc cx
mov word [eax + 2], cx
movzx ecx, word [edi + 0x34]
mov eax, dword [edi + 0x3c]
add cx, 2
mov word [eax + 4], cx
mov ecx, dword [edi + 0x3c]
movzx eax, word [edi + 0x34]
mov esi, dword [ebx + 0xc]
xorps xmm2, xmm2
mov word [ecx + 6], ax
movzx ecx, word [edi + 0x34]
mov eax, dword [edi + 0x3c]
add cx, 2
mov word [eax + 8], cx
mov eax, dword [edi + 0x3c]
movzx ecx, word [edi + 0x34]
add cx, 3
mov word [eax + 0xa], cx
mov eax, dword [ebp - 0x30]
add dword [edi + 0x3c], 0xc
add dword [edi + 0x34], 4
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x28]
jl 0x10098f23
lea esp, [ebp - 0x58]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bd02b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14