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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d45d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x412008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 0xc]
mov esi, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x5a299a
mov esi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x10], ecx
jbe 0x5a29c5
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebx + 0x10]
jb 0x5a29b0
mov dword [ebp - 0x14], edx
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
and eax, edx
lea edx, [edi + 4]
mov edi, dword [edx]
mov dword [ebp + 0xc], edx
mov esi, dword [ecx + eax*8 + 4]
cmp esi, edi
je 0x5a2a2d
mov edi, dword [ecx + eax*8]
lea eax, [esi + 8]
push eax
push ebx
call fcn.0059f010
test al, al
je 0x5a2a05
nop
cmp esi, edi
je 0x5a2a28
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.0059f010
test al, al
jne 0x5a29f0
mov edi, dword [esi]
test esi, esi
je 0x5a2a2a
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
cmp dword [esi + 8], 0x3ffffff
jne 0x5a2a44
push 0x40e6b4
call dword [0x40e0a4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 0
push 0x40
mov dword [ebp - 0x24], 0
call fcn.005a36b1
add esp, 4
mov dword [ebp - 0x24], eax
add eax, 8
mov ecx, eax
mov dword [ebp - 0x10], eax
push ebx
call fcn.0059d030
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
push ecx
mov dword [ebp - 0x1c], ecx
push eax
mov dword [ebp - 0x1c], 0
call fcn.005a2510
mov dword [ebp - 4], 2
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0x1c]
inc eax
movss xmm3, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x40ebb0]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x40ebb0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x5a2b9f
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x20], xmm0
fld qword [ebp - 0x20]
fstp qword [esp]
call fcn.005a4495
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.005a4420
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x5a2b2f
cmp ebx, 0x200
jae 0x5a2b2d
shl ebx, 3
cmp ebx, ecx
jae 0x5a2b2f
mov ebx, ecx
push ebx
mov ecx, esi
call fcn.0059e6b0
mov eax, dword [esi + 0x18]
mov ebx, dword [ebp - 0x14]
and eax, ebx
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
mov esi, dword [ecx + eax*8 + 4]
mov edi, dword [edx]
cmp esi, edi
jne 0x5a2b5b
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
jmp 0x5a2ba2
mov edi, dword [ecx + eax*8]
lea eax, [esi + 8]
push eax
push dword [ebp - 0x10]
call fcn.0059f010
test al, al
je 0x5a2b87
nop
cmp esi, edi
je 0x5a2b91
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push dword [ebp - 0x10]
call fcn.0059f010
test al, al
jne 0x5a2b70
mov edi, dword [esi]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x18]
jmp 0x5a2ba2
mov edi, esi
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x18]
jmp 0x5a2ba2
mov ebx, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x24]
inc dword [esi + 8]
mov dword [ebp - 0x1c], eax
mov dword [ecx + 4], eax
mov dword [ecx], edi
mov dword [eax], ecx
mov dword [edi + 4], ecx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0xc]
and eax, ebx
mov ebx, dword [ebp + 0xc]
mov esi, dword [edx + eax*8]
cmp esi, dword [ebx]
jne 0x5a2bcf
mov dword [edx + eax*8], ecx
jmp 0x5a2be1
cmp esi, edi
jne 0x5a2bd8
mov dword [edx + eax*8], ecx
jmp 0x5a2be5
mov esi, dword [ebp - 0x1c]
cmp dword [edx + eax*8 + 4], esi
jne 0x5a2be5
mov dword [edx + eax*8 + 4], ecx
mov eax, dword [ebp + 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
pop ebx
mov esp, ebp
pop ebp
ret 8