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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4daea5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x520404]
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 0x41a97c
test edi, edi
je 0x41a97c
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 0x41a780
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408960
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 0x41a7ca
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x41a7b6
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], esi
cmp eax, 8
jb 0x41a804
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a7fa
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a99d
push ecx
push edx
call fcn.004a7d37
add esp, 8
lea eax, [ebp - 0x2c]
mov ecx, 0x52a114
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004126f0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xd], 0
jne 0x41a836
cmp esi, dword [eax + 0x10]
jb 0x41a836
cmp eax, dword [0x52a114]
je 0x41a836
mov eax, 2
jmp 0x41a981
push str.system
push edi
call fcn.004af5ae
add esp, 8
test eax, eax
jne 0x41a875
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x52a1dc]
cmp eax, dword [ecx + 4]
jg 0x41a9a2
cmp byte [0x52a1e0], 0
mov edi, 0x4f900c
mov eax, 0x4f9018
cmove edi, eax
lea ecx, [ebp - 0x38]
call fcn.0041ba10
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 0x41a8a0
sub edx, dword [ebp - 0x2c]
sar edx, 1
push edx
push edi
call fcn.00408960
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.004ac800
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x41a8f3
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, 0x52a114
push eax
call fcn.0041bc00
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x41a947
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41a943
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 3
lock xadd dword [esi + 8], edi
dec edi
jne 0x41a943
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], 0
je 0x41a970
mov edx, dword [ebp - 0x3c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a955
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x521420
call fcn.00408960
lea ecx, [ebp - 0x38]
call fcn.0041b8e0
xor eax, eax
jmp 0x41a981
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.004a7f4e
mov esp, ebp
pop ebp
ret
call fcn.004af45f
push 0x52a1dc
call fcn.004a7e78
add esp, 4
cmp dword [0x52a1dc], 0xffffffff
jne 0x41a861
push ecx
xor edx, edx
call fcn.00412c90
add esp, 4
mov byte [0x52a1e0], al
push 0x52a1dc
call fcn.004a7e2e
add esp, 4
jmp 0x41a861