Function at 0x415710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6a8740
call fcn.004018c0
mov edi, eax
push esi
mov dword [ebp - 0x18], edi
call fcn.00418020
mov esi, eax
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x10], esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dc766
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov eax, edi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dc766
add esp, 0x10
mov dword [ebp - 4], eax
push section..data
push 0x6a8740
call fcn.004018b0
add esp, 4
push eax
push esi
call fcn.00413d50
push dword [ebp - 0x14]
push esi
push 0x6a8740
call fcn.004015d0
add esp, 0x18
xor esi, esi
fstp st(0)
test edi, edi
jle 0x415931
mov edi, dword [ebp - 4]
nop word [eax + eax]
mov eax, dword [ebp - 0x14]
mov dword [edi], esi
movsd xmm0, qword [eax + esi*8]
xorps xmm0, xmmword [0x5266d0]
call fcn.004dd8ff
movsd xmm1, qword [0x5266c0]
inc esi
addsd xmm0, xmm1
mov eax, dword [ebp - 0x18]
divsd xmm1, xmm0
movsd qword [edi + 8], xmm1
add edi, 0x10
cmp esi, eax
jl 0x4157b0
mov esi, dword [ebp - 4]
push 0x4163a0
push 0x10
push eax
push esi
call dword [0x4e3528]
mov ecx, dword [ebp + 8]
add esp, 0x10
mov edi, esi
xor esi, esi
lea edx, [ecx + 8]
lea eax, [ecx + 0x128]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 0x24
jge 0x4158c0
mov eax, dword [edi]
inc esi
lea ecx, [eax + eax*2]
mov eax, dword [0x6ac0a4]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
movsd xmm0, qword [edi + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
movsd qword [edx], xmm0
mov dword [ecx + 0x1bc], esi
movsd xmm1, qword [eax + 8]
mulsd xmm1, qword [0x4e4c80]
movsd xmm0, qword [edi + 8]
comisd xmm0, xmm1
jb 0x415860
mov dword [ecx + 0x1b8], esi
cmp byte [0x6ac03d], 2
jbe 0x4158aa
mov eax, dword [ebp - 8]
mov ecx, dword [edi]
mov eax, dword [eax]
push dword [eax + 8]
push ecx
push ecx
push dword [ebp - 0x10]
call fcn.00416530
mov eax, dword [ebp - 0xc]
fstp qword [esp]
sub esp, 8
movsd xmm0, qword [eax]
mulsd xmm0, qword [0x4e4c90]
movsd qword [esp], xmm0
push str._7.4f__7.4f__3u__s_n
call fcn.0040bbb0
mov edx, dword [ebp - 0xc]
add esp, 0x1c
mov ecx, dword [ebp + 8]
add dword [ebp - 8], 4
add edx, 8
add edi, 0x10
mov dword [ebp - 0xc], edx
cmp esi, dword [ebp - 0x18]
jl 0x415811
mov esi, dword [ebp - 4]
mov eax, dword [ecx + 0x1b8]
test eax, eax
je 0x41597f
cmp eax, 1
jne 0x415975
push dword [esi]
push dword [ebp - 0x10]
call fcn.00416530
mov al, byte [0x6ac03d]
add esp, 8
fstp qword [ebp - 0x1c]
cmp al, 1
jbe 0x415917
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.004560d0
mov al, byte [0x6ac03d]
add esp, 0x10
movsd xmm1, qword [0x4e4c88]
movsd xmm0, qword [ebp - 0x1c]
comisd xmm1, xmm0
jbe 0x41594e
mov ecx, dword [ebp + 8]
xor eax, eax
jmp 0x415982
mov esi, dword [ebp - 4]
push 0x4163a0
push 0x10
push edi
push esi
call dword [0x4e3528]
mov ecx, dword [ebp + 8]
add esp, 0x10
jmp 0x4158c3
test al, al
je 0x415972
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.004560d0
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1b8], 0
or eax, 0xffffffff
push dword [ebp - 0x10]
mov dword [ecx + 0x1c0], eax
call fcn.004dc76f
push dword [ebp - 0x14]
call fcn.004dc76f
push esi
call fcn.004dc76f
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret