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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f4c12
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101110c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x101b1480
call fcn.10042040
mov ecx, dword [0x101ae5f4]
test ecx, ecx
je 0x100406b9
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov ebx, eax
test ebx, ebx
je 0x100406b9
nop dword [eax]
mov eax, dword [ebx + 0x14]
mov edi, 0x811c9dc5
mov esi, dword [ebx + 8]
mov dword [ebp - 0x30], eax
xor eax, eax
inc eax
cmp byte [esi + eax], 0
jne 0x10040680
xor edx, edx
test eax, eax
je 0x100406a1
nop dword [eax]
movsx ecx, byte [esi + edx]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, eax
jb 0x10040690
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edi
push eax
call fcn.10041ef0
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x10040670
mov ecx, dword [0x101ae5fc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x101ae600]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov ecx, 0x101af330
mov dword [0x10130e2c], eax
call fcn.100d2a30
call fcn.100e5900
mov eax, dword [0x10130c20]
cmp eax, dword [0x10130c24]
je 0x100406fa
mov dword [0x10130c24], eax
mov ecx, dword [0x101ae5fc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov edi, eax
mov dword [0x101ae668], edi
test edi, edi
je 0x10040923
mov eax, dword [0x101aeb6c]
xor esi, esi
mov dword [0x101aeb6c], esi
test eax, eax
je 0x10040766
mov dword [ebp - 4], esi
lea esi, [eax - 4]
push 0x1002b100
push dword [esi]
push 4
push eax
call fcn.100f27ec
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.100f27ae
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edi, dword [0x101ae668]
mov esi, dword [0x101aeb6c]
mov ecx, dword [0x101aeb64]
test ecx, ecx
je 0x10040783
mov eax, dword [0x101aeb68]
mov dword [ecx], eax
mov edi, dword [0x101ae668]
mov esi, dword [0x101aeb6c]
mov dword [0x101aeb68], 0
mov dword [0x101aeb70], 0
mov byte [0x101aeb74], 0
mov dword [0x101aeb64], edi
mov eax, dword [edi]
mov dword [0x101aeb68], eax
test eax, eax
je 0x100408c2
xor ebx, ebx
mov eax, dword [0x101aeb68]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x100407e4
mov eax, dword [0x10147628]
lea edx, [ebp - 0x2c]
push 0x1c
push edx
push ecx
call eax
test eax, eax
je 0x100407e4
mov eax, dword [ebp - 0x18]
test al, 1
jne 0x100407e4
test eax, 0x100
jne 0x100407e4
inc ebx
jmp 0x100407b5
mov dword [0x101aeb70], ebx
test ebx, ebx
je 0x100408bc
inc ebx
mov ecx, 4
mov eax, ebx
mov dword [ebp - 0x30], ebx
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
add eax, 4
cmovb eax, ecx
push eax
call fcn.100f2cc0
add esp, 4
mov dword [ebp - 0x34], eax
push 0x1002b100
push 0x1003e3d0
push ebx
lea esi, [eax + 4]
mov dword [ebp - 4], 1
push 4
push esi
mov dword [eax], ebx
call fcn.100f2c4c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x101aeb6c]
mov dword [0x101aeb6c], esi
test eax, eax
je 0x10040880
push 0x1002b100
lea esi, [eax - 4]
mov dword [ebp - 4], 2
push dword [esi]
push 4
push eax
call fcn.100f27ec
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.100f27ae
mov esi, dword [0x101aeb6c]
add esp, 8
test esi, esi
je 0x100408c2
mov eax, dword [0x101aeb70]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [0x101aeb68]
add eax, 0xfffffffc
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0x2a
add esi, 4
mov dword [edi], esi
mov esi, dword [0x101aeb6c]
mov byte [0x101aeb74], 1
jmp 0x100408d7
mov esi, dword [0x101aeb6c]
cmp byte [0x101aeb74], 0
je 0x100408d2
mov eax, 0x2a
jmp 0x100408d7
mov eax, 0x29
cmp dword [0x101aeb68], 0
je 0x100408f9
test esi, esi
je 0x100408f9
cmp eax, dword [0x101aeb70]
ja 0x100408f9
mov dword [esi + eax*4], 0x100debd0
mov esi, dword [0x101aeb6c]
xor eax, eax
cmp byte [0x101aeb74], al
setne al
add eax, 0x30
cmp dword [0x101aeb68], 0
je 0x10040923
test esi, esi
je 0x10040923
cmp eax, dword [0x101aeb70]
ja 0x10040923
mov dword [esi + eax*4], 0x100deab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f27a0
mov esp, ebp
pop ebp
ret