Function at 0x415f20
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 0x415f43
mov ebx, dword [edi + 4]
mov edi, dword [edi + 8]
jmp 0x415f48
add edi, 2
shr ebx, 1
lea esi, [ebx + ebx]
cmp esi, 4
jb 0x415f83
lea ecx, [ebx + ebx]
add ecx, 0xfffffffc
test cl, 4
jne 0x415f89
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 0x415f92
jmp 0x415fe6
mov eax, esi
mov edx, edi
jmp 0x415fe6
mov edx, edi
mov eax, esi
cmp ecx, 4
jb 0x415fe6
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 0x415fa0
mov edi, dword [esp + 4]
cmp esi, 1
je 0x416007
cmp esi, 2
je 0x415ffe
cmp esi, 3
jne 0x416012
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 0x41607f
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 0x416084
lea ecx, [edx - 1]
and ecx, dword [esp + 4]
jmp 0x41609e
jmp 0x41617c
mov eax, dword [esp + 4]
mov ecx, eax
cmp eax, edx
jb 0x41609e
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 0x41617c
mov esi, dword [eax]
test esi, esi
je 0x41617c
lea eax, [edx - 1]
mov dword [esp + 0x14], eax
jmp 0x4160e2
mov esi, dword [esi]
test esi, esi
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
je 0x41617c
mov eax, dword [esi + 4]
cmp eax, dword [esp + 4]
je 0x416110
cmp dword [esp + 0x18], 1
ja 0x416100
and eax, dword [esp + 0x14]
jmp 0x41610c
cmp eax, edx
jb 0x41610c
xor edx, edx
div dword [esp + 8]
mov eax, edx
cmp eax, ecx
jne 0x41617c
movzx eax, byte [esi + 8]
test al, 1
je 0x416130
mov edx, dword [esi + 0xc]
cmp edx, ebx
jne 0x4160d0
jmp 0x416138
mov edx, eax
shr edx, 1
cmp edx, ebx
jne 0x4160d0
test ebx, ebx
je 0x416175
test al, 1
je 0x416150
mov eax, dword [esi + 0x10]
jmp 0x416156
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 0x4160d0
add edx, 1
cmp ebx, edx
jne 0x416160
xor eax, eax
jmp 0x4162d5
mov edi, dword [esp + 4]
mov ebx, dword [ebp + 0x10]
mov dword [esp], 0x18
call fcn.004c3980
mov esi, eax
lea ecx, [eax + 8]
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0046fd10
sub esp, 4
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
movq xmm2, qword [0x4f87a0]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebx + 0x10]
mov edx, dword [esp + 8]
test edx, edx
je 0x416202
movd xmm3, edx
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x416202
mov edi, dword [esp + 0x10]
jmp 0x41628b
lea ebx, [edx + edx]
cmp edx, 2
jbe 0x416218
lea eax, [edx - 1]
xor ecx, ecx
test edx, eax
setne cl
or ebx, ecx
jmp 0x41621b
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 [0x4f87a8]
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 0x41627b
and eax, edi
mov edi, eax
jmp 0x41628b
cmp edi, edx
jb 0x41628b
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 0x41629a
mov ecx, dword [eax]
mov dword [esi], ecx
jmp 0x4162cd
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 0x4162cf
mov eax, dword [eax + 4]
lea ecx, [edx - 1]
test edx, ecx
jne 0x4162bc
and eax, ecx
jmp 0x4162c8
cmp eax, edx
jb 0x4162c8
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