Function at 0x413e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0x66a880
call fcn.00401630
mov edi, dword [ebp + 8]
mov esi, eax
push edi
mov dword [ebp - 0xc], esi
call fcn.00416fc0
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov eax, esi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_
add esp, 0x10
mov dword [ebp - 4], eax
push 0x4ed010
push 0x66a880
call fcn.00401620
mov esi, dword [ebp - 0x10]
add esp, 4
push eax
push esi
call fcn.00412540
push dword [ebp - 0x14]
push esi
push 0x66a880
call fcn.004013e0
mov eax, dword [ebp - 0xc]
add esp, 0x18
xor esi, esi
test eax, eax
jle 0x413ecf
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [edi], esi
movsd xmm0, qword [eax + esi*8]
xorpd xmm0, xmmword [0x4e4580]
call sub.MSVCR120.dll__libm_sse2_exp_precise
movsd xmm1, qword [0x4e4568]
inc esi
addsd xmm0, xmm1
mov eax, dword [ebp - 0xc]
divsd xmm1, xmm0
movsd qword [edi + 8], xmm1
add edi, 0x10
cmp esi, eax
jl 0x413e95
mov edi, dword [ebp + 8]
push 0x414f90
push 0x10
push eax
push dword [ebp - 4]
call dword [sym.imp.MSVCR120.dll_qsort]
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0xc], esi
jle 0x413fbe
mov edx, dword [ebp - 4]
lea eax, [edi + 8]
mov dword [ebp - 8], eax
lea eax, [edi + 0x128]
mov dword [ebp - 0x18], edx
mov dword [ebp + 8], eax
cmp esi, 0x24
jge 0x413fbe
mov eax, dword [edx]
inc esi
lea ecx, [eax + eax*2]
mov eax, dword [0x67e06c]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
movsd xmm0, qword [edx + 8]
mov ecx, dword [ebp - 4]
movsd qword [eax], xmm0
mov dword [edi + 0x1bc], esi
movsd xmm1, qword [ecx + 8]
mulsd xmm1, qword [0x4c3a68]
mov ecx, dword [ebp + 8]
movsd xmm0, qword [edx + 8]
comisd xmm0, xmm1
jb 0x413f55
mov dword [edi + 0x1b8], esi
cmp dword [0x67dff0], 2
jle 0x413fa3
mov eax, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [eax]
push dword [eax + 8]
push ecx
push ecx
push dword [ebp - 0x10]
call fcn.00415130
mov eax, dword [ebp - 8]
fstp qword [esp]
sub esp, 8
movsd xmm0, qword [eax]
mulsd xmm0, qword [0x4c3a78]
movsd qword [esp], xmm0
push str._7.4f__7.4f__3u__s_n
call dword [sym.imp.MSVCR120.dll_printf]
mov edx, dword [ebp - 0x18]
add esp, 0x1c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, 4
add edx, 0x10
add eax, 8
mov dword [ebp + 8], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 0xc]
jl 0x413f03
mov eax, dword [edi + 0x1b8]
test eax, eax
je 0x414063
cmp eax, 1
jne 0x414059
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp - 0x10]
call fcn.00415130
mov eax, dword [0x67dff0]
add esp, 8
fstp qword [ebp - 0x1c]
cmp eax, 1
jle 0x414016
movsd xmm0, qword [ebp - 0x1c]
sub esp, 8
movsd qword [esp], xmm0
push str.Novelty_of_closest_match_is__.3f._n
push 0x405
call fcn.00454c40
mov eax, dword [0x67dff0]
add esp, 0x10
movsd xmm1, qword [0x4c3a70]
movsd xmm0, qword [ebp - 0x1c]
comisd xmm1, xmm0
jbe 0x414035
mov dword [edi + 0x1c0], 0
jmp 0x41406d
test eax, eax
jle 0x414059
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push str.Novelty_of_closest_match_is__.3f____.3f__ignoring._n
push 0x405
call fcn.00454c40
add esp, 0x18
mov dword [edi + 0x1b8], 0
mov dword [edi + 0x1c0], 0xffffffff
push dword [ebp - 0x10]
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
push dword [ebp - 0x14]
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
push dword [ebp - 4]
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret