Function at 0x100475f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x1004780c
cmp esi, dword [0x100c712c]
je 0x1004780c
mov eax, dword [0x100f6bd0]
lea edi, [esi + 8]
mov ecx, dword [ebp + 0xc]
add eax, 0xffffffd9
xor eax, 0x920a48d9
movss xmm0, dword [eax + esi]
movss xmm1, dword [eax + esi + 4]
mulss xmm0, dword [ecx]
mulss xmm1, dword [ecx + 4]
addss xmm1, xmm0
movss xmm0, dword [eax + esi + 8]
mulss xmm0, dword [ecx + 8]
mov ecx, edi
mov eax, dword [edi]
addss xmm1, xmm0
mov eax, dword [eax + 0x28]
movss dword [ebp - 4], xmm1
call eax
movss xmm0, dword [ebp - 4]
mov ecx, edi
movss dword [ebx + eax*4 + 0x3200], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [ebp + 0x10]
mov ecx, edi
subss xmm0, dword [ebx + eax*4 + 0x3200]
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
movss dword [ebp - 4], xmm0
call eax
movss xmm0, dword [ebp - 4]
mov ecx, edi
movss dword [ebx + eax*4 + 0x3000], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
call eax
xorps xmm0, xmm0
comiss xmm0, dword [ebx + eax*4 + 0x3000]
jae 0x1004780c
mov eax, dword [0x100f6c6c]
mov ecx, edi
movss xmm0, dword [ebp + 0x10]
add eax, 0xffffffb2
movss xmm1, dword [ebp + 0x14]
xor eax, 0x920a4901
mulss xmm0, dword [eax + esi]
mov eax, dword [0x100f69fc]
mulss xmm1, dword [eax + 0x14]
mov eax, dword [edi]
mulss xmm0, xmm1
mov eax, dword [eax + 0x28]
movss dword [ebp + 0x10], xmm0
call eax
movss xmm0, dword [ebp + 0x10]
mov ecx, edi
movss dword [ebx + eax*4 + 0x3100], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx + 0x28]
mov ecx, edi
call edx
movss xmm0, dword [ebx + esi*4 + 0x3100]
comiss xmm0, dword [ebx + eax*4 + 0x3000]
jbe 0x1004774e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x28]
call eax
mov ecx, edi
movss xmm0, dword [ebx + eax*4 + 0x3000]
mov eax, dword [edi]
movss dword [ebp + 0x10], xmm0
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [ebp + 0x10]
movss dword [ebx + eax*4 + 0x3100], xmm0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x28]
call eax
mov ecx, edi
mov dword [ebx + eax*4 + 0x1000], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
call eax
cmp dword [ebx + eax*4 + 0x1000], 3
jge 0x1004780c
nop dword [eax]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx + 0x28]
mov ecx, edi
call edx
mov ecx, dword [ebx + eax*4 + 0x1000]
mov eax, dword [ebp + 0xc]
movss xmm0, dword [eax + ecx*4]
mov ecx, edi
mulss xmm0, dword [ebx + esi*4 + 0x3100]
mov esi, dword [0x100f6bd0]
mov eax, dword [edi]
add esi, 0xffffffd9
xor esi, 0x920a48d9
add esi, dword [ebp + 8]
movss dword [ebp + 0x10], xmm0
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [ebx + eax*4 + 0x1000]
addss xmm0, dword [esi + eax*4]
movss dword [esi + eax*4], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
call eax
inc dword [ebx + eax*4 + 0x1000]
mov ecx, edi
lea eax, [ebx + eax*4]
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
call eax
cmp dword [ebx + eax*4 + 0x1000], 3
jl 0x10047780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10