Function at 0x10017070
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebx + 8]
push esi
mov esi, dword [ebx + 0x10]
add eax, 0x2060
push edi
mov dword [ebp - 4], eax
mov edi, esi
cmp dword [esi + 0x14], 0xf
jbe 0x100170a3
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [esi + 0x10], ecx
jbe 0x100170c5
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [esi + 0x10]
jb 0x100170b0
mov eax, dword [ebp - 4]
push edx
push esi
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.100210c0
mov edx, dword [eax + 4]
test edx, edx
jne 0x100170df
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp edx, dword [eax + 0x2064]
jne 0x1001710c
cmp dword [esi + 0x14], 0xf
jbe 0x100170f2
mov esi, dword [esi]
push esi
push str.CreateWaterControl:_Failed_to_create_water_control_point__rigidbody__s_not_found_n
call dword [0x100ea218]
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
fld dword [esi + 0x28]
fstp dword [ebp - 0xc]
fld dword [esi + 0x2c]
fstp dword [ebp - 8]
fld dword [esi + 0x18]
fstp dword [ebp - 0x40]
fld dword [esi + 0x1c]
fstp dword [ebp - 0x3c]
fld dword [esi + 0x20]
mov edx, dword [edx + 0x20]
fstp dword [ebp - 0x38]
fldz
fst dword [ebp - 0x34]
fld dword [esi + 0x24]
fstp dword [ebp - 0x30]
fld1
fld dword [ebp - 0xc]
fcom st(1)
mov dword [ebp - 0x10], edx
fnstsw ax
test ah, 5
jp 0x1001715b
fcom st(2)
fnstsw ax
test ah, 0x41
je 0x1001715b
fstp st(0)
fxch st(1)
fst dword [ebp - 0x2c]
jmp 0x10017170
fcom st(1)
fnstsw ax
test ah, 5
jp 0x10017169
fstp dword [ebp - 0x2c]
jmp 0x1001716e
fstp st(0)
fst dword [ebp - 0x2c]
fxch st(1)
fld dword [ebp - 8]
fcom st(2)
fnstsw ax
test ah, 5
jp 0x1001718b
fcom st(1)
fnstsw ax
test ah, 0x41
je 0x1001718b
fstp st(2)
fstp st(1)
jmp 0x1001719c
fstp st(1)
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1001719a
fstp st(1)
jmp 0x1001719c
fstp st(0)
mov eax, dword [edx + 0xbc]
mov esi, dword [edx + 0xb8]
fstp dword [ebp - 0x28]
cmp esi, eax
jne 0x10017256
test esi, esi
je 0x100171bb
add esi, esi
jmp 0x100171c0
mov esi, 1
mov dword [ebp - 0xc], esi
cmp eax, esi
jge 0x10017256
test esi, esi
je 0x100171e9
mov eax, esi
shl eax, 5
push 0x10
push eax
call fcn.10077ec0
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, eax
mov dword [ebp - 4], eax
jmp 0x100171ee
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [edx + 0xb8]
mov dword [ebp - 8], eax
test eax, eax
jle 0x10017221
xor eax, eax
lea ecx, [ecx]
mov esi, dword [edx + 0xc0]
lea edi, [eax + ecx]
add esi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
add eax, 0x20
sub dword [ebp - 8], 1
jne 0x10017200
mov esi, dword [ebp - 0xc]
mov eax, dword [edx + 0xc0]
test eax, eax
je 0x10017240
cmp byte [edx + 0xc4], 0
je 0x10017240
push eax
call fcn.10077ed0
mov edx, dword [ebp - 0x10]
add esp, 4
mov eax, dword [ebp - 4]
mov byte [edx + 0xc4], 1
mov dword [edx + 0xc0], eax
mov dword [edx + 0xbc], esi
mov edi, dword [edx + 0xb8]
lea esi, [ebp - 0x40]
shl edi, 5
mov ecx, 8
add edi, dword [edx + 0xc0]
rep movsd dword es:[edi], dword [esi]
inc dword [edx + 0xb8]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc