Function at 0x10061430
Capabilities:
Encode data using xor

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
mov eax, dword [0x10098010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebx + 8]
push edi
mov dword [ebp - 0x2c], esi
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x5c]
cmp ecx, 0x3e8
jle 0x10061470
mov ecx, 0x3e8
jmp 0x10061477
xor eax, eax
test ecx, ecx
cmovs ecx, eax
mov dword [ebp - 8], ecx
cmp edx, 0x3e8
jle 0x10061489
mov edx, 0x3e8
jmp 0x10061493
mov eax, 1
cmp edx, eax
cmovl edx, eax
cmp dword [esi + 0x48], 0x3c7
movss xmm2, dword [esi + 0x2c]
addss xmm2, xmm2
mov dword [ebp - 0x34], edx
subss xmm2, dword [0x1008d650]
jne 0x100614ce
movss xmm0, dword [esi + 0x4c]
ucomiss xmm0, dword [0x1008d504]
lahf
test ah, 0x44
jnp 0x100614ce
mulss xmm2, dword [esi + 0x50]
movss dword [ebp - 0x30], xmm2
jmp 0x100614e9
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
divss xmm1, xmm0
movss dword [ebp - 0x30], xmm1
movsd xmm0, qword [0x100eb868]
call fcn.1007ce50
mov dword [ebp - 0xc], eax
call fcn.100167e0
movss xmm1, dword [esi + 0x2c]
mov ecx, dword [ebx + 0xc]
movaps xmm0, xmm1
addss xmm0, xmm1
mov dword [ebp - 0x18], eax
lea edi, [ecx + ecx*2]
add edi, edi
cvttss2si eax, xmm0
movss xmm0, dword [esi + 0x30]
addss xmm0, dword [esi + 0x18]
movd xmm2, edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
cvtdq2ps xmm2, xmm2
addss xmm0, dword [0x1008d598]
addss xmm0, xmm2
cvttss2si esi, xmm0
movss xmm0, dword [eax + 0x14]
subss xmm0, xmm1
mov dword [ebp - 0x28], esi
movss xmm1, dword [eax + 0x10]
cvttss2si edx, xmm0
movaps xmm0, xmm1
mulss xmm1, dword [0x1008d560]
mov dword [ebp - 0x14], edx
mulss xmm0, dword [0x1008d584]
cvttss2si ecx, xmm0
shl ecx, 0x18
mov eax, ecx
mov byte [ebp - 0x1e], cl
shr eax, 0x10
mov byte [ebp - 0x20], al
mov eax, ecx
shr ecx, 0x18
mov byte [ebp - 0x1d], cl
cvttss2si ecx, xmm1
shr eax, 8
mov byte [ebp - 0x1f], al
shl ecx, 0x18
mov eax, ecx
mov byte [ebp - 0x1a], cl
shr eax, 0x10
mov byte [ebp - 0x1c], al
mov eax, ecx
shr ecx, 0x18
shr eax, 8
mov byte [ebp - 0x19], cl
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 0x1b], al
push dword [ebp - 0x1c]
push 4
push ecx
mov ecx, dword [ebp - 0x18]
push esi
push edx
call fcn.10076f60
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
push esi
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.10076f60
mov ecx, dword [ebp - 0x18]
push esi
push 4
push 1
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.10076f60
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
push esi
push 4
push 1
push dword [ebp - 0x28]
dec ecx
add eax, ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.10076f60
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
add eax, 3
push esi
push 1
push dword [ebp - 0x24]
push eax
push dword [ebp - 0x14]
call fcn.10076f60
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x54], 0
jne 0x1006178b
call fcn.100167e0
mov esi, eax
movd xmm1, edi
mov eax, dword [ebp - 0xc]
mov edx, eax
mov ecx, eax
mov byte [ebp - 0x12], al
shr ecx, 8
mov byte [ebp - 0x13], cl
mov ecx, dword [ebp - 0x2c]
cvtdq2ps xmm1, xmm1
shr edx, 0x10
mov byte [ebp - 0x14], dl
cvttss2si eax, dword [ecx + 0x10]
movss xmm0, dword [ecx + 0x30]
addss xmm0, dword [ecx + 0x18]
mov byte [ebp - 0x11], al
cvttss2si eax, dword [ebp - 0x30]
addss xmm0, dword [0x1008d650]
push dword [ebp - 0x14]
push 2
push eax
addss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0x14]
subss xmm0, dword [ecx + 0x2c]
push eax
mov ecx, esi
addss xmm0, dword [0x1008d598]
cvttss2si eax, xmm0
push eax
call fcn.10076f60
mov eax, 8
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], 0x400124
call fcn.1007cd80
mov eax, esp
lea esi, [ebp - 0xb]
mov dword [ebp - 0x14], eax
mov ecx, eax
sub esi, eax
mov edx, 2
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x24
mov byte [ecx - 1], al
sub edx, 1
jne 0x100616c3
mov eax, dword [ebp - 0x14]
movd xmm0, dword [ebp - 0x34]
cvtdq2pd xmm0, xmm0
mov byte [eax + 2], dl
mov eax, dword [ebp - 8]
mulsd xmm0, qword [0x1008d618]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
comisd xmm0, xmm1
jbe 0x1006178b
mov esi, dword [ebp - 0x2c]
cmp dword [esi + 0x60], 0xffffffff
je 0x1006178b
test eax, eax
js 0x1006178b
call fcn.100167e0
movss xmm1, dword [esi + 0x14]
sub esp, 0x18
movss xmm0, dword [esi + 0x30]
mov ecx, esp
subss xmm1, dword [esi + 0x2c]
addss xmm0, dword [esi + 0x18]
cvttss2si eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x14]
addss xmm1, dword [0x1008d598]
addss xmm0, dword [0x1008d598]
movd xmm2, edi
cvtdq2ps xmm2, xmm2
movzx esi, al
lea eax, [ebp - 8]
shl esi, 0x18
push eax
or esi, 0xffffff
addss xmm1, dword [ebp - 0x30]
addss xmm0, xmm2
movss dword [ebp - 0x38], xmm1
movss dword [ebp - 0x34], xmm0
call fcn.10066020
add esp, 4
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0x13
push 0x100e956c
push esi
call fcn.100771b0
lea esp, [ebp - 0x40]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ba06
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8