Function at 0x470520
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 0x571608
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x5e8ea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x5f0360]
cmp eax, dword [edx + 4]
jle 0x470626
push 0x5f0360
call fcn.0052cf1e
add esp, 4
cmp dword [0x5f0360], 0xffffffff
jne 0x470626
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [0x5f00e0]
movups xmmword [0x5f0364], xmm0
push 0
push 0
movups xmmword [0x5f0374], xmm0
mov dword [0x5f0364], eax
mov dword [0x5f0368], 0
mov dword [0x5f036c], 0
call fcn.0044b220
mov dword [0x5f0368], eax
mov dword [0x5f0370], 0
mov dword [0x5f0374], 0
mov dword [0x5f0378], 0
push 0x5f00e0
mov ecx, 0x5f0364
mov byte [ebp - 4], 2
call fcn.004740e0
push 0x573df0
call fcn.0052cd60
push 0x5f0360
mov dword [ebp - 4], 0xffffffff
call fcn.0052ced4
add esp, 8
mov ecx, esi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470640
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a890
mov dword [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
cmovae eax, ecx
cmovae edx, ecx
lea eax, [eax + esi*2]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
cmovae esi, ecx
xor edi, edi
sub dword [ebp - 0x30], esi
inc dword [ebp - 0x30]
shr dword [ebp - 0x30], 1
cmp esi, eax
mov eax, dword [ebp - 0x30]
cmova eax, edi
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4706c1
sub edx, esi
mov dword [ebp - 0x34], edx
movzx eax, word [esi]
push eax
call fcn.00549e5a
mov ecx, dword [ebp - 0x34]
lea esi, [esi + 2]
inc edi
add esp, 4
mov word [ecx + esi - 2], ax
cmp edi, dword [ebp - 0x30]
jne 0x4706a1
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov edx, 0x811c9dc5
cmovae esi, ecx
xor ecx, ecx
lea edi, [eax + eax]
test edi, edi
je 0x4706f1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4706e0
and edx, dword [0x5f037c]
mov eax, dword [0x5f0370]
mov edi, dword [0x5f0368]
mov ecx, dword [eax + edx*8]
lea eax, [eax + edx*8]
add eax, 4
mov dword [ebp - 0x34], ecx
mov esi, ecx
mov dword [ebp - 0x30], eax
cmp ecx, edi
jne 0x47071b
mov eax, edi
jmp 0x47071f
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x47079f
cmp dword [ebp - 0x18], 8
lea ecx, [esi + 8]
mov edi, dword [ecx + 0x14]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
cmp edi, 8
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x38], edi
mov edi, dword [0x5f0368]
mov dword [ebp - 0x3c], eax
jb 0x47074e
mov ecx, dword [ecx]
cmp eax, dword [ebp - 0x1c]
jne 0x470760
push eax
call fcn.00451020
add esp, 4
test eax, eax
je 0x47076a
mov esi, dword [esi]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
jmp 0x470713
cmp dword [ebp - 0x38], 8
lea edx, [esi + 8]
jb 0x470775
mov edx, dword [edx]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x3c]
jne 0x470795
push eax
call fcn.00451020
add esp, 4
test eax, eax
je 0x470797
mov esi, edi
cmp esi, edi
je 0x47079f
xor esi, esi
jmp 0x4707a4
mov esi, 1
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4707da
mov ecx, dword [ebp - 0x2c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4707d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4707fa
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052c886
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00548571
int3