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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0xc]
neg ecx
mov ebx, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x40], eax
sbb ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
lea eax, [edx - 0x18c]
mov edi, dword [ebx + 0x10]
and ecx, eax
cmp dword [ebx + 0x14], 8
lea eax, [edx + 0x30]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], eax
jb 0x46c8d1
mov esi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x46c8f4
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x46c8e0
mov eax, dword [ebp - 0x30]
push edx
push ebx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.0040b020
mov eax, dword [eax + 4]
test eax, eax
jne 0x46c90e
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 0x34]
cmp eax, dword [ecx + 0x34]
je 0x46c91e
mov eax, dword [eax + 0x20]
jmp 0x46ca76
cmp dword [ebx + 0x28], 0
jne 0x46c956
mov eax, dword [ebp - 0x38]
mov byte [eax], 1
cmp dword [ebx + 0x60], 0
je 0x46ca74
cmp dword [ebx + 0x64], 0
je 0x46ca74
mov ecx, dword [ebp - 0x3c]
push 0xffff0002
push 0xffff0000
push ebx
call fcn.00469c70
jmp 0x46ca76
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004071f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46ca07
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
lea edi, [eax + eax]
mov edx, 0x811c9dc5
cmovae esi, dword [ebp - 0x2c]
xor ecx, ecx
test edi, edi
je 0x46c9a1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x46c990
push edx
lea eax, [ebp - 0x2c]
mov ecx, 0x5d54a4
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040b020
mov eax, dword [eax + 4]
test eax, eax
je 0x46c9fc
cmp eax, dword [0x5d54a8]
je 0x46c9fc
cmp dword [eax + 0x80], 0
je 0x46ca94
cmp dword [eax + 0x84], 0
je 0x46ca94
add eax, 0x38
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x46c9fc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x46c9f2
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407b80
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x46c974
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407e00
cmp dword [ebx + 0x2c], 8
lea eax, [ebx + 0x18]
mov edi, dword [eax + 0x10]
mov esi, eax
jb 0x46ca26
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x46ca45
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x46ca31
lea eax, [ebx + 0x18]
mov esi, dword [ebp - 0x30]
mov ecx, esi
push edx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040b020
mov eax, dword [eax + 4]
test eax, eax
jne 0x46ca5f
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0xffff0001
cmp eax, dword [ecx + 0x34]
jne 0x46caab
mov eax, dword [ebp - 0x40]
mov byte [eax], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x38]
mov byte [eax], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00407e00
jmp 0x46ca74
mov eax, dword [eax + 0x20]
mov edi, dword [ebp - 0x3c]
push eax
push 4
push 0x110a
push dword [edi + 0x130]
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
je 0x46cb01
nop
push esi
lea ecx, [edi + 0x130]
call fcn.00452240
mov eax, dword [eax + 0x60]
cmp eax, dword [ebx + 0x60]
jge 0x46cb01
push esi
push 1
push 0x110a
push dword [edi + 0x130]
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
jne 0x46cad0
mov eax, dword [ebp - 0x38]
mov byte [eax], 1
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x46ca74
cmp dword [ebx + 0x60], 0
je 0x46ca74
cmp dword [ebx + 0x64], 0
je 0x46ca74
push dword [ebp - 0x30]
mov ecx, edi
push eax
push ebx
call fcn.00469c70
jmp 0x46ca76