Function at 0x10016d60
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], 0x10
jb 0x10016d93
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [esi + 0x10], ecx
jbe 0x10016db5
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [esi + 0x10]
jb 0x10016da0
mov eax, dword [ebp - 4]
push edx
push esi
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.10020dd0
mov edx, dword [eax + 4]
test edx, edx
jne 0x10016dcf
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp edx, dword [eax + 0x2064]
jne 0x10016dfc
cmp dword [esi + 0x14], 0x10
jb 0x10016de2
mov esi, dword [esi]
push esi
push str.CreateWaterControl:_Failed_to_create_water_control_point__rigidbody__s_not_found_n
call dword [0x100e91c0]
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 0x10016e4b
fcom st(2)
fnstsw ax
test ah, 0x41
je 0x10016e4b
fstp st(0)
fxch st(1)
fst dword [ebp - 0x2c]
jmp 0x10016e60
fcom st(1)
fnstsw ax
test ah, 5
jp 0x10016e59
fstp dword [ebp - 0x2c]
jmp 0x10016e5e
fstp st(0)
fst dword [ebp - 0x2c]
fxch st(1)
fld dword [ebp - 8]
fcom st(2)
fnstsw ax
test ah, 5
jp 0x10016e7b
fcom st(1)
fnstsw ax
test ah, 0x41
je 0x10016e7b
fstp st(2)
fstp st(1)
jmp 0x10016e8c
fstp st(1)
fcom st(1)
fnstsw ax
test ah, 5
jp 0x10016e8a
fstp st(1)
jmp 0x10016e8c
fstp st(0)
mov ecx, dword [edx + 0xbc]
mov eax, dword [edx + 0xb8]
fstp dword [ebp - 0x28]
cmp eax, ecx
jne 0x10016f60
lea esi, [eax + eax]
test eax, eax
jne 0x10016eaf
mov esi, 1
mov dword [ebp - 0xc], esi
cmp ecx, esi
jge 0x10016f60
test esi, esi
je 0x10016ed8
mov eax, esi
shl eax, 5
push 0x10
push eax
call fcn.10076ef0
mov edx, dword [ebp - 0x10]
add esp, 8
mov edi, eax
mov dword [ebp - 4], eax
jmp 0x10016edd
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [edx + 0xb8]
test eax, eax
jle 0x10016f1b
xor ecx, ecx
mov dword [ebp - 8], ecx
lea esp, [esp]
mov esi, dword [edx + 0xc0]
add edi, ecx
add esi, ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
sub eax, 1
jne 0x10016ef0
mov eax, dword [edx + 0xb8]
mov esi, dword [ebp - 0xc]
mov ecx, dword [edx + 0xc0]
test ecx, ecx
je 0x10016f4a
cmp byte [edx + 0xc4], 0
je 0x10016f40
push ecx
call fcn.10076f00
mov edx, dword [ebp - 0x10]
add esp, 4
mov eax, dword [edx + 0xb8]
mov dword [edx + 0xc0], 0
mov edi, dword [ebp - 4]
mov byte [edx + 0xc4], 1
mov dword [edx + 0xc0], edi
mov dword [edx + 0xbc], esi
mov edi, dword [edx + 0xc0]
lea esi, [ebp - 0x40]
shl eax, 5
mov ecx, 8
add edi, eax
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