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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f15c0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x53ac84]
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 edi, edx
mov dword [ebp - 0x2c], edi
mov edx, ecx
mov dword [ebp - 0x34], edx
test edx, edx
jne 0x4197d3
mov eax, 1
jmp 0x419a0b
test edi, edi
je 0x4197c9
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea esi, [ecx + 2]
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4197f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407020
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov esi, 0x811c9dc5
mov eax, dword [ebp - 0x18]
cmovae ebx, edx
xor ecx, ecx
add eax, eax
je 0x41983a
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x419826
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x419871
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x419867
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419a27
push ecx
push edx
call fcn.004c1d47
add esp, 8
mov edx, dword [0x544f4c]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x4198a9
cmp dword [eax + 0x10], esi
jae 0x41988c
mov eax, dword [eax + 8]
jmp 0x419890
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x419882
cmp ecx, edx
je 0x4198a9
cmp esi, dword [ecx + 0x10]
jb 0x4198a9
mov eax, 2
jmp 0x419a0b
push 0x50ffd4
push edi
call fcn.004c7d74
add esp, 8
test eax, eax
jne 0x4198e8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x545014]
cmp eax, dword [ecx + 4]
jg 0x419a2c
cmp byte [0x545018], 0
mov edi, 0x50ffe4
mov eax, 0x50fff0
cmove edi, eax
lea ecx, [ebp - 0x30]
call fcn.0041aa50
mov dword [ebp - 4], 0
mov ecx, edi
mov ebx, dword [ebp - 0x30]
lea edx, [ecx + 2]
mov dword [ebx], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419905
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebx + 0x1c]
call fcn.00407020
mov eax, dword [ebp + 8]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp + 0x18]
push 0x3c
mov dword [ebx + 0x44], eax
lea eax, [ebx + 0x4c]
push 0
push eax
call fcn.004c49e0
mov dword [ebp - 0x1c], esi
add esp, 0xc
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x41995a
lock inc dword [esi + 4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x544f4c
call fcn.0041ab60
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, 0x544f4c
push eax
call fcn.0041abb0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4199b3
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4199b3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x4199b3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp dword [ebp + 0x1c], 0
mov byte [ebp - 4], 0
je 0x4199e0
mov edi, dword [ebp - 0x34]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4199c5
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, 0x53bc00
call fcn.00407020
mov dword [ebp - 4], 3
test esi, esi
je 0x419a09
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x419a09
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x419a09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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.004c1fe9
mov esp, ebp
pop ebp
ret
call fcn.004c7ca1
push 0x545014
call fcn.004c1ef5
add esp, 4
cmp dword [0x545014], 0xffffffff
jne 0x4198d4
push ecx
xor edx, edx
call fcn.0041b1a0
add esp, 4
mov byte [0x545018], al
push 0x545014
call fcn.004c1eab
add esp, 4
jmp 0x4198d4