Function at 0x40a520
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 0x573db8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x270
mov eax, dword [0x5b4ef4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x268], edi
cmp dword [0x5ba7b4], 0
je 0x40a787
cmp dword [edi + 0x10], 0
je 0x40a787
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00409c90
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x40a5a3
mov byte [ebp - 0x261], 0
jmp 0x40a745
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5ba7c8]
cmp eax, dword [ecx + 8]
jg 0x40a7a7
cmp dword [edi + 0x14], 8
mov esi, edi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x26c], eax
jb 0x40a5cf
mov esi, dword [edi]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x40a5f1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40a5e0
and edx, dword [0x5ba7e8]
mov esi, dword [0x5ba7dc]
mov ecx, dword [esi + edx*8]
add edx, edx
mov dword [ebp - 0x27c], edx
mov eax, dword [0x5ba7d4]
cmp dword [esi + edx*4], eax
je 0x40a618
mov eax, dword [esi + edx*4 + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x40a6f3
mov esi, dword [ebp - 0x268]
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x40a630
mov edx, dword [esi]
mov esi, dword [ecx + 0x1c]
lea edi, [ecx + 8]
mov dword [ebp - 0x274], esi
cmp esi, 8
mov esi, dword [ebp - 0x268]
jb 0x40a64a
mov edi, dword [ecx + 8]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x270], eax
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x270], eax
jne 0x40a6cc
mov eax, dword [ebp - 0x270]
mov esi, eax
test eax, eax
je 0x40a681
sub edi, edx
nop dword [eax]
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x40a6cc
add edx, 2
sub esi, 1
jne 0x40a670
cmp dword [ebp - 0x274], 8
lea edx, [ecx + 8]
jb 0x40a68f
mov edx, dword [edx]
mov edi, dword [ebp - 0x268]
mov esi, edi
cmp dword [edi + 0x14], 8
jb 0x40a69f
mov esi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, dword [ebp - 0x270]
jne 0x40a6df
test eax, eax
je 0x40a6c5
sub esi, edx
mov ax, word [esi + edx]
cmp ax, word [edx]
jne 0x40a6df
add edx, 2
sub dword [ebp - 0x26c], 1
jne 0x40a6b0
mov eax, dword [0x5ba7d4]
jmp 0x40a6e6
mov ecx, dword [ecx]
mov esi, dword [0x5ba7dc]
mov edx, dword [ebp - 0x27c]
jmp 0x40a608
mov eax, dword [0x5ba7d4]
mov ecx, eax
cmp ecx, eax
je 0x40a6f9
mov byte [ebp - 0x261], 1
jmp 0x40a745
mov edi, dword [ebp - 0x268]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], 0
push eax
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
push ecx
call fcn.0045e0c0
add esp, 0xc
test eax, eax
sete byte [ebp - 0x261]
test eax, eax
jne 0x40a745
push dword [ebp - 0x274]
lea eax, [ebp - 0x278]
push edi
push eax
call fcn.0040c500
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40a77f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a775
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a860
push edx
push ecx
call fcn.00531d2c
add esp, 8
mov al, byte [ebp - 0x261]
jmp 0x40a789
xor al, al
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.0053325b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x5ba7c8
call fcn.00532174
add esp, 4
cmp dword [0x5ba7c8], 0xffffffff
jne 0x40a5bc
push 0
push 0
mov byte [ebp - 4], 1
call fcn.00401e60
mov dword [0x5ba7d4], eax
mov dword [0x5ba7dc], 0
mov dword [0x5ba7e0], 0
mov dword [0x5ba7e4], 0
mov byte [ebp - 4], 3
mov ecx, 0x5ba7dc
push 0x10
mov dword [0x5ba7d0], 0x3f800000
call fcn.0040be80
mov eax, dword [0x5ba7d4]
mov ecx, 0x5ba7dc
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
push eax
push 0x10
call fcn.0040bc80
push 0x578080
mov dword [0x5ba7e8], 7
mov dword [0x5ba7ec], 8
call fcn.00531fa2
add esp, 4
mov byte [ebp - 4], 0
push 0x5ba7c8
call fcn.0053212a
add esp, 4
jmp 0x40a5bc
call fcn.0055e070
int3