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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cf75
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x412008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebx + 0xc]
mov esi, edx
cmp dword [edx + 0x14], 0x10
jb 0x59dd5d
mov esi, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x59dd85
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x59dd70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov esi, dword [eax + 0xc]
and ecx, edi
add eax, 4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov esi, dword [esi + ecx*8 + 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x59ddec
lea eax, [esi + 8]
push eax
push edx
call fcn.0059f010
test al, al
je 0x59ddd2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
cmp esi, dword [ecx + eax*8]
je 0x59dde9
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push dword [ebx + 0xc]
call fcn.0059f010
test al, al
jne 0x59ddb4
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x59ddec
mov eax, dword [ebx + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
jmp 0x59dfe5
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
cmp dword [esi + 8], 0x4924924
jne 0x59de03
push 0x40e6b4
call dword [0x40e0a4]
lea eax, [esi + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x34], 0
call fcn.005a36b1
mov ecx, eax
xorps xmm0, xmm0
mov eax, dword [ebx + 0xc]
lea edx, [ecx + 8]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
add esp, 4
mov dword [edx + 0x14], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], edx
movups xmmword [edx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edx + 0x10], xmm0
xorps xmm0, xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
movups xmmword [edx + 0x18], xmm0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0xf
mov byte [edx + 0x18], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
inc eax
movss xmm3, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x40ebb0]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x40ebb0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x59df8c
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.005a4495
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.005a4420
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [esi + 0x1c]
cmp eax, ecx
jae 0x59df1e
cmp eax, 0x200
jae 0x59df1c
shl eax, 3
cmp eax, ecx
jae 0x59df1e
mov eax, ecx
push eax
mov ecx, esi
call fcn.0059e6b0
mov edx, dword [esi + 0xc]
mov ecx, edi
and ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
mov esi, dword [edx + ecx*8 + 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp esi, eax
jne 0x59df4d
mov dword [ebp - 0x2c], 0
jmp 0x59df86
lea eax, [esi + 8]
push eax
push dword [ebp - 0x1c]
call fcn.0059f010
test al, al
je 0x59df7e
nop dword [eax]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
cmp esi, dword [ecx + eax*8]
je 0x59dfba
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push dword [ebp - 0x1c]
call fcn.0059f010
test al, al
jne 0x59df60
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
inc dword [esi + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [edx], ecx
mov dword [eax + 4], ecx
and edi, dword [esi + 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov edx, dword [esi + 0xc]
mov esi, dword [edx + edi*8]
cmp esi, dword [ecx]
mov ecx, dword [ebp - 0x34]
jne 0x59dfc6
mov dword [edx + edi*8], ecx
jmp 0x59dfd8
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], 0
jmp 0x59df86
cmp esi, eax
jne 0x59dfcf
mov dword [edx + edi*8], ecx
jmp 0x59dfdc
mov eax, dword [ebp - 0x2c]
cmp dword [edx + edi*8 + 4], eax
jne 0x59dfdc
mov dword [edx + edi*8 + 4], ecx
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8