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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x20
mov dword [esp + 0xc], ecx
mov edi, dword [ebp + 8]
movzx ebx, byte [edi]
test bl, 1
je 0x416713
mov ebx, dword [edi + 4]
mov edi, dword [edi + 8]
jmp 0x416718
add edi, 2
shr ebx, 1
lea esi, [ebx + ebx]
cmp esi, 4
jb 0x416753
lea ecx, [ebx + ebx]
add ecx, 0xfffffffc
test cl, 4
jne 0x416759
imul eax, dword [edi], 0x5bd1e995
mov edx, eax
shr edx, 0x18
xor edx, eax
imul edx, edx, 0x5bd1e995
imul eax, ebx, 0xb7a3d32a
xor eax, edx
lea edx, [edi + 4]
add esi, 0xfffffffc
cmp ecx, 4
jae 0x416762
jmp 0x4167b6
mov eax, esi
mov edx, edi
jmp 0x4167b6
mov edx, edi
mov eax, esi
cmp ecx, 4
jb 0x4167b6
mov dword [esp + 4], edi
nop word cs:[eax + eax]
imul ecx, dword [edx], 0x5bd1e995
mov edi, ecx
shr edi, 0x18
xor edi, ecx
imul ecx, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, ecx
imul ecx, dword [edx + 4], 0x5bd1e995
mov edi, ecx
shr edi, 0x18
xor edi, ecx
imul ecx, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, ecx
add edx, 8
add esi, 0xfffffff8
cmp esi, 3
ja 0x416770
mov edi, dword [esp + 4]
cmp esi, 1
je 0x4167d7
cmp esi, 2
je 0x4167ce
cmp esi, 3
jne 0x4167e2
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 [esp + 4], ecx
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
test edx, edx
mov dword [esp + 8], edx
je 0x41684f
mov eax, edx
shr eax, 1
and eax, 0x55555555
mov ecx, edx
sub ecx, eax
mov eax, ecx
and eax, 0x33333333
shr ecx, 2
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
mov dword [esp + 0x18], eax
cmp eax, 1
ja 0x416854
lea ecx, [edx - 1]
and ecx, dword [esp + 4]
jmp 0x41686e
jmp 0x41694c
mov eax, dword [esp + 4]
mov ecx, eax
cmp eax, edx
jb 0x41686e
mov eax, dword [esp + 4]
xor edx, edx
div dword [esp + 8]
mov ecx, edx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
mov dword [esp + 0x10], ecx
je 0x41694c
mov esi, dword [eax]
test esi, esi
je 0x41694c
lea eax, [edx - 1]
mov dword [esp + 0x14], eax
jmp 0x4168b2
mov esi, dword [esi]
test esi, esi
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
je 0x41694c
mov eax, dword [esi + 4]
cmp eax, dword [esp + 4]
je 0x4168e0
cmp dword [esp + 0x18], 1
ja 0x4168d0
and eax, dword [esp + 0x14]
jmp 0x4168dc
cmp eax, edx
jb 0x4168dc
xor edx, edx
div dword [esp + 8]
mov eax, edx
cmp eax, ecx
jne 0x41694c
movzx eax, byte [esi + 8]
test al, 1
je 0x416900
mov edx, dword [esi + 0xc]
cmp edx, ebx
jne 0x4168a0
jmp 0x416908
mov edx, eax
shr edx, 1
cmp edx, ebx
jne 0x4168a0
test ebx, ebx
je 0x416945
test al, 1
je 0x416920
mov eax, dword [esi + 0x10]
jmp 0x416926
lea eax, [esi + 8]
add eax, 2
xor edx, edx
nop dword [eax + eax]
movzx ecx, word [eax + edx*2]
cmp cx, word [edi + edx*2]
jne 0x4168a0
add edx, 1
cmp ebx, edx
jne 0x416930
xor eax, eax
jmp 0x416aba
mov edi, dword [esp + 4]
mov ebx, dword [ebp + 0x10]
mov dword [esp], 0x18
call fcn.004c3980
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov dword [esi + 0x10], ecx
movsd xmm0, qword [eax]
movsd qword [esi + 8], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [esi + 0x14], 0
mov dword [esi + 4], edi
mov dword [esi], 0
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0xc]
add eax, 1
movd xmm0, eax
movq xmm2, qword [0x4f87d0]
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebx + 0x10]
mov edx, dword [esp + 8]
test edx, edx
je 0x4169e7
movd xmm3, edx
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x4169e7
mov edi, dword [esp + 0x10]
jmp 0x416a70
lea ebx, [edx + edx]
cmp edx, 2
jbe 0x4169fd
lea eax, [edx - 1]
xor ecx, ecx
test edx, eax
setne cl
or ebx, ecx
jmp 0x416a00
or ebx, 1
divss xmm0, xmm1
movss dword [esp], xmm0
call fcn.004c5318
fstp dword [esp + 0x1c]
movss xmm0, dword [esp + 0x1c]
movss xmm1, dword [0x4f87d8]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si eax, xmm2
xor eax, 0x80000000
cvttss2si ecx, xmm0
ucomiss xmm0, xmm1
cmovae ecx, eax
cmp ebx, ecx
cmovae ecx, ebx
mov dword [esp], ecx
mov ebx, dword [esp + 0xc]
mov ecx, ebx
call fcn.004162f0
sub esp, 4
mov edx, dword [ebx + 4]
lea eax, [edx - 1]
test edx, eax
jne 0x416a60
and eax, edi
mov edi, eax
jmp 0x416a70
cmp edi, edx
jb 0x416a70
mov eax, edi
mov ecx, edx
xor edx, edx
div ecx
mov edi, edx
mov edx, ecx
mov ecx, dword [ebx]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x416a7f
mov ecx, dword [eax]
mov dword [esi], ecx
jmp 0x416ab2
mov eax, dword [ebx + 8]
mov dword [esi], eax
lea eax, [ebx + 8]
mov dword [ebx + 8], esi
mov dword [ecx + edi*4], eax
mov eax, dword [esi]
test eax, eax
je 0x416ab4
mov eax, dword [eax + 4]
lea ecx, [edx - 1]
test edx, ecx
jne 0x416aa1
and eax, ecx
jmp 0x416aad
cmp eax, edx
jb 0x416aad
mov ecx, edx
xor edx, edx
div ecx
mov eax, edx
shl eax, 2
add eax, dword [ebx]
mov dword [eax], esi
add dword [ebx + 0xc], 1
mov al, 1
movzx edx, al
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10