Function at 0x10057100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
movss dword [ebp - 4], xmm3
push esi
push edi
test ebx, ebx
je 0x100573e6
cmp ebx, dword [0x100fc0a4]
je 0x100573e6
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [ebp - 4]
lea ecx, [ebx + 8]
movss dword [eax*4 + 0x10128388], xmm0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [eax*4 + 0x10128388]
comiss xmm0, dword [0x100f1304]
jbe 0x1005716f
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
mov dword [eax*4 + 0x10128388], 0x41f00000
mov eax, dword [0x1012bb88]
mov ecx, dword [ebp + 0xc]
add eax, 0xffffffd9
xor eax, 0x418206c9
movss xmm0, dword [ecx]
movss xmm1, dword [eax + ebx + 4]
mulss xmm0, dword [eax + ebx]
mulss xmm1, dword [ecx + 4]
addss xmm1, xmm0
movss xmm0, dword [eax + ebx + 8]
mulss xmm0, dword [ecx + 8]
lea ecx, [ebx + 8]
mov eax, dword [ebx + 8]
addss xmm1, xmm0
mov eax, dword [eax + 0x28]
movss dword [ebp + 8], xmm1
call eax
movss xmm0, dword [ebp + 8]
lea ecx, [ebx + 8]
movss dword [eax*4 + 0x10128288], xmm0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [ebx + 8]
mov esi, eax
mov edx, dword [ecx + 0x28]
lea ecx, [ebx + 8]
call edx
movss xmm0, dword [esi*4 + 0x10128388]
lea ecx, [ebx + 8]
subss xmm0, dword [eax*4 + 0x10128288]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
movss dword [ebp + 8], xmm0
call eax
movss xmm0, dword [ebp + 8]
lea ecx, [ebx + 8]
movss xmm1, dword [ebp - 4]
mulss xmm1, dword [ebp + 0x10]
movss dword [eax*4 + 0x10128088], xmm0
mov eax, dword [0x1012bc24]
add eax, 0xffffffb2
xor eax, 0x418206f1
movss xmm0, dword [eax + ebx]
mov eax, dword [0x1012b9b4]
mulss xmm0, dword [eax + 0x14]
mov eax, dword [ebx + 8]
mulss xmm0, xmm1
mov eax, dword [eax + 0x28]
movss dword [ebp + 8], xmm0
call eax
movss xmm0, dword [ebp + 8]
lea ecx, [ebx + 8]
movss dword [eax*4 + 0x10128188], xmm0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [ebx + 8]
mov esi, eax
mov edx, dword [ecx + 0x28]
lea ecx, [ebx + 8]
call edx
movss xmm0, dword [esi*4 + 0x10128188]
comiss xmm0, dword [eax*4 + 0x10128088]
jbe 0x100572b1
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
lea ecx, [ebx + 8]
movss xmm0, dword [eax*4 + 0x10128088]
mov eax, dword [ebx + 8]
movss dword [ebp + 8], xmm0
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [ebp + 8]
movss dword [eax*4 + 0x10128188], xmm0
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
lea ecx, [ebx + 8]
mov dword [eax*4 + 0x10126088], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
cmp dword [eax*4 + 0x10126088], 3
jge 0x100573e6
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [ebx + 8]
mov esi, eax
mov edx, dword [ecx + 0x28]
lea ecx, [ebx + 8]
call edx
mov ecx, dword [eax*4 + 0x10126088]
mov eax, dword [ebp + 0xc]
movss xmm0, dword [eax + ecx*4]
lea ecx, [ebx + 8]
mulss xmm0, dword [esi*4 + 0x10128188]
mov eax, dword [ebx + 8]
mov esi, dword [0x1012bb88]
add esi, 0xffffffd9
movss dword [ebp + 8], xmm0
xor esi, 0x418206c9
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [ebp + 8]
push ebx
mov eax, dword [eax*4 + 0x10126088]
lea eax, [esi + eax*4]
addss xmm0, dword [eax + ebx]
movss dword [eax + ebx], xmm0
mov ecx, dword [0x1012b9bc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [ebx + 8]
mov esi, eax
mov edx, dword [ecx + 0x28]
lea ecx, [ebx + 8]
call edx
mov ecx, dword [eax*4 + 0x10126088]
mov eax, dword [ebp + 0xc]
movss xmm0, dword [eax + ecx*4]
lea ecx, [ebx + 8]
mulss xmm0, dword [esi*4 + 0x10128188]
mov eax, dword [ebx + 8]
mov esi, dword [0x1012b9bc]
movss dword [ebp + 8], xmm0
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [ebp + 8]
lea ecx, [ebx + 8]
mov eax, dword [eax*4 + 0x10126088]
addss xmm0, dword [esi + eax*4 + 0x6c]
movss dword [esi + eax*4 + 0x6c], xmm0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
inc dword [eax*4 + 0x10126088]
lea ecx, [ebx + 8]
lea eax, [eax*4 + 0x10126088]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
call eax
cmp dword [eax*4 + 0x10126088], 3
jl 0x100572e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc