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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee090
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x536364]
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 0x418bf3
mov eax, 1
jmp 0x418e2b
test edi, edi
je 0x418be9
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 0x418c10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004068e0
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 0x418c5a
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x418c46
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x418c91
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418c87
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418e47
push ecx
push edx
call fcn.004a1b67
add esp, 8
mov edx, dword [0x54144c]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x418cc9
cmp dword [eax + 0x10], esi
jae 0x418cac
mov eax, dword [eax + 8]
jmp 0x418cb0
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x418ca2
cmp ecx, edx
je 0x418cc9
cmp esi, dword [ecx + 0x10]
jb 0x418cc9
mov eax, 2
jmp 0x418e2b
push 0x50baa4
push edi
call fcn.004c44bc
add esp, 8
test eax, eax
jne 0x418d08
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x541518]
cmp eax, dword [ecx + 4]
jg 0x418e4c
cmp byte [0x54151c], 0
mov edi, 0x50bab4
mov eax, 0x50bac0
cmove edi, eax
lea ecx, [ebp - 0x30]
call fcn.00419e70
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 0x418d25
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebx + 0x1c]
call fcn.004068e0
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.004c10f0
mov dword [ebp - 0x1c], esi
add esp, 0xc
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x418d7a
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, 0x54144c
call fcn.00419f80
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, 0x54144c
push eax
call fcn.00419fd0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x418dd3
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x418dd3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x418dd3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp dword [ebp + 0x1c], 0
mov byte [ebp - 4], 0
je 0x418e00
mov edi, dword [ebp - 0x34]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418de5
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, 0x537330
call fcn.004068e0
mov dword [ebp - 4], 3
test esi, esi
je 0x418e29
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x418e29
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x418e29
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.004a1e09
mov esp, ebp
pop ebp
ret
call fcn.004c43e9
push 0x541518
call fcn.004a1d15
add esp, 4
cmp dword [0x541518], 0xffffffff
jne 0x418cf4
push ecx
xor edx, edx
call fcn.0041a5c0
add esp, 4
mov byte [0x54151c], al
push 0x541518
call fcn.004a1ccb
add esp, 4
jmp 0x418cf4