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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
mov dword [ebp - 8], eax
jb 0x404f78
mov esi, dword [ebx]
jmp 0x404f7a
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test eax, eax
je 0x404f9b
mov ebx, eax
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x404f87
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
and ecx, edx
mov edx, dword [edi + 0xc]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov esi, dword [edx + ecx*4]
inc ecx
mov dword [ebp - 0x14], esi
mov esi, dword [edi + 4]
mov dword [ebp - 0x10], esi
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x18], ecx
nop dword [eax + eax]
cmp dword [ebp - 0x14], esi
jne 0x404fc9
mov ecx, esi
jmp 0x404fcd
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x405117
cmp dword [ebx + 0x14], 0x10
lea edx, [eax + 8]
jb 0x404fe2
mov edi, dword [ebx]
jmp 0x404fe4
mov edi, ebx
cmp dword [edx + 0x14], 0x10
lea ecx, [edx + 0x10]
jb 0x404fef
mov edx, dword [edx]
mov ecx, dword [ecx]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov esi, ecx
cmp dword [ebp - 0xc], ecx
cmovb esi, dword [ebp - 0xc]
test esi, esi
je 0x405063
sub esi, 4
jb 0x405021
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x405026
add edx, 4
add edi, 4
sub esi, 4
jae 0x405010
cmp esi, 0xfffffffc
je 0x40505a
mov cl, byte [edx]
cmp cl, byte [edi]
jne 0x405053
cmp esi, 0xfffffffd
je 0x40505a
mov cl, byte [edx + 1]
cmp cl, byte [edi + 1]
jne 0x405053
cmp esi, 0xfffffffe
je 0x40505a
mov cl, byte [edx + 2]
cmp cl, byte [edi + 2]
jne 0x405053
cmp esi, 0xffffffff
je 0x40505a
mov cl, byte [edx + 3]
cmp cl, byte [edi + 3]
je 0x40505a
sbb ecx, ecx
or ecx, 1
jmp 0x40505c
xor ecx, ecx
test ecx, ecx
jne 0x40506c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp edx, ecx
jb 0x40506c
jbe 0x405079
mov eax, dword [eax]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
jmp 0x404fc0
cmp dword [eax + 0x1c], 0x10
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x405087
mov edx, dword [edx]
cmp dword [ebx + 0x14], 0x10
jb 0x40508f
mov ebx, dword [ebx]
mov edi, dword [edi]
cmp ecx, edi
mov esi, edi
cmovb esi, ecx
test esi, esi
je 0x4050f4
sub esi, 4
jb 0x4050b2
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x4050b7
add ebx, 4
add edx, 4
sub esi, 4
jae 0x4050a1
cmp esi, 0xfffffffc
je 0x4050eb
mov cl, byte [ebx]
cmp cl, byte [edx]
jne 0x4050e4
cmp esi, 0xfffffffd
je 0x4050eb
mov cl, byte [ebx + 1]
cmp cl, byte [edx + 1]
jne 0x4050e4
cmp esi, 0xfffffffe
je 0x4050eb
mov cl, byte [ebx + 2]
cmp cl, byte [edx + 2]
jne 0x4050e4
cmp esi, 0xffffffff
je 0x4050eb
mov cl, byte [ebx + 3]
cmp cl, byte [edx + 3]
je 0x4050eb
sbb ecx, ecx
or ecx, 1
jmp 0x4050ed
xor ecx, ecx
test ecx, ecx
jne 0x4050fa
mov ecx, dword [ebp - 8]
cmp ecx, edi
jb 0x4050fa
jbe 0x4050fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.00428705
mov esp, ebp
pop ebp
ret 8