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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d4dd
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 0x5a2f7a
mov edx, dword [ebx]
mov esi, dword [ebx + 0x10]
xor ecx, ecx
mov edi, 0x811c9dc5
test esi, esi
je 0x5a2f9c
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, esi
jb 0x5a2f88
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 0x5a3004
lea eax, [esi + 8]
push eax
push ebx
call fcn.0059f010
test al, al
je 0x5a2fec
nop dword [eax + eax]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp esi, dword [ecx + eax*8]
je 0x5a3001
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.0059f010
test al, al
jne 0x5a2fd0
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
test esi, esi
je 0x5a3004
mov eax, dword [ebp + 8]
mov byte [eax + 4], 0
jmp 0x5a31b7
mov dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x4924924
jne 0x5a301b
push 0x40e6b4
call dword [0x40e0a4]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x38
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
push eax
lea ecx, [esi + 0x20]
call fcn.0059d030
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 0x5a3166
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 0x5a3100
cmp eax, 0x200
jae 0x5a30fe
shl eax, 3
cmp eax, ecx
jae 0x5a3100
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 0x5a312a
mov dword [ebp - 0x1c], 0
jmp 0x5a3163
lea eax, [esi + 8]
push eax
push dword [ebp - 0x14]
call fcn.0059f010
test al, al
je 0x5a315e
nop word [eax + eax]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0xc]
cmp esi, dword [ecx + eax*8]
je 0x5a3191
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push dword [ebp - 0x14]
call fcn.0059f010
test al, al
jne 0x5a3140
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 0x5a319d
mov dword [ecx + edi*8], esi
jmp 0x5a31ac
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x1c], 0
jmp 0x5a3163
cmp ebx, eax
jne 0x5a31a6
mov dword [ecx + edi*8], esi
jmp 0x5a31b0
cmp dword [ecx + edi*8 + 4], edx
jne 0x5a31b0
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