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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45399c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x46f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [ebp - 0x1c], ebx
cmp dword [ebx + 0x14], 8
mov edi, dword [ebx + 0x10]
jb 0x40e34a
mov esi, dword [ebx]
jmp 0x40e34c
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x40e368
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40e357
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x18]
mov esi, dword [ecx + 0xc]
and eax, edx
lea edx, [eax*8]
mov eax, dword [esi + edx]
mov dword [ebp - 0x20], edx
cmp eax, dword [ecx + 4]
jne 0x40e38a
mov esi, dword [ecx + 4]
jmp 0x40e390
mov esi, dword [esi + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x40e4ad
nop dword [eax + eax]
mov esi, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
mov dword [ebp - 0x18], edx
jb 0x40e3b4
mov ecx, dword [ecx]
cmp dword [ebx + 0x14], 8
jb 0x40e3be
mov edi, dword [ebx]
jmp 0x40e3c0
mov edi, ebx
mov ebx, dword [ebx + 0x10]
mov edx, dword [edx]
mov dword [ebp + 0xc], ebx
mov ebx, edx
cmp dword [ebp + 0xc], edx
cmovb ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x40e3f6
xor ecx, ecx
test ecx, ecx
jne 0x40e3e9
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp edx, ecx
jb 0x40e3e9
jbe 0x40e411
cmp esi, eax
je 0x40e4ad
mov ebx, dword [ebp - 0x1c]
jmp 0x40e3a0
mov dx, word [edi]
cmp dx, word [ecx]
jne 0x40e409
add edi, 2
add ecx, 2
sub ebx, 1
jmp 0x40e3d3
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x40e3d7
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x14]
dec dword [ecx + 8]
mov byte [ebp - 4], 1
mov edi, dword [ebx + 0x14]
or ebx, 0xffffffff
test edi, edi
je 0x40e459
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40e459
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x40e459
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + 0xc]
test edi, edi
je 0x40e485
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40e485
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x40e485
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push dword [ebp + 0xc]
call fcn.0042424e
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [edi]
cmp esi, eax
je 0x40e4da
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [edx + 0xc]
add ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x40e4f7
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [ebx + eax + 4], edi
jmp 0x40e519
cmp eax, esi
jne 0x40e4ff
mov dword [ecx], edi
jmp 0x40e519
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x40e519
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + ebx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + ebx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 4
call fcn.0040e720
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc