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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7245
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x51a3c4]
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 0x41683c
test edi, edi
je 0x41683c
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 0x416640
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 0x41668a
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x416676
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], esi
cmp eax, 8
jb 0x4166c4
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4166ba
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41685d
push ecx
push edx
call fcn.004a42a7
add esp, 8
lea eax, [ebp - 0x2c]
mov ecx, 0x524060
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412950
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xd], 0
jne 0x4166f6
cmp esi, dword [eax + 0x10]
jb 0x4166f6
cmp eax, dword [0x524060]
je 0x4166f6
mov eax, 2
jmp 0x416841
push str.system
push edi
call fcn.004abbce
add esp, 8
test eax, eax
jne 0x416735
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5240ac]
cmp eax, dword [ecx + 4]
jg 0x416862
cmp byte [0x5240b0], 0
mov edi, 0x4f37fc
mov eax, 0x4f3808
cmove edi, eax
lea ecx, [ebp - 0x38]
call fcn.004178e0
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 0x416760
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.004a8e20
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x4167b3
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, 0x524060
push eax
call fcn.00417ac0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x416807
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x416803
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 3
lock xadd dword [esi + 8], edi
dec edi
jne 0x416803
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], 0
je 0x416830
mov edx, dword [ebp - 0x3c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416815
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x51b3e0
call fcn.00408d10
lea ecx, [ebp - 0x38]
call fcn.004177b0
xor eax, eax
jmp 0x416841
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.004a44be
mov esp, ebp
pop ebp
ret
call fcn.004aba7f
push 0x5240ac
call fcn.004a43e8
add esp, 4
cmp dword [0x5240ac], 0xffffffff
jne 0x416721
push ecx
xor edx, edx
call fcn.00412ef0
add esp, 4
mov byte [0x5240b0], al
push 0x5240ac
call fcn.004a439e
add esp, 4
jmp 0x416721