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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62f7cd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6bd4d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov edx, esi
cmp dword [esi + 0x14], 0x10
jb 0x52afd7
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
xor edi, edi
add ecx, edx
cmp edx, ecx
jae 0x52aff2
movzx eax, byte [edx]
inc edx
imul edi, edi, 0x1000193
xor edi, eax
cmp edx, ecx
jb 0x52afe2
movzx eax, byte [ebx]
lea ecx, [ebx + 1]
add ecx, eax
lea eax, [ecx + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp + 0xc]
push ecx
push esi
push edi
push eax
mov ecx, ebx
call fcn.0052b250
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x52b037
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 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 0xc
lea ecx, [ebx + 3]
mov dword [ebp - 0x14], 0
lea eax, [ecx + 1]
mov word [ebp - 0x10], 0
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0052c950
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov esi, dword [ebp + 0x10]
push esi
mov dword [ebp + 0xc], eax
call fcn.0044e3c0
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x18]
mov byte [ebp - 0xf], 1
mov dword [ecx + 0x18], eax
cmp dword [ebx + 0x14], 0
mov eax, dword [ebx + 8]
lea esi, [eax + 1]
jne 0x52b0a9
push esi
mov ecx, ebx
call fcn.0052cd40
mov ecx, dword [ebx + 4]
cmp ecx, eax
cmovb ecx, eax
push ecx
mov ecx, ebx
call fcn.0052c9c0
jmp 0x52b12a
cmp esi, dword [ebx + 0x10]
jbe 0x52b12a
mov ecx, eax
mov edx, 1
shr ecx, 1
add eax, ecx
cmp esi, eax
cmovb edx, ecx
mov ecx, ebx
add edx, dword [ebx + 8]
push edx
call fcn.0052cd40
cmp eax, dword [ebx + 4]
je 0x52b12a
push eax
mov ecx, ebx
call fcn.0052c9c0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x14]
lea esi, [eax + ecx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x52b12a
mov eax, dword [ecx + 4]
xor edx, edx
div dword [ebx + 4]
mov eax, dword [ebx + 0x14]
cmp dword [eax + edx*4], 0
lea edx, [eax + edx*4]
jne 0x52b109
mov dword [edx], esi
lea eax, [ecx - 0x1c]
xor edx, edx
mov esi, ecx
test eax, eax
cmove esi, edx
jmp 0x52b124
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [ecx - 0x1c]
test eax, eax
mov eax, 0
cmove ecx, eax
mov eax, dword [edx]
mov dword [eax], ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x52b0e5
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x14], 0
mov dword [eax + 0x20], edi
mov eax, edi
mov ecx, dword [ebx + 4]
div ecx
mov esi, dword [ebx + 0x14]
mov eax, dword [esi + edx*4]
lea edi, [esi + edx*4]
test eax, eax
jne 0x52b17b
mov eax, dword [esi + ecx*4]
lea esi, [esi + ecx*4]
test eax, eax
je 0x52b16b
mov eax, dword [eax + 4]
xor edx, edx
mov ecx, dword [ebp + 0xc]
add ecx, 0x1c
div dword [ebx + 4]
mov eax, dword [ebx + 0x14]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x1c
mov dword [edi], esi
mov eax, dword [esi]
mov dword [ecx], eax
mov dword [esi], ecx
jmp 0x52b189
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
add ecx, 0x1c
mov dword [ecx], eax
mov eax, dword [edi]
mov dword [eax], ecx
inc dword [ebx + 8]
lea eax, [ecx - 0x1c]
mov esi, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi], ecx
lea ecx, [ebp - 0x18]
mov byte [esi + 4], 1
call fcn.0052b530
mov 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 0xc