Function at 0x10047820
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 0x10047aeb
cmp esi, dword [0x100c712c]
je 0x10047aeb
mov eax, dword [esi + 8]
lea edi, [esi + 8]
mov ecx, edi
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [ebp + 0x10]
mov ecx, edi
movss dword [ebx + eax*4 + 0x3300], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [ebx + eax*4 + 0x3300]
comiss xmm0, dword [0x100bc510]
jbe 0x1004788a
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x28]
call eax
mov dword [ebx + eax*4 + 0x3300], 0x41f00000
mov eax, dword [0x100f6bd0]
mov ecx, dword [ebp + 0xc]
add eax, 0xffffffd9
xor eax, 0x920a48d9
movss xmm0, dword [ecx]
movss xmm1, dword [eax + esi + 4]
mulss xmm0, dword [eax + esi]
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
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx + 0x28]
mov ecx, edi
call edx
movss xmm0, dword [ebx + esi*4 + 0x3300]
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]
movss dword [ebx + eax*4 + 0x3000], xmm0
lea eax, [ebx + 0x3000]
test eax, eax
je 0x10047aeb
mov eax, dword [0x100f6c6c]
mov ecx, edi
mov edx, dword [ebp + 8]
add eax, 0xffffffb2
movss xmm1, dword [ebp + 0x10]
xor eax, 0x920a4901
mulss xmm1, dword [ebp + 0x14]
movss xmm0, dword [eax + edx]
mov eax, dword [0x100f69fc]
mulss xmm0, 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 0x100479cb
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 0x10047aeb
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 edx, dword [ebp + 8]
push edx
mov eax, dword [ebx + eax*4 + 0x1000]
addss xmm0, dword [esi + eax*4]
movss dword [esi + eax*4], xmm0
mov ecx, dword [0x100f6a04]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call 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 eax, dword [edi]
mov esi, dword [0x100f6a04]
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 + 0x6c]
movss dword [esi + eax*4 + 0x6c], 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 0x100479f6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10