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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbd95
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5203c4]
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 - 0x3c], edx
test edx, edx
je 0x41685c
test edi, edi
je 0x41685c
mov dword [ebp - 0x28], 0
lea esi, [ecx + 2]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416660
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408d10
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 0x4166aa
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x416696
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], esi
cmp eax, 8
jb 0x4166e4
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4166da
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41687d
push ecx
push edx
call fcn.004a8c37
add esp, 8
lea eax, [ebp - 0x2c]
mov ecx, 0x52a140
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412950
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xd], 0
jne 0x416716
cmp esi, dword [eax + 0x10]
jb 0x416716
cmp eax, dword [0x52a140]
je 0x416716
mov eax, 2
jmp 0x416861
push str.system
push edi
call fcn.004b055e
add esp, 8
test eax, eax
jne 0x416755
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x52a18c]
cmp eax, dword [ecx + 4]
jg 0x416882
cmp byte [0x52a190], 0
mov edi, 0x4f9b2c
mov eax, 0x4f9b38
cmove edi, eax
lea ecx, [ebp - 0x38]
call fcn.00417900
mov dword [ebp - 4], 0
mov edx, edi
mov ebx, dword [ebp - 0x38]
lea eax, [edx + 2]
mov dword [ebx], 0
lea ecx, [ebx + 0x1c]
mov dword [ebp - 0x2c], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x416780
sub edx, dword [ebp - 0x2c]
sar edx, 1
push edx
push edi
call fcn.00408d10
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.004ad7b0
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x4167d3
lock inc dword [eax + 4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x30]
mov ecx, 0x52a140
push eax
call fcn.00417ae0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x416827
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x416823
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 3
lock xadd dword [esi + 8], edi
dec edi
jne 0x416823
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], 0
je 0x416850
mov edx, dword [ebp - 0x3c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416835
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x5213e0
call fcn.00408d10
lea ecx, [ebp - 0x38]
call fcn.004177d0
xor eax, eax
jmp 0x416861
mov eax, 1
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.004a8e4e
mov esp, ebp
pop ebp
ret
call fcn.004b040f
push 0x52a18c
call fcn.004a8d78
add esp, 4
cmp dword [0x52a18c], 0xffffffff
jne 0x416741
push ecx
xor edx, edx
call fcn.00412ef0
add esp, 4
mov byte [0x52a190], al
push 0x52a18c
call fcn.004a8d2e
add esp, 4
jmp 0x416741