Function at 0x40a3d0
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 0x573368
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x270
mov eax, dword [0x5b3ef4]
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 [0x5b96b4], 0
je 0x40a637
cmp dword [edi + 0x10], 0
je 0x40a637
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00409b40
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x40a453
mov byte [ebp - 0x261], 0
jmp 0x40a5f5
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5b96c8]
cmp eax, dword [ecx + 8]
jg 0x40a657
cmp dword [edi + 0x14], 8
mov esi, edi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x26c], eax
jb 0x40a47f
mov esi, dword [edi]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x40a4a1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40a490
and edx, dword [0x5b96e8]
mov esi, dword [0x5b96dc]
mov ecx, dword [esi + edx*8]
add edx, edx
mov dword [ebp - 0x27c], edx
mov eax, dword [0x5b96d4]
cmp dword [esi + edx*4], eax
je 0x40a4c8
mov eax, dword [esi + edx*4 + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x40a5a3
mov esi, dword [ebp - 0x268]
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x40a4e0
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 0x40a4fa
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 0x40a57c
mov eax, dword [ebp - 0x270]
mov esi, eax
test eax, eax
je 0x40a531
sub edi, edx
nop dword [eax]
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x40a57c
add edx, 2
sub esi, 1
jne 0x40a520
cmp dword [ebp - 0x274], 8
lea edx, [ecx + 8]
jb 0x40a53f
mov edx, dword [edx]
mov edi, dword [ebp - 0x268]
mov esi, edi
cmp dword [edi + 0x14], 8
jb 0x40a54f
mov esi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, dword [ebp - 0x270]
jne 0x40a58f
test eax, eax
je 0x40a575
sub esi, edx
mov ax, word [esi + edx]
cmp ax, word [edx]
jne 0x40a58f
add edx, 2
sub dword [ebp - 0x26c], 1
jne 0x40a560
mov eax, dword [0x5b96d4]
jmp 0x40a596
mov ecx, dword [ecx]
mov esi, dword [0x5b96dc]
mov edx, dword [ebp - 0x27c]
jmp 0x40a4b8
mov eax, dword [0x5b96d4]
mov ecx, eax
cmp ecx, eax
je 0x40a5a9
mov byte [ebp - 0x261], 1
jmp 0x40a5f5
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.0045df90
add esp, 0xc
test eax, eax
sete byte [ebp - 0x261]
test eax, eax
jne 0x40a5f5
push dword [ebp - 0x274]
lea eax, [ebp - 0x278]
push edi
push eax
call fcn.0040c250
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40a62f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a625
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a710
push edx
push ecx
call fcn.0053140c
add esp, 8
mov al, byte [ebp - 0x261]
jmp 0x40a639
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.0053287b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x5b96c8
call fcn.00531854
add esp, 4
cmp dword [0x5b96c8], 0xffffffff
jne 0x40a46c
push 0
push 0
mov byte [ebp - 4], 1
call fcn.00401e60
mov dword [0x5b96d4], eax
mov dword [0x5b96dc], 0
mov dword [0x5b96e0], 0
mov dword [0x5b96e4], 0
mov byte [ebp - 4], 3
mov ecx, 0x5b96dc
push 0x10
mov dword [0x5b96d0], 0x3f800000
call fcn.0040bc00
mov eax, dword [0x5b96d4]
mov ecx, 0x5b96dc
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
push eax
push 0x10
call fcn.0040ba00
push 0x5773c0
mov dword [0x5b96e8], 7
mov dword [0x5b96ec], 8
call fcn.00531682
add esp, 4
mov byte [ebp - 4], 0
push 0x5b96c8
call fcn.0053180a
add esp, 4
jmp 0x40a46c
call fcn.0055d660
int3