Function at 0x10089a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov edx, dword [ebp + 0x10]
mov eax, edx
sar eax, 1
mov ecx, edx
mov dword [ebp - 0x20], eax
shl eax, 2
push esi
mov esi, dword [ebp + 8]
sar ecx, 2
push edi
mov dword [ebp - 0x10], ecx
lea edi, [eax + 7]
mov ecx, edx
mov dword [ebp - 0x30], eax
mov edx, dword [esi + 0x5c]
and edi, 0xfffffff8
add dword [esi + 8], edi
sar ecx, 3
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x10089a6e
mov eax, dword [esi + 0x64]
lea ecx, [eax + edi]
cmp ecx, dword [esi + 0x68]
jg 0x10089a7f
mov dword [esi + 0x64], ecx
lea ecx, [edx + eax]
jmp 0x10089a81
test edi, edi
je 0x10089a7f
push edi
call fcn.100b304b
add esp, 4
mov ecx, eax
jmp 0x10089a81
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [esi + eax*4 + 0x438], ecx
add dword [esi + 8], edi
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10089aa6
mov edx, dword [esi + 0x64]
add edi, edx
cmp edi, dword [esi + 0x68]
jg 0x10089aba
mov dword [esi + 0x64], edi
add ecx, edx
jmp 0x10089abc
test edi, edi
je 0x10089aba
push edi
call fcn.100b304b
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0xc]
jmp 0x10089abc
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [esi + eax*4 + 0x440], ecx
mov edi, dword [esi + 0x5c]
lea eax, [edx*4 + 7]
and eax, 0xfffffff8
add dword [esi + 8], eax
test edi, edi
je 0x10089aeb
mov ecx, dword [esi + 0x64]
add eax, ecx
cmp eax, dword [esi + 0x68]
jg 0x10089aff
mov dword [esi + 0x64], eax
add edi, ecx
jmp 0x10089b01
test eax, eax
je 0x10089aff
push eax
call fcn.100b304b
mov edx, dword [ebp - 0x10]
add esp, 4
mov edi, eax
jmp 0x10089b01
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], edi
mov ecx, dword [esi + eax*4 + 0x438]
mov dword [esi + eax*4 + 0x448], edi
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x10089d8e
mov eax, dword [esi + eax*4 + 0x440]
test eax, eax
je 0x10089d8e
test edi, edi
je 0x10089d8e
movd xmm1, dword [ebp + 0x10]
movss xmm2, dword [0x100e4b70]
cvtdq2ps xmm1, xmm1
movss dword [ebp - 0xc], xmm1
test edx, edx
jle 0x10089c4a
mov esi, dword [ebp - 0x28]
lea ecx, [eax + 4]
mov edi, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 4], ecx
mov ecx, esi
sub ecx, eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], ecx
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
call fcn.100b8a90
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [ebp - 0x14]
movss dword [esi], xmm1
call fcn.100b9470
xorps xmm0, xmmword [0x100e9280]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
cvtsd2ss xmm0, xmm0
movss dword [ecx + eax], xmm0
movd xmm0, dword [ebp - 0x18]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100e4b70]
divss xmm0, dword [ebp - 0xc]
mulss xmm0, dword [0x100e2950]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
call fcn.100b8a90
mov eax, dword [ebp - 4]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [ebp - 0x14]
mulss xmm1, dword [0x100e2950]
movss dword [eax - 4], xmm1
call fcn.100b9470
mov eax, dword [ebp - 4]
lea esi, [esi + 8]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x18], 2
add edx, 4
movss xmm1, dword [ebp - 0xc]
movss xmm2, dword [0x100e4b70]
cvtsd2ss xmm0, xmm0
mov dword [ebp - 0x1c], edx
mulss xmm0, dword [0x100e2950]
movss dword [eax], xmm0
add eax, 8
mov dword [ebp - 4], eax
sub edi, 1
jne 0x10089b73
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x10089cbd
mov esi, 2
mov dword [ebp - 0x1c], eax
nop dword [eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x2c], xmm0
call fcn.100b8a90
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [ebp - 0x2c]
movss dword [edi], xmm1
call fcn.100b9470
xorps xmm0, xmmword [0x100e9280]
lea edi, [edi + 8]
movss xmm1, dword [ebp - 0xc]
add esi, 4
sub dword [ebp - 0x1c], 1
movss xmm2, dword [0x100e4b70]
cvtsd2ss xmm0, xmm0
movss dword [edi - 4], xmm0
jne 0x10089c60
mov esi, dword [ebp + 8]
push dword [ebp - 0x30]
push esi
call fcn.1008b0f0
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [esi + ecx*4 + 0x450], eax
test eax, eax
je 0x10089d8e
mov eax, dword [ebp - 0x20]
xor edi, edi
test eax, eax
jle 0x10089d58
movsd xmm1, qword [0x100e5670]
mov esi, dword [ebp - 0x30]
movd xmm2, eax
cvtdq2pd xmm2, xmm2
movsd qword [ebp - 0x2c], xmm2
nop
xorps xmm0, xmm0
cvtsi2sd xmm0, edi
addsd xmm0, xmm1
divsd xmm0, xmm2
mulsd xmm0, xmm1
mulsd xmm0, qword [0x100e9228]
call fcn.100b9470
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x100e9220]
call fcn.100b9470
movsd xmm1, qword [0x100e5670]
movsd xmm2, qword [ebp - 0x2c]
cvtsd2ss xmm0, xmm0
movss dword [esi + edi*4], xmm0
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x10089d00
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
push esi
call fcn.1008b0f0
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [esi + eax*4 + 0x458], ecx
test ecx, ecx
je 0x10089d8e
push ecx
push dword [ebp + 0x10]
call fcn.10087830
add esp, 8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x70], 3
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret