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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e9d2
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
xor eax, eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x519eb7
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004079c0
mov dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov edx, 0x811c9dc5
cmp dword [ebp - 0x18], 8
cmovae esi, dword [ebp - 0x2c]
xor ecx, ecx
lea edi, [eax + eax]
test edi, edi
je 0x519f04
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x519ef3
mov edi, dword [ebp - 0x90]
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 0x18]
and eax, edx
mov edx, dword [edi + 0x20]
mov dword [ebp - 0xa0], edx
mov ecx, dword [edx + eax*8]
lea eax, [eax*8 + 4]
mov dword [ebp - 0x9c], ecx
mov esi, ecx
mov dword [ebp - 0xa4], eax
cmp ecx, ebx
jne 0x519f3b
mov eax, ebx
jmp 0x519f40
mov eax, dword [eax + edx]
mov eax, dword [eax]
cmp esi, eax
je 0x519fba
cmp dword [ebp - 0x18], 8
lea edi, [esi + 8]
mov eax, dword [edi + 0x10]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0xa8], eax
jb 0x519f65
mov ecx, dword [edi]
cmp eax, dword [ebp - 0x1c]
jne 0x519f77
push eax
call fcn.00406f00
add esp, 4
test eax, eax
je 0x519f8d
mov esi, dword [esi]
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa4]
jmp 0x519f33
cmp dword [edi + 0x14], 8
jb 0x519f95
mov edi, dword [edi]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xa8]
jne 0x519fba
push eax
mov edx, edi
call fcn.00406f00
add esp, 4
test eax, eax
je 0x519fbc
mov esi, ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407c80
cmp esi, ebx
jne 0x51a2e5
cmp byte [ebp + 0x10], 0
jne 0x51a041
mov ebx, dword [ebp - 0x98]
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51a006
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004079c0
mov dword [ebp - 4], 1
mov eax, 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x94], eax
call fcn.0048fcf0
test al, al
jne 0x51a041
mov bl, 1
jmp 0x51a043
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x94]
test al, 1
je 0x51a065
and eax, 0xfffffffe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x94], eax
call fcn.00407c80
test bl, bl
jne 0x51a2e5
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0xac]
test ebx, ebx
jne 0x51a0f2
mov ebx, dword [ebp - 0x90]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x98]
mov edi, dword [ebx + 4]
mov eax, dword [edi]
mov esi, dword [eax]
call fcn.00406650
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.004065e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00407c80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00407c80
jmp 0x51a116
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51a0f7
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004079c0
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x98]
lea eax, [ebp - 0x5c]
push edi
push eax
mov ecx, ebx
call fcn.00519570
mov byte [ebp - 4], 5
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ecx, dword [eax + 0x10]
cmovae edx, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x51a142
mov eax, dword [eax]
mov esi, dword [ebp - 0x1c]
cmp ecx, esi
jne 0x51a15c
push ecx
mov ecx, eax
call fcn.00406f00
add esp, 4
test eax, eax
jne 0x51a15c
xor bl, bl
jmp 0x51a15e
mov bl, 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00407c80
test bl, bl
je 0x51a267
push edi
lea ecx, [ebp - 0x44]
call fcn.00406650
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x44]
test esi, esi
jne 0x51a192
push 3
push 0x595708
jmp 0x51a22e
push 2
push 0x58bbe4
call fcn.00419f20
push 0x58bbec
lea ecx, [ebp - 0x5c]
call fcn.00406650
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
push 0x581454
call fcn.00406650
mov byte [ebp - 4], 8
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x8c]
call fcn.0048f450
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
push eax
call fcn.004065e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.00407c80
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call fcn.00407c80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
call fcn.00407c80
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00419f20
push 1
push 0x581454
lea ecx, [ebp - 0x44]
call fcn.00419f20
mov esi, dword [ebp - 0x90]
lea ecx, [ebp - 0x44]
push ecx
mov eax, dword [esi + 0xc]
cmp dword [esi + 0x10], eax
je 0x51a252
mov ecx, eax
call fcn.00406d00
add dword [esi + 0xc], 0x18
jmp 0x51a25b
push eax
lea ecx, [esi + 8]
call fcn.00406960
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov esi, dword [ebp - 0x90]
mov ecx, edi
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea edx, [ecx + 2]
mov word [ebp - 0x44], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51a294
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.004079c0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x44]
push dword [ebp - 0xac]
lea ecx, [esi + 0x14]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004fdfc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret 0xc