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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x542040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov edi, dword [esi + 0xc]
inc edi
cmp byte [eax + 0xb], 0
jns 0x46de44
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov dword [esp], ecx
lea ecx, [ebp - 0x20]
call fcn.00460fa0
sub esp, 8
mov dword [ebp - 0x14], edi
movsx edx, byte [ebp - 0x15]
test edx, edx
js 0x46d9ed
lea eax, [ebp - 0x20]
jmp 0x46d9f3
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
jmp 0x46da35
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], edi
mov ecx, edx
cmp edx, 4
jb 0x46da26
nop dword [eax]
imul edi, dword [eax], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, edi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x46da00
cmp edx, 2
je 0x46d9d7
cmp edx, 3
je 0x46d9ce
cmp edx, 1
je 0x46d9e0
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0x5bd1e995
mov edi, eax
shr edi, 0xf
xor edi, eax
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
jne 0x46dd02
xor ebx, ebx
dec ebx
mov dword [esp], 0x18
call fcn.0048d95d
test eax, eax
je 0x46ddda
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edi
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
movsd xmm0, qword [ebp - 0x20]
movsd qword [eax + 8], xmm0
mov dword [ebp - 0x18], edx
xorps xmm0, xmm0
movsd qword [ebp - 0x20], xmm0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0xc]
inc eax
movd xmm0, eax
movq xmm2, qword [0x530828]
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [esi + 0x10]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x46dae4
movd xmm3, eax
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
jbe 0x46db97
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004b9c80
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
cvttss2si ecx, xmm0
mov edx, ecx
sar edx, 0x1f
subss xmm0, dword [0x530830]
cvttss2si eax, xmm0
and eax, edx
mov edx, dword [ebp - 0x24]
or eax, ecx
lea ecx, [edx + edx]
cmp edx, 3
jae 0x46de58
xor ebx, ebx
inc ebx
or ebx, ecx
cmp ebx, eax
cmovbe ebx, eax
cmp ebx, 1
mov dword [ebp - 0x34], edi
jne 0x46dc0b
mov edi, dword [esi + 4]
mov ebx, 2
cmp edi, 2
jae 0x46de9a
lea eax, [ebx*4]
mov dword [esp], eax
call fcn.0048d95d
mov ecx, dword [esi]
mov dword [esi], eax
test ecx, ecx
jne 0x46dbfe
mov dword [esi + 4], ebx
xor eax, eax
mov ecx, dword [esi]
mov dword [ecx + eax*4], 0
inc eax
cmp ebx, eax
jne 0x46db6d
mov edi, dword [esi + 8]
test edi, edi
jne 0x46dc38
mov eax, dword [esi + 4]
lea ebx, [eax - 1]
test eax, ebx
jne 0x46de6b
and ebx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ecx, dword [esi]
mov eax, dword [ecx + ebx*4]
test eax, eax
jne 0x46de20
lea edx, [esi + 8]
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x2c]
mov dword [esi], eax
mov edi, dword [ebp - 0x28]
mov dword [edi + 8], esi
mov esi, dword [ebp - 0x28]
mov dword [ecx + ebx*4], edx
test eax, eax
jne 0x46ddf9
inc dword [esi + 0xc]
mov bl, 1
cmp byte [ebp - 0x15], 0
mov esi, dword [ebp - 0x3c]
js 0x46de34
mov eax, dword [ebp + 8]
test bl, bl
je 0x46ddee
xor bl, 1
mov dword [eax], esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e2e5
mov eax, ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp], ecx
call fcn.0048d98d
jmp 0x46db68
lea eax, [ebx - 1]
test ebx, eax
je 0x46dc1c
mov dword [esp], ebx
call fcn.0045ec00
mov ebx, eax
mov edi, dword [esi + 4]
cmp ebx, edi
jbe 0x46de9a
cmp ebx, 0x40000000
jb 0x46db4d
jmp 0x46df71
lea eax, [esi + 8]
mov dword [ebp - 0x24], eax
mov edx, ebx
shr edx, 1
and edx, 0x55555555
mov eax, ebx
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
mov ecx, dword [edi + 4]
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x30], eax
cmp eax, 1
jbe 0x46df76
cmp ecx, ebx
mov edx, ecx
jb 0x46dc8f
mov eax, edx
xor edx, edx
div ebx
mov ecx, dword [ebp - 0x24]
mov eax, dword [esi]
mov dword [eax + edx*4], ecx
mov ecx, dword [edi]
test ecx, ecx
je 0x46db86
lea eax, [ebx - 1]
mov dword [ebp - 0x38], eax
jmp 0x46dcba
mov dword [edx + eax*4], edi
mov edi, ecx
mov ecx, dword [ecx]
mov edx, eax
test ecx, ecx
je 0x46db86
mov dword [ebp - 0x24], edx
mov eax, dword [ecx + 4]
cmp dword [ebp - 0x30], 1
jbe 0x46de92
cmp eax, ebx
jb 0x46dcd4
xor edx, edx
div ebx
mov eax, edx
mov edx, dword [ebp - 0x24]
cmp eax, edx
je 0x46dcfe
mov edx, dword [esi]
cmp dword [edx + eax*4], 0
je 0x46dca9
mov edx, dword [ecx]
mov dword [edi], edx
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov edx, dword [edx]
mov dword [ecx], edx
mov edx, dword [esi]
mov eax, dword [edx + eax*4]
mov dword [eax], ecx
mov ecx, edi
mov eax, dword [ebp - 0x24]
jmp 0x46dcac
mov eax, edx
jmp 0x46dcac
mov ecx, eax
shr ecx, 1
and ecx, 0x55555555
sub eax, ecx
mov ecx, eax
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul esi, ecx, 0x1010101
shr esi, 0x18
cmp esi, 1
jbe 0x46dd4d
mov ebx, edi
cmp edi, dword [ebp - 0x24]
jb 0x46dd55
mov eax, edi
xor edx, edx
div dword [ebp - 0x24]
mov ebx, edx
jmp 0x46dd55
mov eax, dword [ebp - 0x24]
lea ebx, [eax - 1]
and ebx, edi
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x46ddbd
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x46ddbd
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
add eax, 0x14
mov dword [ebp - 0x30], eax
jmp 0x46dda7
mov eax, dword [ebp - 0x2c]
add eax, 8
lea ecx, [ebp - 0x20]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
call fcn.00455cb0
sub esp, 8
test al, al
jne 0x46ddd3
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x46ddbd
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
cmp eax, edi
je 0x46dd7c
cmp esi, 1
ja 0x46ddc5
and eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x46dd9b
mov esi, dword [ebp - 0x28]
jmp 0x46da5d
cmp eax, dword [ebp - 0x24]
jb 0x46ddb9
xor edx, edx
div dword [ebp - 0x24]
mov eax, edx
jmp 0x46ddb9
xor ebx, ebx
jmp 0x46dbcb
mov dword [esp + 4], str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
mov dword [esp], 0x524b41
call fcn.004bbec0
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ecx + 0x14]
jmp 0x46dbe3
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x24]
lea ecx, [edx - 1]
test edx, ecx
je 0x46de14
cmp eax, dword [ebp - 0x24]
jb 0x46de16
xor edx, edx
div dword [ebp - 0x24]
mov eax, edx
jmp 0x46de16
and eax, ecx
shl eax, 2
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx]
jmp 0x46de27
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov esi, dword [ebp - 0x28]
jmp 0x46dbc6
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0048d98d
jmp 0x46dbd8
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
movsd xmm0, qword [eax]
movsd qword [ebp - 0x20], xmm0
jmp 0x46d9be
lea ebx, [edx - 1]
mov dword [ebp - 0x30], ebx
xor ebx, ebx
test dword [ebp - 0x30], edx
setne bl
jmp 0x46db29
mov ecx, eax
cmp dword [ebp - 0x34], eax
jae 0x46de7f
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x28]
mov eax, ecx
jmp 0x46db97
mov eax, dword [ebp - 0x34]
xor edx, edx
div ecx
mov ebx, edx
mov eax, ecx
mov esi, dword [ebp - 0x28]
jmp 0x46db97
and eax, dword [ebp - 0x38]
jmp 0x46dcd4
cmp ebx, edi
jae 0x46db86
movss xmm0, dword [esi + 0xc]
orpd xmm0, xmmword [0x530840]
subsd xmm0, qword [0x530828]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [esi + 0x10]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004b9c80
fstp dword [ebp - 0x40]
movss xmm0, dword [ebp - 0x40]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x530830]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp edi, 3
jb 0x46df47
mov ecx, edi
shr ecx, 1
and ecx, 0x55555555
mov eax, edi
sub eax, ecx
mov ecx, eax
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul eax, ecx, 0x1010101
shr eax, 0x18
cmp eax, 1
ja 0x46df47
lea eax, [edx - 1]
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
shl eax, cl
cmp edx, 2
cmovb eax, edx
jmp 0x46df4f
mov dword [esp], edx
call fcn.0045ec00
cmp ebx, eax
cmova eax, ebx
cmp eax, edi
mov esi, dword [ebp - 0x28]
jae 0x46db86
mov dword [esp], eax
mov ecx, esi
call fcn.004bcd60
sub esp, 4
jmp 0x46db86
call fcn.004bb3a0
lea eax, [ebx - 1]
and ecx, eax
mov edx, ecx
jmp 0x46dc8f