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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d83fd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5049c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov edx, dword [eax]
mov dword [edi], edx
test dl, 1
je 0x4a58ea
and edx, 0xfffffffc
mov ecx, 1
lea eax, [edx + 4]
lock xadd dword [eax], ecx
mov byte [edi + 4], 7
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
jne 0x4a5908
mov dword [edi + 8], 0x507b70
jmp 0x4a5b6a
push edi
push 0
push eax
call fcn.004a6d40
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [edi + 8], eax
lea esi, [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ecx], 0
mov ecx, dword [edi + 8]
shl edx, 5
add edx, eax
mov dword [ebp - 0x20], edx
cmp dword [ecx + 4], 0x12
ja 0x4a5a3b
mov dword [ecx], 0
cmp eax, edx
je 0x4a5b6a
lea edi, [eax + 8]
nop
movups xmm0, xmmword [edi + 8]
movups xmmword [esi], xmm0
mov dword [edi + 8], 0
mov byte [edi + 0xc], 0
test byte [edi - 8], 1
je 0x4a5986
mov ecx, dword [edi - 8]
or edx, 0xffffffff
and ecx, 0xfffffffc
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x4a5986
test ecx, ecx
je 0x4a5986
mov eax, dword [ecx]
push edx
call dword [eax]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push eax
mov byte [edi - 4], 0x85
add edi, 0x20
push ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x30]
push ecx
push eax
call fcn.0049d140
mov edx, dword [ebp - 0x30]
add esp, 0x10
test edx, edx
jne 0x4a59be
mov ecx, dword [ebp - 0x10]
add esi, 0x20
mov eax, dword [ecx + 8]
inc dword [eax]
jmp 0x4a5a1a
mov ecx, dword [edx]
mov eax, ecx
and al, 3
mov byte [ebp - 4], 1
cmp al, 2
je 0x4a59fb
mov eax, dword [edx + 0x10]
mov dword [ebp + 8], eax
cmp eax, 0x4e6911
je 0x4a59fb
mov eax, ecx
mov ecx, 0x504908
and eax, 0xfffffffc
cmp dword [edx], 0
push 1
cmovne ecx, eax
mov eax, dword [edx + 0x14]
inc eax
push eax
push dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx + 8]
mov edx, dword [ebp - 0x30]
mov ecx, edx
call fcn.004a6a70
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 0x10], xmm0
lea eax, [edi - 8]
cmp eax, dword [ebp - 0x20]
jne 0x4a5950
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp eax, edx
je 0x4a5b5d
lea edi, [eax + 8]
nop word [eax + eax]
movups xmm0, xmmword [edi + 8]
movups xmmword [esi], xmm0
mov dword [edi + 8], 0
mov byte [edi + 0xc], 0
test byte [edi - 8], 1
je 0x4a5a86
mov ecx, dword [edi - 8]
or edx, 0xffffffff
and ecx, 0xfffffffc
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x4a5a86
test ecx, ecx
je 0x4a5a86
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov byte [edi - 4], 0x85
add edi, 0x20
mov dword [esi + 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], edi
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], edx
add eax, ecx
mov dword [ebp - 0x1c], eax
mov edx, dword [edx + 8]
sub edx, 0x7ee3623b
cmp ecx, eax
je 0x4a5ad4
mov edi, eax
movsx eax, byte [ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jne 0x4a5ac1
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov eax, edx
xor edx, edx
mov ecx, dword [ecx + 4]
div ecx
lea eax, [ecx*8 + 4]
mov ecx, dword [ebp + 8]
add eax, edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4a5b32
nop dword [eax]
push dword [ebp - 0x18]
shl eax, 5
push dword [ebp - 0x24]
lea edi, [eax + ecx]
push dword [edi + 0x24]
mov eax, dword [edi + 0x28]
push dword [edi + 0x20]
mov dword [ebp - 0x1c], eax
call fcn.00445750
add esp, 0x10
test al, al
mov eax, dword [ebp - 0x1c]
jne 0x4a5b7f
mov ecx, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x4a5b00
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x18], eax
mov eax, esi
sub eax, dword [ecx + 8]
mov ecx, dword [ebp - 0x2c]
sub eax, 0x10
sar eax, 5
add esi, 0x20
mov dword [ecx], eax
lea eax, [edi - 8]
cmp eax, dword [ebp - 0x20]
jne 0x4a5a50
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 8]
sub esi, eax
sub esi, 0x10
sar esi, 5
mov dword [eax], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x18], eax
mov edx, dword [edi + 0x10]
mov eax, edx
and al, 3
mov byte [ebp - 4], 2
cmp al, 2
je 0x4a5bb8
cmp dword [edi + 0x20], 0x4e6911
je 0x4a5bb8
mov eax, edx
mov ecx, 0x504908
and eax, 0xfffffffc
test edx, edx
push 1
cmovne ecx, eax
mov eax, dword [edi + 0x24]
inc eax
push eax
push dword [edi + 0x20]
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [edi + 0x10]
call fcn.004a6a70
movups xmm0, xmmword [esi]
mov byte [ebp - 4], 0
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x20], xmm0
mov edi, dword [ebp - 0x14]
jmp 0x4a5b4e