Function at 0x10021f20
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, 0x40
mov eax, dword [0x1008600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebx + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp esi, 2
jl 0x100229c7
mov eax, dword [edi + 0x28]
lea edx, [esi - 1]
cmp byte [ebx + 0x14], 0
cmovne edx, esi
movss xmm0, dword [eax]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [ebx + 0x18]
comiss xmm0, dword [0x1007db34]
mov dword [ebp - 0x20], edx
seta cl
test byte [edi + 0x24], 1
mov byte [ebp - 0xd], cl
je 0x1002279c
mov eax, dword [ebx + 0x10]
movzx esi, cl
and eax, 0xffffff
mov dword [ebp - 0x2c], eax
mov ecx, 0x12
lea eax, [esi + 3]
imul eax, dword [ebx + 0xc]
cmp byte [ebp - 0xd], 0
push eax
mov dword [ebp - 0x3c], eax
mov eax, 0xc
cmove ecx, eax
imul ecx, edx
push ecx
mov ecx, edi
call fcn.10021d20
shl esi, 4
lea eax, [esi + 0x18]
imul eax, dword [ebx + 0xc]
call fcn.10064550
cmp dword [ebp - 0x20], 0
mov eax, esp
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x18], 0
lea edx, [eax + ecx*8]
mov dword [ebp - 0x28], edx
jle 0x1002209d
xorps xmm4, xmm4
xor edx, edx
mov edi, eax
nop
lea eax, [edx + 1]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], ecx
cmovne eax, dword [ebp - 8]
movss xmm0, dword [esi + eax*8]
movss xmm2, dword [esi + eax*8 + 4]
subss xmm0, dword [esi + edx*8]
subss xmm2, dword [esi + edx*8 + 4]
movaps xmm1, xmm0
movss dword [ebp - 0xc], xmm0
movaps xmm3, xmm2
mulss xmm1, xmm0
mulss xmm3, xmm2
movss dword [ebp - 0x1c], xmm2
addss xmm3, xmm1
comiss xmm3, xmm4
jbe 0x10022074
movaps xmm0, xmm3
call fcn.100014f0
movss xmm1, dword [0x1007db34]
xorps xmm4, xmm4
divss xmm1, xmm0
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x18]
movss xmm2, dword [ebp - 0x1c]
movaps xmm0, xmm1
mulss xmm2, xmm1
mulss xmm0, dword [ebp - 0xc]
xorps xmm0, xmmword [0x1007e1b0]
movss dword [edi + edx*8], xmm2
movss dword [edi + edx*8 + 4], xmm0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x20]
jl 0x10022000
mov edi, dword [ebp - 0x14]
mov eax, esp
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x14], 0
jne 0x100220b3
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [edx - 8], eax
mov eax, esp
mov eax, dword [eax + ecx*8 - 0xc]
mov dword [edx - 4], eax
cmp byte [ebp - 0xd], 0
jne 0x10022351
cmp byte [ebx + 0x14], 0
jne 0x10022148
mov eax, esp
movss xmm1, dword [eax]
addss xmm1, dword [esi]
movss xmm0, dword [eax + 4]
addss xmm0, dword [esi + 4]
movss dword [edx], xmm1
movss dword [edx + 4], xmm0
movss xmm1, dword [esi]
subss xmm1, dword [eax]
movss xmm0, dword [esi + 4]
subss xmm0, dword [eax + 4]
mov eax, ecx
add eax, eax
movss dword [edx + 8], xmm1
movss dword [edx + 0xc], xmm0
movss xmm1, dword [esi + ecx*8 - 8]
movss xmm0, dword [esi + ecx*8 - 4]
addss xmm1, dword [edx - 8]
addss xmm0, dword [edx - 4]
movss dword [edx + eax*8 - 0x10], xmm1
movss dword [edx + eax*8 - 0xc], xmm0
movss xmm1, dword [esi + ecx*8 - 8]
movss xmm0, dword [esi + ecx*8 - 4]
subss xmm1, dword [edx - 8]
subss xmm0, dword [edx - 4]
movss dword [edx + eax*8 - 8], xmm1
movss dword [edx + eax*8 - 4], xmm0
mov eax, dword [edi + 0x34]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x20], eax
jle 0x100222b8
movss xmm5, dword [0x1007db04]
inc eax
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], ecx
cmovne eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
jne 0x1002217b
mov eax, dword [edi + 0x34]
jmp 0x10022181
mov eax, dword [ebp - 0xc]
add eax, 3
mov edx, dword [ebp - 0x18]
mov edi, esp
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
movss xmm4, dword [0x1007db34]
movss xmm3, dword [edi + edx*8]
movss xmm2, dword [edi + edx*8 + 4]
lea eax, [ecx*8]
addss xmm3, dword [eax + edi]
addss xmm2, dword [eax + edi + 4]
mov edx, dword [ebp - 0x14]
shl ecx, 4
add ecx, dword [ebp - 0x28]
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
movss xmm0, dword [eax + esi]
movaps xmm1, xmm4
mulss xmm4, xmm2
mulss xmm1, xmm3
addss xmm0, xmm1
movss dword [ecx], xmm0
movss xmm0, dword [eax + esi + 4]
addss xmm0, xmm4
movss dword [ecx + 4], xmm0
movss xmm0, dword [eax + esi]
subss xmm0, xmm1
movss dword [ecx + 8], xmm0
movss xmm0, dword [eax + esi + 4]
mov eax, dword [ebp - 0x1c]
subss xmm0, xmm4
movzx edi, ax
movss dword [ecx + 0xc], xmm0
mov eax, dword [edx + 0x3c]
mov word [eax], di
mov eax, dword [ebp - 0xc]
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 - 0x14]
mov eax, dword [eax + 0x3c]
mov word [eax + 0xc], dx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov word [eax + 0xe], cx
mov ecx, dword [ebp - 0x14]
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 + 8]
mov word [eax + 0x14], di
mov edi, ecx
mov eax, dword [edi + 0x3c]
mov word [eax + 0x16], dx
mov eax, dword [ebp - 0x1c]
add dword [edi + 0x3c], 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebx + 0xc]
jl 0x10022164
movss xmm0, dword [ebp - 0x34]
movss xmm1, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edi + 0x38]
lea esi, [esi + 8]
mov eax, dword [esi - 8]
lea edx, [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [esi - 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + 0x10]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x38]
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x38]
mov eax, dword [edx - 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [edx - 0xc]
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x2c]
movss dword [eax + 0x1c], xmm0
movss dword [eax + 0x20], xmm1
mov eax, dword [edi + 0x38]
mov dword [eax + 0x24], ecx
mov ecx, dword [edi + 0x38]
mov eax, dword [edx - 8]
mov dword [ecx + 0x28], eax
mov eax, dword [edx - 4]
mov dword [ecx + 0x2c], eax
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 0x2c]
movss dword [eax + 0x30], xmm0
movss dword [eax + 0x34], xmm1
mov eax, dword [edi + 0x38]
mov dword [eax + 0x38], ecx
add dword [edi + 0x38], 0x3c
sub dword [ebx + 0xc], 1
jne 0x100222c5
mov eax, dword [ebp - 0x3c]
movzx eax, ax
add dword [edi + 0x34], eax
jmp 0x100229c7
cmp byte [ebx + 0x14], 0
movss xmm6, dword [ebx + 0x18]
movss xmm4, dword [0x1007db34]
movss xmm5, dword [0x1007db04]
subss xmm6, xmm4
mulss xmm6, xmm5
movaps xmm7, xmm6
addss xmm7, xmm4
jne 0x100224d9
mov eax, esp
movaps xmm0, xmm7
mulss xmm0, dword [eax + 4]
movss xmm1, dword [eax]
mulss xmm1, xmm7
addss xmm0, dword [esi + 4]
addss xmm1, dword [esi]
movss dword [edx + 4], xmm0
movss dword [edx], xmm1
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
mulss xmm0, xmm6
mulss xmm1, xmm6
addss xmm0, dword [esi + 4]
addss xmm1, dword [esi]
movss dword [edx + 0xc], xmm0
movss dword [edx + 8], xmm1
movss xmm0, dword [eax]
movss xmm2, dword [esi]
movss xmm1, dword [esi + 4]
mulss xmm0, xmm6
subss xmm2, xmm0
movss xmm0, dword [eax + 4]
mulss xmm0, xmm6
subss xmm1, xmm0
movss dword [edx + 0x10], xmm2
movss dword [edx + 0x14], xmm1
movss xmm0, dword [eax]
movss xmm2, dword [esi]
movss xmm1, dword [esi + 4]
mulss xmm0, xmm7
subss xmm2, xmm0
movaps xmm0, xmm7
mulss xmm0, dword [eax + 4]
mov eax, ecx
shl eax, 5
subss xmm1, xmm0
movss dword [edx + 0x18], xmm2
movss dword [edx + 0x1c], xmm1
movaps xmm1, xmm7
mulss xmm1, dword [edx - 8]
movss xmm0, dword [edx - 4]
mulss xmm0, xmm7
addss xmm1, dword [esi + ecx*8 - 8]
addss xmm0, dword [esi + ecx*8 - 4]
movss dword [eax + edx - 0x20], xmm1
movss dword [eax + edx - 0x1c], xmm0
movss xmm1, dword [edx - 8]
movss xmm0, dword [edx - 4]
mulss xmm0, xmm6
mulss xmm1, xmm6
addss xmm0, dword [esi + ecx*8 - 4]
addss xmm1, dword [esi + ecx*8 - 8]
movss dword [eax + edx - 0x14], xmm0
movss dword [eax + edx - 0x18], xmm1
movss xmm0, dword [edx - 8]
movss xmm2, dword [esi + ecx*8 - 8]
movss xmm1, dword [esi + ecx*8 - 4]
mulss xmm0, xmm6
subss xmm2, xmm0
movss xmm0, dword [edx - 4]
mulss xmm0, xmm6
subss xmm1, xmm0
movss dword [eax + edx - 0x10], xmm2
movaps xmm0, xmm7
movss dword [eax + edx - 0xc], xmm1
mulss xmm0, dword [edx - 8]
movss xmm2, dword [esi + ecx*8 - 8]
movss xmm1, dword [esi + ecx*8 - 4]
subss xmm2, xmm0
movss xmm0, dword [edx - 4]
mulss xmm0, xmm7
subss xmm1, xmm0
movss dword [eax + edx - 8], xmm2
movss dword [eax + edx - 4], xmm1
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], eax
jle 0x100226db
nop dword [eax]
inc eax
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], ecx
cmovne eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
jne 0x10022507
mov ecx, dword [edi + 0x34]
jmp 0x1002250d
mov ecx, dword [ebp - 0x18]
add ecx, 4
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, esp
movss xmm2, dword [ecx + eax*8 + 4]
movss xmm3, dword [ecx + eax*8]
addss xmm2, dword [ecx + edi*8 + 4]
addss xmm3, dword [ecx + edi*8]
mov ecx, dword [ebp - 0x30]
shl ecx, 5
add ecx, edx
mov edi, dword [ebp - 0x14]
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 [esi + eax*8]
movss dword [ecx], xmm0
movaps xmm0, xmm2
addss xmm0, dword [esi + eax*8 + 4]
movss dword [ecx + 4], xmm0
movaps xmm0, xmm4
addss xmm0, dword [esi + eax*8]
movss dword [ecx + 8], xmm0
movaps xmm0, xmm5
addss xmm0, dword [esi + eax*8 + 4]
movss dword [ecx + 0xc], xmm0
movss xmm0, dword [esi + eax*8]
subss xmm0, xmm4
movss dword [ecx + 0x10], xmm0
movss xmm0, dword [esi + eax*8 + 4]
subss xmm0, xmm5
movss dword [ecx + 0x14], xmm0
movss xmm0, dword [esi + eax*8]
subss xmm0, xmm1
movss dword [ecx + 0x18], xmm0
movss xmm0, dword [esi + eax*8 + 4]
mov eax, dword [ebp - 0x1c]
subss xmm0, xmm2
movzx eax, ax
mov dword [ebp - 0xc], eax
movss dword [ecx + 0x1c], xmm0
lea esi, [eax + 1]
mov eax, dword [edi + 0x3c]
mov word [eax], si
mov eax, dword [ebp - 0x18]
movzx edi, ax
mov eax, dword [ebp - 0x14]
lea ecx, [edi + 1]
mov eax, dword [eax + 0x3c]
lea edx, [edi + 2]
mov word [eax + 2], cx
mov ecx, dword [ebp - 0x14]
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 - 0xc]
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 [0x1007db34]
movss xmm5, dword [0x1007db04]
mov word [eax + 0xe], cx
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0xc]
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 - 0x14]
mov word [eax + 0x1a], dx
mov eax, dword [edi + 0x3c]
mov edx, dword [ebp - 0x28]
mov word [eax + 0x1c], cx
mov eax, dword [edi + 0x3c]
mov word [eax + 0x1e], cx
mov eax, dword [edi + 0x3c]
mov ecx, dword [ebp - 0xc]
add ecx, 3
mov word [eax + 0x20], cx
mov eax, dword [edi + 0x3c]
mov ecx, dword [ebx + 0xc]
mov word [eax + 0x22], si
mov eax, dword [ebp - 0x1c]
add dword [edi + 0x3c], 0x24
mov esi, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x20]
jl 0x100224f0
mov edx, dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x34]
add edx, 0x10
movss xmm1, dword [ebp - 0x38]
mov esi, dword [ebp - 0x2c]
nop
mov ecx, dword [edi + 0x38]
lea edx, [edx + 0x20]
mov eax, dword [edx - 0x30]
mov dword [ecx], eax
mov eax, dword [edx - 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x38]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x38]
mov dword [eax + 0x10], esi
mov ecx, dword [edi + 0x38]
mov eax, dword [edx - 0x28]
mov dword [ecx + 0x14], eax
mov eax, dword [edx - 0x24]
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + 0x10]
movss dword [eax + 0x1c], xmm0
movss dword [eax + 0x20], xmm1
mov eax, dword [edi + 0x38]
mov dword [eax + 0x24], ecx
mov ecx, dword [edi + 0x38]
mov eax, dword [edx - 0x20]
mov dword [ecx + 0x28], eax
mov eax, dword [edx - 0x1c]
mov dword [ecx + 0x2c], eax
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + 0x10]
movss dword [eax + 0x30], xmm0
movss dword [eax + 0x34], xmm1
mov eax, dword [edi + 0x38]
mov dword [eax + 0x38], ecx
mov ecx, dword [edi + 0x38]
mov eax, dword [edx - 0x18]
mov dword [ecx + 0x3c], eax
mov eax, dword [edx - 0x14]
mov dword [ecx + 0x40], eax
mov eax, dword [edi + 0x38]
movss dword [eax + 0x44], xmm0
movss dword [eax + 0x48], xmm1
mov eax, dword [edi + 0x38]
mov dword [eax + 0x4c], esi
add dword [edi + 0x38], 0x50
sub dword [ebx + 0xc], 1
jne 0x100226f0
mov eax, dword [ebp - 0x3c]
movzx eax, ax
add dword [edi + 0x34], eax
jmp 0x100229c7
lea eax, [edx*4]
mov ecx, edi
push eax
lea eax, [edx + edx*2]
add eax, eax
push eax
call fcn.10021d20
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x20], eax
jle 0x100229c7
movss xmm6, dword [ebx + 0x18]
xorps xmm7, xmm7
mulss xmm6, dword [0x1007db04]
movss xmm3, dword [ebp - 0x34]
movss xmm4, dword [ebp - 0x38]
movss dword [ebx + 0x18], xmm6
nop
lea ecx, [eax + 1]
xor edx, edx
cmp ecx, esi
mov dword [ebp - 0x18], ecx
cmovne edx, ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x2c], edx
movss xmm0, dword [ecx + edx*8]
movss xmm5, dword [ecx + edx*8 + 4]
subss xmm0, dword [ecx + eax*8]
subss xmm5, dword [ecx + eax*8 + 4]
movaps xmm1, xmm0
movss dword [ebp - 0x3c], xmm0
movaps xmm2, xmm5
mulss xmm1, xmm0
mulss xmm2, xmm5
movss dword [ebp - 0x30], xmm5
addss xmm2, xmm1
comiss xmm2, xmm7
jbe 0x1002286a
movaps xmm0, xmm2
call fcn.100014f0
movss xmm1, dword [0x1007db34]
xorps xmm7, xmm7
divss xmm1, xmm0
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
movss xmm5, dword [ebp - 0x30]
movss xmm3, dword [ebp - 0x34]
movaps xmm0, xmm1
mulss xmm0, dword [ebp - 0x3c]
movss xmm4, dword [ebp - 0x38]
movss xmm6, dword [ebx + 0x18]
mulss xmm5, xmm1
movaps xmm1, xmm6
mov esi, dword [ebx + 0x10]
mulss xmm1, xmm5
movaps xmm2, xmm6
mulss xmm2, xmm0
movaps xmm0, xmm1
addss xmm0, dword [ecx + eax*8]
mov eax, dword [edi + 0x38]
movss dword [eax], xmm0
mov eax, dword [ebp - 8]
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]
movss dword [eax + 8], xmm3
movss dword [eax + 0xc], xmm4
mov eax, dword [edi + 0x38]
mov dword [eax + 0x10], esi
addss xmm0, dword [ecx + edx*8]
mov eax, dword [edi + 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]
movss dword [eax + 0x1c], xmm3
movss dword [eax + 0x20], xmm4
mov eax, dword [edi + 0x38]
mov dword [eax + 0x24], esi
movss xmm0, dword [ecx + edx*8]
mov eax, dword [edi + 0x38]
subss xmm0, xmm1
movss dword [eax + 0x28], xmm0
movss xmm0, dword [ecx + edx*8 + 4]
mov edx, esi
mov eax, dword [edi + 0x38]
addss xmm0, xmm2
movss dword [eax + 0x2c], xmm0
mov eax, dword [edi + 0x38]
movss dword [eax + 0x30], xmm3
movss dword [eax + 0x34], xmm4
mov eax, dword [edi + 0x38]
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x38]
mov edx, dword [ebp - 8]
movss xmm0, dword [ecx + edx*8]
subss xmm0, xmm1
movss dword [eax + 0x3c], xmm0
movss xmm0, dword [ecx + edx*8 + 4]
mov ecx, esi
mov eax, dword [edi + 0x38]
addss xmm0, xmm2
movss dword [eax + 0x40], xmm0
mov eax, dword [edi + 0x38]
movss dword [eax + 0x44], xmm3
movss dword [eax + 0x48], xmm4
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 word [eax + 8], cx
movzx ecx, word [edi + 0x34]
mov eax, dword [edi + 0x3c]
add cx, 3
mov esi, dword [ebx + 0xc]
mov word [eax + 0xa], cx
mov eax, dword [ebp - 0x18]
add dword [edi + 0x3c], 0xc
add dword [edi + 0x34], 4
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x20]
jl 0x100227e0
lea esp, [ebp - 0x48]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041a84
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14