Function at 0x101053d0
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, 0x38
push esi
mov esi, dword [ebx + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
cmp esi, 2
jl 0x10105f57
mov eax, dword [edi + 0x28]
lea edx, [esi - 1]
cmp byte [ebx + 0x14], 0
cmovne edx, esi
movss xmm0, dword [eax]
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [ebx + 0x18]
comiss xmm0, dword [0x1074b838]
mov dword [ebp - 0x14], edx
seta cl
test byte [edi + 0x24], 1
mov byte [ebp - 1], cl
je 0x10105d30
mov eax, dword [ebx + 0x10]
movzx esi, cl
and eax, 0xffffff
mov dword [ebp - 0x18], eax
mov ecx, 0x12
lea eax, [esi + 3]
imul eax, dword [ebx + 0xc]
cmp byte [ebp - 1], 0
push eax
mov dword [ebp - 0x30], eax
mov eax, 0xc
cmove ecx, eax
imul ecx, edx
push ecx
mov ecx, edi
call fcn.10105190
shl esi, 4
lea eax, [esi + 0x18]
imul eax, dword [ebx + 0xc]
call fcn.10139400
cmp dword [ebp - 0x14], 0
mov ecx, esp
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x20], 0
lea edx, [ecx + esi*8]
mov dword [ebp - 8], edx
jle 0x10105555
mov ecx, dword [ebx + 8]
xorps xmm4, xmm4
xor edx, edx
mov edi, esp
lea eax, [edx + 1]
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp dword [ebp - 0x1c], esi
cmovne eax, dword [ebp - 0x1c]
movss xmm2, dword [ecx + eax*8]
movss xmm1, dword [ecx + eax*8 + 4]
subss xmm2, dword [ecx + edx*8]
subss xmm1, dword [ecx + edx*8 + 4]
movaps xmm0, xmm2
movss dword [ebp - 0x24], xmm2
movaps xmm3, xmm1
mulss xmm0, xmm2
mulss xmm3, xmm1
movss dword [ebp - 0x28], xmm1
addss xmm3, xmm0
comiss xmm3, xmm4
jbe 0x1010552c
cvtps2pd xmm0, xmm3
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x101054fd
sqrtsd xmm0, xmm0
jmp 0x10105502
call fcn.1015e480
movss xmm1, dword [0x1074b838]
xorps xmm4, xmm4
cvtsd2ss xmm0, xmm0
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x20]
movss xmm2, dword [ebp - 0x24]
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm1, dword [ebp - 0x28]
mulss xmm2, xmm0
xorps xmm2, xmmword [0x1074bfa0]
movss dword [edi + edx*8], xmm1
movss dword [edi + edx*8 + 4], xmm2
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
cmp edx, dword [ebp - 0x14]
jl 0x101054a5
mov edi, dword [ebp - 0xc]
mov ecx, esp
mov edx, dword [ebp - 8]
mov al, byte [ebx + 0x14]
test al, al
jne 0x1010556d
mov eax, dword [ecx + esi*8 - 0x10]
mov ecx, dword [ecx + esi*8 - 0xc]
mov dword [edx - 8], eax
mov al, byte [ebx + 0x14]
mov dword [edx - 4], ecx
cmp byte [ebp - 1], 0
jne 0x1010585b
test al, al
jne 0x10105642
mov edi, dword [ebx + 8]
mov eax, esp
movss xmm0, dword [eax]
addss xmm0, dword [edi]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [eax + 4]
addss xmm0, dword [edi + 4]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov eax, esp
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
movss xmm0, dword [edi]
subss xmm0, dword [eax]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [edi + 4]
subss xmm0, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 8], eax
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [edx + 0xc], ecx
movss xmm0, dword [edi + esi*8 - 8]
addss xmm0, dword [edx - 8]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [edi + esi*8 - 4]
addss xmm0, dword [edx - 4]
mov edi, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 0x2c]
add edx, edx
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [edi + edx*8 - 0x10], eax
mov eax, edi
mov dword [eax + edx*8 - 0xc], ecx
mov ecx, dword [ebx + 8]
movss xmm0, dword [ecx + esi*8 - 8]
subss xmm0, dword [eax - 8]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [ecx + esi*8 - 4]
subss xmm0, dword [eax - 4]
mov eax, dword [ebp - 0x2c]
mov dword [edi + edx*8 - 8], eax
mov eax, edi
mov edi, dword [ebp - 0xc]
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [eax + edx*8 - 4], ecx
mov ecx, dword [edi + 0x34]
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x14], eax
jle 0x101057a4
movss xmm5, dword [0x1074b800]
nop
inc eax
xor edx, edx
cmp eax, esi
mov dword [ebp - 0x28], eax
cmovne edx, eax
jne 0x10105672
mov esi, dword [edi + 0x34]
jmp 0x10105675
lea esi, [ecx + 3]
mov edi, dword [ebp - 0x24]
lea eax, [edx*8]
mov ecx, esp
movss xmm4, dword [0x1074b838]
shl edx, 4
add edx, dword [ebp - 8]
mov dword [ebp - 0x20], esi
movss xmm3, dword [ecx + edi*8]
addss xmm3, dword [eax + ecx]
movss xmm2, dword [ecx + edi*8 + 4]
addss xmm2, dword [eax + ecx + 4]
mov ecx, dword [ebx + 8]
movzx edi, si
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 + ecx]
movss dword [edx], xmm0
movaps xmm0, xmm4
addss xmm0, dword [eax + ecx + 4]
movss dword [edx + 4], xmm0
movss xmm0, dword [eax + ecx]
subss xmm0, xmm1
movss dword [edx + 8], xmm0
movss xmm0, dword [eax + ecx + 4]
subss xmm0, xmm4
movss dword [edx + 0xc], xmm0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x3c]
mov word [eax], di
mov eax, dword [ebp - 0x1c]
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 - 0xc]
mov eax, dword [eax + 0x3c]
mov word [eax + 0xc], dx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov word [eax + 0xe], cx
mov ecx, dword [ebp - 0xc]
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 esi, dword [ebx + 0xc]
mov word [eax + 0x14], di
mov edi, ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov eax, dword [edi + 0x3c]
mov word [eax + 0x16], dx
mov eax, dword [ebp - 0x28]
add dword [edi + 0x3c], 0x18
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x14]
jl 0x10105660
xor edx, edx
mov dword [ebp - 0x24], edx
nop dword [eax]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*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 - 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x38]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x18], edx
mov eax, dword [edi + 0x38]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x20], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 8]
add dword [ebp - 8], 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 - 0x38]
mov dword [eax + 0x2c], edx
mov eax, dword [edi + 0x38]
mov edx, dword [ebp - 0x24]
inc edx
mov dword [ebp - 0x24], edx
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x34], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x38], ecx
add dword [edi + 0x38], 0x3c
cmp edx, esi
jl 0x101057b0
mov eax, dword [ebp - 0x30]
movzx eax, ax
add dword [edi + 0x34], eax
lea esp, [ebp - 0x40]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
movss xmm6, dword [ebx + 0x18]
movss xmm4, dword [0x1074b838]
movss xmm5, dword [0x1074b800]
subss xmm6, xmm4
mulss xmm6, xmm5
movaps xmm7, xmm6
addss xmm7, xmm4
test al, al
jne 0x10105a55
mov edi, dword [ebx + 8]
mov eax, esp
movaps xmm0, xmm7
movaps xmm1, xmm6
mulss xmm0, dword [eax]
addss xmm0, dword [edi]
movss dword [ebp - 0x2c], xmm0
movaps xmm0, xmm7
mulss xmm0, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
addss xmm0, dword [edi + 4]
mov dword [edx], eax
mov eax, esp
movss dword [ebp - 0x28], xmm0
movaps xmm0, xmm6
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
mulss xmm0, dword [eax]
addss xmm0, dword [edi]
movss dword [ebp - 0x2c], xmm0
movaps xmm0, xmm6
mulss xmm0, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
addss xmm0, dword [edi + 4]
mov dword [edx + 8], eax
mov eax, esp
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [edx + 0xc], ecx
mulss xmm1, dword [eax]
movss xmm0, dword [edi]
subss xmm0, xmm1
movaps xmm1, xmm6
mulss xmm1, dword [eax + 4]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [edi + 4]
mov eax, dword [ebp - 0x2c]
subss xmm0, xmm1
mov dword [edx + 0x10], eax
movaps xmm1, xmm7
mov eax, esp
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [edx + 0x14], ecx
mulss xmm1, dword [eax]
movss xmm0, dword [edi]
subss xmm0, xmm1
movaps xmm1, xmm7
mulss xmm1, dword [eax + 4]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [edi + 4]
mov eax, dword [ebp - 0x2c]
subss xmm0, xmm1
mov dword [edx + 0x18], eax
movss dword [ebp - 0x28], xmm0
movaps xmm0, xmm7
mov ecx, dword [ebp - 0x28]
mov dword [edx + 0x1c], ecx
mulss xmm0, dword [edx - 8]
addss xmm0, dword [edi + esi*8 - 8]
movss dword [ebp - 0x2c], xmm0
movaps xmm0, xmm7
mulss xmm0, dword [edx - 4]
mov edx, esi
mov eax, dword [ebp - 0x2c]
shl edx, 5
addss xmm0, dword [edi + esi*8 - 4]
mov edi, dword [ebp - 8]
mov dword [edx + edi - 0x20], eax
mov eax, edi
movss dword [ebp - 0x28], xmm0
movaps xmm0, xmm6
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax - 0x1c], ecx
mulss xmm0, dword [eax - 8]
mov ecx, dword [ebx + 8]
addss xmm0, dword [ecx + esi*8 - 8]
movss dword [ebp - 0x2c], xmm0
movaps xmm0, xmm6
mulss xmm0, dword [eax - 4]
addss xmm0, dword [ecx + esi*8 - 4]
mov eax, dword [ebp - 0x2c]
movaps xmm1, xmm6
mov dword [edx + edi - 0x18], eax
mov eax, edi
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax - 0x14], ecx
mulss xmm1, dword [eax - 8]
mov ecx, dword [ebx + 8]
movss xmm0, dword [ecx + esi*8 - 8]
subss xmm0, xmm1
movaps xmm1, xmm6
mulss xmm1, dword [eax - 4]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [ecx + esi*8 - 4]
mov eax, dword [ebp - 0x2c]
subss xmm0, xmm1
mov dword [edx + edi - 0x10], eax
movaps xmm1, xmm7
mov eax, edi
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax - 0xc], ecx
mulss xmm1, dword [eax - 8]
mov ecx, dword [ebx + 8]
movss xmm0, dword [ecx + esi*8 - 8]
subss xmm0, xmm1
movaps xmm1, xmm7
mulss xmm1, dword [eax - 4]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [ecx + esi*8 - 4]
mov eax, dword [ebp - 0x2c]
subss xmm0, xmm1
mov dword [edx + edi - 8], eax
mov eax, edi
mov edi, dword [ebp - 0xc]
movss dword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax - 4], ecx
mov ecx, dword [edi + 0x34]
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], eax
jle 0x10105c52
nop dword [eax]
inc eax
xor edx, edx
cmp eax, esi
mov dword [ebp - 0x28], eax
cmovne edx, eax
jne 0x10105a82
mov esi, dword [edi + 0x34]
jmp 0x10105a85
lea esi, [ecx + 4]
mov edi, dword [ebp - 0x1c]
lea eax, [edx*8]
mov ecx, esp
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 0x24], esi
movss xmm2, dword [eax + ecx + 4]
movss xmm3, dword [eax + ecx]
addss xmm2, dword [ecx + edi*8 + 4]
addss xmm3, dword [ecx + edi*8]
mov ecx, dword [ebx + 8]
mov edi, dword [ebp - 0xc]
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 + ecx]
movss dword [edx], xmm0
movaps xmm0, xmm2
addss xmm0, dword [eax + ecx + 4]
movss dword [edx + 4], xmm0
movaps xmm0, xmm4
addss xmm0, dword [eax + ecx]
movss dword [edx + 8], xmm0
movaps xmm0, xmm5
addss xmm0, dword [eax + ecx + 4]
movss dword [edx + 0xc], xmm0
movss xmm0, dword [eax + ecx]
subss xmm0, xmm4
movss dword [edx + 0x10], xmm0
movss xmm0, dword [eax + ecx + 4]
subss xmm0, xmm5
movss dword [edx + 0x14], xmm0
movss xmm0, dword [eax + ecx]
subss xmm0, xmm1
movss dword [edx + 0x18], xmm0
movss xmm0, dword [eax + ecx + 4]
movzx eax, si
subss xmm0, xmm2
mov dword [ebp - 0x1c], eax
lea esi, [eax + 1]
movss dword [edx + 0x1c], xmm0
mov eax, dword [edi + 0x3c]
mov word [eax], si
mov eax, dword [ebp - 0x20]
movzx edi, ax
mov eax, dword [ebp - 0xc]
lea ecx, [edi + 1]
mov eax, dword [eax + 0x3c]
lea edx, [edi + 2]
mov word [eax + 2], cx
mov ecx, dword [ebp - 0xc]
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 - 0x1c]
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]
mov word [eax + 0xc], si
lea ecx, [edi + 1]
mov eax, dword [edx + 0x3c]
movss xmm4, dword [0x1074b838]
movss xmm5, dword [0x1074b800]
mov word [eax + 0xe], cx
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x1c]
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 - 0xc]
mov word [eax + 0x1a], dx
mov eax, dword [edi + 0x3c]
mov word [eax + 0x1c], cx
mov eax, dword [edi + 0x3c]
mov word [eax + 0x1e], cx
mov eax, dword [edi + 0x3c]
mov ecx, dword [ebp - 0x1c]
add ecx, 3
mov word [eax + 0x20], cx
mov eax, dword [edi + 0x3c]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov word [eax + 0x22], si
mov eax, dword [ebp - 0x28]
add dword [edi + 0x3c], 0x24
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x14]
jl 0x10105a70
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0x14], eax
nop dword [eax + eax]
mov ecx, dword [eax - 0x10]
mov edx, dword [eax - 0xc]
mov eax, dword [edi + 0x38]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov ecx, dword [edx - 8]
mov eax, dword [edi + 0x38]
mov edx, dword [edx - 4]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x20], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x38]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x2c], edx
mov eax, dword [edi + 0x38]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x34], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x38], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x40], edx
mov eax, dword [edi + 0x38]
mov dword [eax + 0x44], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x48], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x4c], ecx
mov eax, dword [ebp - 0x14]
add dword [edi + 0x38], 0x50
add eax, 0x20
mov dword [ebp - 0x14], eax
sub esi, 1
jne 0x10105c60
mov eax, dword [ebp - 0x30]
movzx eax, ax
add dword [edi + 0x34], eax
lea esp, [ebp - 0x40]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
lea eax, [edx*4]
mov ecx, edi
push eax
lea eax, [edx + edx*2]
add eax, eax
push eax
call fcn.10105190
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], eax
jle 0x10105f57
movss xmm4, dword [ebx + 0x18]
xorps xmm5, xmm5
mulss xmm4, dword [0x1074b800]
movss dword [ebx + 0x18], xmm4
lea ecx, [eax + 1]
xor edx, edx
cmp ecx, esi
mov dword [ebp - 0x20], ecx
cmovne edx, ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x24], edx
movss xmm2, dword [ecx + edx*8]
movss xmm1, dword [ecx + edx*8 + 4]
subss xmm2, dword [ecx + eax*8]
subss xmm1, dword [ecx + eax*8 + 4]
movaps xmm0, xmm2
movss dword [ebp - 0x30], xmm2
movaps xmm3, xmm1
mulss xmm0, xmm2
mulss xmm3, xmm1
movss dword [ebp - 0x28], xmm1
addss xmm3, xmm0
comiss xmm3, xmm5
jbe 0x10105dfb
cvtps2pd xmm0, xmm3
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10105dc4
sqrtsd xmm0, xmm0
jmp 0x10105dc9
call fcn.1015e480
movss xmm1, dword [0x1074b838]
xorps xmm5, xmm5
cvtsd2ss xmm0, xmm0
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
movss xmm2, dword [ebp - 0x30]
divss xmm1, xmm0
movss xmm4, dword [ebx + 0x18]
movaps xmm0, xmm1
mulss xmm1, dword [ebp - 0x28]
mulss xmm2, xmm0
mulss xmm1, xmm4
mov esi, dword [ebp - 0x38]
mulss xmm2, xmm4
movaps xmm0, xmm1
addss xmm0, dword [ecx + eax*8]
mov eax, dword [edi + 0x38]
movss dword [eax], xmm0
mov eax, dword [ebp - 0x18]
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 - 0x34]
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 - 0x38]
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 - 0x34]
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 - 0x34]
movss dword [eax + 0x28], xmm0
movaps xmm0, xmm2
addss xmm0, dword [ecx + edx*8 + 4]
mov eax, dword [edi + 0x38]
mov edx, dword [ebp - 0x38]
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 eax, dword [edi + 0x38]
mov edx, dword [ebp - 0x18]
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 - 0x38]
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 word [ecx + 6], ax
movzx ecx, word [edi + 0x34]
mov eax, dword [edi + 0x3c]
add cx, 2
mov esi, dword [ebx + 0xc]
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 - 0x20]
add dword [edi + 0x3c], 0xc
add dword [edi + 0x34], 4
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x14]
jl 0x10105d68
lea esp, [ebp - 0x40]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14