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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 8], edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
push edi
test ecx, ecx
je 0x406489
cmp dword [esi + 0x14], 0
je 0x406489
movzx eax, byte [edx]
xor eax, 0x811c9dc5
mov edi, dword [esi + 0x10]
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
mov dword [ebp - 0xc], edi
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x24]
and ecx, eax
mov eax, dword [esi + 0x18]
lea edx, [eax + ecx*8]
mov eax, dword [edx + 4]
cmp eax, edi
je 0x4065f0
mov ecx, dword [ebp - 8]
mov edx, dword [edx]
mov ecx, dword [ecx]
cmp ecx, dword [eax + 8]
je 0x406418
cmp eax, edx
je 0x4065f0
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x406408
test eax, eax
cmove eax, edi
cmp eax, edi
je 0x4065f0
mov edi, dword [ebp - 8]
lea ecx, [esi + 0xc]
push edi
test byte [edi], 0x20
je 0x4064e7
call fcn.00411900
mov edi, dword [eax + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x406489
cmp dword [esi + 0x1c], 0x10
lea eax, [esi + 8]
mov dword [ebp - 0x30], eax
mov edx, eax
jb 0x406453
mov edx, dword [eax]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x40645d
mov ecx, dword [ebx]
push dword [eax + 0x10]
push edx
mov edx, dword [ebx + 0x10]
push 0
call fcn.00415060
add esp, 0xc
cmp eax, 0xffffffff
je 0x406483
mov eax, dword [esi + 0x24]
lea ecx, [esi + 8]
test eax, eax
je 0x406483
cmp dword [eax + 4], 0
jne 0x406494
mov esi, dword [esi]
cmp esi, edi
jne 0x406443
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ecx + 0x18]
mov ebx, dword [ebp - 0x14]
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x20]
movups xmmword [eax], xmm0
test ebx, ebx
je 0x4064c9
mov eax, dword [ecx + 0x18]
add eax, 0x10
cmp ebx, eax
je 0x4064c9
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x4064bb
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, ebx
push edx
call fcn.00412c80
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x4067b0
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 0x28]
mov dword [edx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.00411900
mov ecx, dword [ebp - 0x1c]
add ecx, 0xc
push edi
mov esi, dword [eax + 4]
call fcn.00411900
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
jb 0x40650c
mov ecx, dword [ebx]
mov dword [ebp - 0x10], ecx
mov edi, dword [ebx + 0x10]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x406537
mov ebx, dword [ebp - 0x10]
nop dword [eax]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x406520
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
push edx
push ebx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00417dd0
mov eax, dword [eax + 4]
test eax, eax
jne 0x406551
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
cmp eax, esi
je 0x406489
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 8]
add esi, 0xc
push edi
push eax
mov ecx, esi
call fcn.004148a0
push ebx
mov ecx, dword [eax]
lea eax, [ebp - 0x34]
add ecx, 0xc
push eax
call fcn.00414300
cmp dword [ebp - 0x14], 0
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x20]
movups xmmword [eax], xmm0
je 0x4065d0
push edi
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004148a0
push ebx
mov ecx, dword [eax]
lea eax, [ebp - 0x34]
add ecx, 0xc
push eax
call fcn.00414300
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
add eax, 0x10
cmp edx, eax
je 0x4065d0
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x4065c5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.00412c80
cmp dword [ebp - 0x18], 0
je 0x4067b0
push edi
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004148a0
mov ecx, dword [eax]
lea eax, [ebp - 0x34]
jmp 0x406799
mov edi, dword [edi]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
cmp edi, eax
je 0x406489
mov ecx, dword [ebp - 8]
mov edx, dword [edi + 8]
lea esi, [edi + 8]
mov dword [ebp - 0x24], esi
test dword [ecx], edx
je 0x406682
mov ecx, dword [ebp - 0x1c]
add ecx, 0xc
push esi
test dl, 0x20
je 0x40669a
call fcn.00411900
mov edi, dword [eax + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x406679
nop word [eax + eax]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x40663c
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x406649
mov ecx, dword [eax]
push dword [esi + 0x18]
push edx
mov edx, dword [eax + 0x10]
push 0
call fcn.00415060
add esp, 0xc
cmp eax, 0xffffffff
je 0x406670
mov eax, dword [esi + 0x24]
test eax, eax
je 0x406670
cmp dword [eax + 4], 0
jne 0x4067bb
mov esi, dword [esi]
cmp esi, edi
jne 0x406630
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edi, dword [edi]
mov dword [ebp - 0x10], edi
cmp edi, eax
jne 0x406603
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.00411900
mov ecx, dword [ebp - 0x1c]
mov esi, dword [eax + 4]
lea eax, [edi + 8]
push eax
lea ecx, [ecx + 0xc]
call fcn.00411900
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ebx
jb 0x4066c2
mov ecx, dword [ebx]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [ebx + 0x10], ecx
jbe 0x4066e9
mov edi, dword [ebp - 0x38]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebx + 0x10]
jb 0x4066d1
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
push edx
push ebx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00417dd0
mov eax, dword [eax + 4]
test eax, eax
jne 0x406703
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
cmp eax, esi
je 0x40667c
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x24]
add edi, 0xc
push esi
push eax
mov ecx, edi
call fcn.004148a0
push ebx
mov ecx, dword [eax]
lea eax, [ebp - 0x28]
add ecx, 0xc
push eax
call fcn.00414300
cmp dword [ebp - 0x14], 0
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x20]
movups xmmword [eax], xmm0
je 0x406782
push esi
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.004148a0
push ebx
mov ecx, dword [eax]
lea eax, [ebp - 0x28]
add ecx, 0xc
push eax
call fcn.00414300
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
add eax, 0x10
cmp edx, eax
je 0x406782
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x406777
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.00412c80
cmp dword [ebp - 0x18], 0
je 0x4067b0
push esi
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.004148a0
mov ecx, dword [eax]
lea eax, [ebp - 0x28]
push ebx
push eax
add ecx, 0xc
call fcn.00414300
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x28]
mov dword [ecx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x20]
mov edx, dword [ebp - 0x14]
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x20]
movups xmmword [eax], xmm0
test edx, edx
je 0x4067ed
mov eax, dword [esi + 0x20]
add eax, 0x10
cmp edx, eax
je 0x4067ed
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x4067e2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.00412c80
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4067b0
mov eax, dword [esi + 0x20]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 0x28]
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 0x14