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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
jb 0x4051e0
mov esi, dword [edi]
jmp 0x4051e2
mov esi, edi
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x405201
lea ecx, [ecx]
movzx eax, byte [ecx + esi]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, ebx
jb 0x4051f0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebx + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x40521a
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov esi, dword [ebx]
shl ecx, 3
mov dword [esp + 0x1c], ecx
add ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
cmp esi, eax
je 0x405309
mov esi, dword [ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x405309
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0x10
mov edx, dword [esi + 0x18]
lea ecx, [esi + 8]
mov dword [esp + 0x18], edx
jb 0x405256
mov ecx, dword [ecx]
cmp dword [edi + 0x14], 0x10
jb 0x405260
mov ebx, dword [edi]
jmp 0x405262
mov ebx, edi
mov eax, dword [ebp + 0xc]
mov edi, edx
cmp dword [eax + 0x10], edx
cmovb edi, dword [eax + 0x10]
mov eax, dword [esp + 0x14]
test edi, edi
je 0x4052d9
sub edi, 4
jb 0x405291
jmp 0x405280
mov edx, dword [ebx]
cmp edx, dword [ecx]
jne 0x405296
add ebx, 4
add ecx, 4
sub edi, 4
jae 0x405280
cmp edi, 0xfffffffc
je 0x4052ca
mov dl, byte [ebx]
cmp dl, byte [ecx]
jne 0x4052c3
cmp edi, 0xfffffffd
je 0x4052ca
mov dl, byte [ebx + 1]
cmp dl, byte [ecx + 1]
jne 0x4052c3
cmp edi, 0xfffffffe
je 0x4052ca
mov dl, byte [ebx + 2]
cmp dl, byte [ecx + 2]
jne 0x4052c3
cmp edi, 0xffffffff
je 0x4052ca
mov dl, byte [ebx + 3]
cmp dl, byte [ecx + 3]
je 0x4052ca
sbb ecx, ecx
or ecx, 1
jmp 0x4052cc
xor ecx, ecx
test ecx, ecx
je 0x4052d5
mov edi, dword [ebp + 0xc]
jmp 0x4052ef
mov edx, dword [esp + 0x18]
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 0x10]
cmp ebx, edx
jae 0x4052e8
or ecx, 0xffffffff
jmp 0x4052ef
xor ecx, ecx
cmp ebx, edx
setne cl
test ecx, ecx
sete cl
test cl, cl
sete cl
test cl, cl
je 0x40534d
cmp esi, eax
jne 0x405241
mov ebx, dword [esp + 0x10]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x405333
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x1c]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x405382
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x4053a4
lea eax, [esi + 8]
push edi
push eax
call fcn.00403930
test al, al
je 0x40535f
mov esi, dword [esi]
jmp 0x405305
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
call fcn.004041e0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x40538a
mov dword [ecx], edi
jmp 0x4053a4
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4053a4
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00405700
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc