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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d49d
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 eax, ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
mov edx, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x5a2c4a
mov edx, dword [ebx]
mov esi, dword [ebx + 0x10]
xor ecx, ecx
mov edi, 0x811c9dc5
test esi, esi
je 0x5a2c6c
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, esi
jb 0x5a2c58
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0xc]
and ecx, edi
add eax, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov esi, dword [edx + ecx*8 + 4]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp esi, eax
je 0x5a2cd4
lea eax, [esi + 8]
push eax
push ebx
call fcn.0059f010
test al, al
je 0x5a2cbc
nop dword [eax + eax]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp esi, dword [ecx + eax*8]
je 0x5a2cd1
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.0059f010
test al, al
jne 0x5a2ca0
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
test esi, esi
je 0x5a2cd4
mov eax, dword [ebp + 8]
mov byte [eax + 4], 0
jmp 0x5a2e87
mov dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x3ffffff
jne 0x5a2ceb
push 0x40e6b4
call dword [0x40e0a4]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x40
mov dword [ebp - 0x24], 0
call fcn.005a36b1
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
lea eax, [esi + 8]
push ebx
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.0059d030
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.005a31d0
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 2
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x40ebb0]
mov eax, dword [ebx + 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 0x5a2e36
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
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x5a2dd3
cmp eax, 0x200
jae 0x5a2dd1
shl eax, 3
cmp eax, ecx
jae 0x5a2dd3
mov eax, ecx
push eax
mov ecx, ebx
call fcn.0059e6b0
mov edx, dword [ebx + 0xc]
mov ecx, edi
and ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0xc], eax
mov esi, dword [edx + ecx*8 + 4]
cmp esi, eax
jne 0x5a2dfd
mov dword [ebp - 0x1c], 0
jmp 0x5a2e33
lea eax, [esi + 8]
push eax
push dword [ebp - 0x14]
call fcn.0059f010
test al, al
je 0x5a2e2e
nop dword [eax]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0xc]
cmp esi, dword [ecx + eax*8]
je 0x5a2e61
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push dword [ebp - 0x14]
call fcn.0059f010
test al, al
jne 0x5a2e10
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
inc dword [ebx + 8]
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [edx], esi
mov dword [eax + 4], esi
and edi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ecx + edi*8]
cmp ebx, dword [esi]
mov esi, dword [ebp - 0x24]
jne 0x5a2e6d
mov dword [ecx + edi*8], esi
jmp 0x5a2e7c
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x1c], 0
jmp 0x5a2e33
cmp ebx, eax
jne 0x5a2e76
mov dword [ecx + edi*8], esi
jmp 0x5a2e80
cmp dword [ecx + edi*8 + 4], edx
jne 0x5a2e80
mov dword [ecx + edi*8 + 4], esi
mov eax, dword [ebp + 8]
mov byte [eax + 4], 1
mov dword [eax], esi
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