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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
cmp dword [esi + 0x18], 0
je 0x409ea8
push dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
lea ebx, [esi + 0x48]
mov edx, dword [esi + 0x30]
push ebx
push eax
push dword [eax]
lea eax, [ebp - 0x1c]
push edx
push dword [edx]
push eax
call fcn.00407c10
push dword [ebp - 0x20]
mov ecx, dword [esi + 0x30]
lea eax, [esi + 0x50]
mov edx, dword [esi + 0x38]
push eax
push ecx
push dword [ecx]
lea eax, [ebp - 0x1c]
push edx
push dword [edx]
push eax
call fcn.00407c10
mov eax, dword [ebx]
add esp, 0x38
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
cmp ecx, eax
je 0x409ea8
lea eax, [esi + 0x10]
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
cmp dword [ecx + 0x1c], 0x10
lea eax, [ecx + 8]
mov edi, dword [eax + 0x10]
mov esi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], edi
jb 0x409d46
mov esi, dword [eax]
xor edx, edx
mov ebx, 0x811c9dc5
test edi, edi
je 0x409d62
movzx eax, byte [edx + esi]
inc edx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edx, edi
jb 0x409d51
mov esi, dword [ebp - 0xc]
and ebx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov edx, dword [eax + ebx*8]
lea eax, [eax + ebx*8]
add eax, 4
mov dword [ebp - 0x14], edx
mov edi, edx
mov dword [ebp - 0x18], eax
nop
cmp edx, esi
jne 0x409d88
mov eax, esi
jmp 0x409d8c
mov eax, dword [eax]
mov eax, dword [eax]
cmp edi, eax
je 0x409e3d
cmp dword [ecx + 0x1c], 0x10
lea eax, [edi + 8]
lea ebx, [ecx + 8]
jb 0x409da3
mov ebx, dword [ecx + 8]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x409dae
mov eax, dword [eax]
cmp edx, dword [ebp - 0x10]
jne 0x409e19
sub edx, 4
mov dword [ebp - 4], edx
jb 0x409dd7
nop dword [eax + eax]
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x409ddc
mov edx, dword [ebp - 4]
add eax, 4
add ebx, 4
sub edx, 4
mov dword [ebp - 4], edx
jae 0x409dc0
cmp edx, 0xfffffffc
je 0x409e13
mov dl, byte [eax]
cmp dl, byte [ebx]
jne 0x409e0c
cmp dword [ebp - 4], 0xfffffffd
je 0x409e13
mov dl, byte [eax + 1]
cmp dl, byte [ebx + 1]
jne 0x409e0c
cmp dword [ebp - 4], 0xfffffffe
je 0x409e13
mov dl, byte [eax + 2]
cmp dl, byte [ebx + 2]
jne 0x409e0c
cmp dword [ebp - 4], 0xffffffff
je 0x409e13
mov al, byte [eax + 3]
cmp al, byte [ebx + 3]
je 0x409e13
sbb eax, eax
or eax, 1
jmp 0x409e15
xor eax, eax
test eax, eax
je 0x409e26
mov edi, dword [edi]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
jmp 0x409d80
mov ecx, dword [ebp - 0xc]
lea eax, [edi + 8]
push eax
push dword [ebp - 0x1c]
call fcn.00409670
mov ecx, dword [ebp - 8]
test al, al
cmove esi, edi
mov ebx, dword [ebp - 0x20]
cmp esi, dword [ebx + 0x14]
je 0x409e9a
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x409e62
lock inc dword [eax + 4]
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
mov dword [ecx + 4], eax
mov ecx, ebx
call fcn.00409eb0
mov ecx, dword [ebp - 8]
mov esi, dword [ecx]
test al, al
jne 0x409e96
mov eax, dword [ecx + 4]
push ecx
mov dword [eax], esi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
lea ecx, [ebx + 0x48]
mov dword [edx + 4], eax
dec dword [ebx + 0x4c]
call fcn.0040dd50
mov ecx, esi
jmp 0x409e9c
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
cmp ecx, dword [ebx + 0x48]
jne 0x409d30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret