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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e501d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x69001c]
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 edx, ecx
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0x18]
neg ecx
mov ebx, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x38], eax
sbb ecx, ecx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 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 - 0x30], ecx
mov dword [ebp - 0x2c], eax
jb 0x4d78d1
mov esi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x4d78f4
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4d78e0
mov eax, dword [ebp - 0x2c]
push edx
push ebx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.0040c0a0
mov esi, dword [eax + 4]
test esi, esi
jne 0x4d790e
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi + 4]
mov eax, dword [ebp - 0x3c]
cmp esi, dword [eax + 0x34]
je 0x4d7935
push ebx
push dword [esi + 0x20]
mov ecx, eax
call fcn.004d0340
mov ecx, dword [ebp - 0x30]
push eax
push dword [esi + 0x20]
call fcn.004d5420
mov eax, dword [esi + 0x20]
jmp 0x4d7a96
cmp dword [ebx + 0x28], 0
jne 0x4d796d
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
cmp dword [ebx + 0x60], 0
je 0x4d7a94
cmp dword [ebx + 0x64], 0
je 0x4d7a94
mov ecx, dword [ebp - 0x30]
push 0xffff0002
push 0xffff0000
push ebx
call fcn.004d5260
jmp 0x4d7a96
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406350
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d7a27
nop dword [eax + eax]
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
lea edi, [eax + eax]
mov edx, 0x811c9dc5
cmovae esi, dword [ebp - 0x28]
xor ecx, ecx
test edi, edi
je 0x4d79c1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4d79b0
push edx
lea eax, [ebp - 0x28]
mov ecx, 0x697edc
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040c0a0
mov eax, dword [eax + 4]
test eax, eax
je 0x4d7a1c
cmp eax, dword [0x697ee0]
je 0x4d7a1c
cmp dword [eax + 0x80], 0
je 0x4d7ab4
cmp dword [eax + 0x84], 0
je 0x4d7ab4
add eax, 0x38
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x4d7a1c
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4d7a12
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406e80
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4d7990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004075e0
cmp dword [ebx + 0x2c], 8
lea eax, [ebx + 0x18]
mov edi, dword [eax + 0x10]
mov esi, eax
jb 0x4d7a46
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x4d7a65
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4d7a51
lea eax, [ebx + 0x18]
mov esi, dword [ebp - 0x2c]
mov ecx, esi
push edx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040c0a0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4d7a7f
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], 0xffff0001
cmp eax, dword [ecx + 0x34]
jne 0x4d7acb
mov eax, dword [ebp - 0x38]
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 - 0x10]
xor ecx, ebp
call fcn.0059046a
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004075e0
jmp 0x4d7a94
mov eax, dword [eax + 0x20]
mov edi, dword [ebp - 0x30]
push eax
push 4
push 0x110a
push dword [edi + 0x130]
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
je 0x4d7b21
nop
push esi
lea ecx, [edi + 0x130]
call fcn.004bcbf0
mov eax, dword [eax + 0x60]
cmp eax, dword [ebx + 0x60]
jge 0x4d7b21
push esi
push 1
push 0x110a
push dword [edi + 0x130]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
jne 0x4d7af0
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4d7a94
cmp dword [ebx + 0x60], 0
je 0x4d7a94
cmp dword [ebx + 0x64], 0
je 0x4d7a94
push dword [ebp - 0x2c]
mov ecx, edi
push eax
push ebx
call fcn.004d5260
jmp 0x4d7a96