Function at 0x49f560
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
movzx ebx, byte [esi + 0xb]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test bl, bl
lea edi, [esi + ebx]
lea edx, [eax + ecx]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], ebx
cmovs edi, edx
cmovs esi, eax
sub edi, esi
cmp edi, 4
jb 0x49f5cd
mov edx, esi
mov eax, edi
nop word [eax + eax]
imul ecx, dword [edx], 0x5bd1e995
imul eax, eax, 0x5bd1e995
add edi, 0xfffffffc
add edx, 4
mov ebx, ecx
shr ebx, 0x18
xor ebx, ecx
imul ecx, ebx, 0x5bd1e995
xor eax, ecx
cmp edi, 3
ja 0x49f5a0
cmp edi, 1
jne 0x49f5d6
jmp 0x49f5f2
mov eax, edi
mov edx, esi
cmp edi, 1
je 0x49f5f2
cmp edi, 2
je 0x49f5e9
cmp edi, 3
jne 0x49f5fd
movzx ecx, byte [edx + 2]
shl ecx, 0x10
xor eax, ecx
movzx ecx, byte [edx + 1]
shl ecx, 8
xor eax, ecx
movzx ecx, byte [edx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ecx + 4]
test edi, edi
mov dword [ebp - 0x14], edi
je 0x49f671
mov eax, edi
mov ecx, edi
shr eax, 1
and eax, 0x55555555
sub ecx, eax
mov eax, ecx
shr ecx, 2
and eax, 0x33333333
and ecx, 0x33333333
add ecx, eax
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
cmp eax, 1
mov dword [ebp - 0x2c], eax
jbe 0x49f676
mov edx, dword [ebp - 0x10]
cmp edx, edi
jb 0x49f67c
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x14]
mov edi, dword [ebp - 0x14]
jmp 0x49f67c
jmp 0x49f758
lea edx, [edi - 1]
and edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x49f758
mov ebx, dword [eax]
test ebx, ebx
je 0x49f758
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
lea eax, [edi - 1]
mov dword [ebp - 0x24], eax
test cl, cl
cmovns edx, ecx
mov dword [ebp - 0x18], edx
jmp 0x49f6bd
mov ebx, dword [ebx]
mov edi, dword [ebp - 0x14]
test ebx, ebx
je 0x49f758
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x10]
je 0x49f6e8
cmp dword [ebp - 0x2c], 1
jbe 0x49f6e0
cmp eax, edi
jb 0x49f6e3
xor edx, edx
div dword [ebp - 0x14]
mov eax, edx
jmp 0x49f6e3
and eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x49f758
movzx eax, byte [ebx + 0x13]
test al, al
mov ecx, eax
jns 0x49f6f5
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x18]
jne 0x49f6b0
lea ecx, [ebx + 8]
test al, al
mov edx, dword [ecx]
cmovs ecx, edx
js 0x49f737
cmp dword [ebp - 0x18], 0
je 0x49f751
cmp byte [esi], dl
jne 0x49f6b0
dec eax
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax]
cmp eax, ecx
je 0x49f751
movzx edx, byte [ebx + ecx + 9]
cmp dl, byte [esi + ecx + 1]
lea ecx, [ecx + 1]
je 0x49f720
jmp 0x49f6b0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49f751
push eax
push esi
push ecx
call fcn.0059334d
add esp, 0xc
test eax, eax
jne 0x49f6b0
xor eax, eax
jmp 0x49f8a5
mov esi, dword [ebp + 0x14]
push 0x18
call fcn.00590936
add esp, 4
mov ebx, eax
lea ecx, [eax + 8]
push dword [esi]
call fcn.00477bde
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
mov dword [ebx + 0x14], 0
movq xmm2, qword [0x5bfc88]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov eax, dword [esi + 0xc]
movss xmm1, dword [esi + 0x10]
inc eax
test edx, edx
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
je 0x49f7d3
movd xmm3, edx
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x49f7d3
mov edi, dword [ebp - 0x20]
jmp 0x49f85c
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
mov edi, edx
call fcn.005a8230
add esp, 8
fstp dword [ebp - 0x30]
movss xmm1, dword [0x5bfc90]
lea ecx, [edi - 1]
movss xmm0, dword [ebp - 0x30]
movaps xmm2, xmm0
cvttss2si edx, xmm0
subss xmm2, xmm1
cvttss2si eax, xmm2
xor eax, 0x80000000
ucomiss xmm0, xmm1
cmovae edx, eax
cmp edi, 3
setb al
test edi, ecx
setne cl
or cl, al
movzx eax, cl
mov ecx, esi
lea eax, [eax + edi*2]
cmp eax, edx
cmovae edx, eax
push edx
call fcn.0049f8c0
mov edx, dword [esi + 4]
lea edi, [edx - 1]
test edx, edi
je 0x49f859
mov edi, dword [ebp - 0x10]
cmp edi, edx
jb 0x49f85c
mov ecx, edx
mov eax, edi
xor edx, edx
div ecx
mov edi, edx
mov edx, ecx
jmp 0x49f85c
and edi, dword [ebp - 0x10]
mov ecx, dword [esi]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x49f86b
mov ecx, dword [eax]
mov dword [ebx], ecx
jmp 0x49f89e
mov eax, dword [esi + 8]
mov dword [ebx], eax
lea eax, [esi + 8]
mov dword [esi + 8], ebx
mov dword [ecx + edi*4], eax
mov eax, dword [ebx]
test eax, eax
je 0x49f8a0
mov eax, dword [eax + 4]
lea ecx, [edx - 1]
test edx, ecx
je 0x49f897
cmp eax, edx
jb 0x49f899
mov ecx, edx
xor edx, edx
div ecx
mov eax, edx
jmp 0x49f899
and eax, ecx
shl eax, 2
add eax, dword [esi]
mov dword [eax], ebx
inc dword [esi + 0xc]
mov al, 1
mov edi, dword [ebp + 8]
mov dword [edi], ebx
mov byte [edi + 4], al
mov eax, edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14