Function at 0x74fc58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp eax, 1
movsd xmm0, qword [esi + 8]
jle 0x74fcfc
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 1]
mov eax, connect
imul ecx
mov ebx, ecx
sar ebx, 0x1f
add edx, ecx
sub edx, ebx
je 0x75031f
xor eax, eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x1c], ecx
mov ecx, ebx
movsd xmm1, qword [ebx + esi + 0x18]
comisd xmm0, xmm1
jbe 0x74fcb6
movaps xmm0, xmm1
lea eax, [ecx + 1]
movsd xmm1, qword [ebx + esi + 0x28]
comisd xmm0, xmm1
jbe 0x74fcc8
movaps xmm0, xmm1
lea eax, [ecx + 2]
add ecx, 2
add ebx, 0x20
add edi, 1
cmp edi, edx
jb 0x74fca4
mov ecx, dword [esp + 0x1c]
lea ebx, [edi + edi + 1]
lea edx, [ebx - 1]
cmp ecx, edx
jbe 0x74fcfe
mov edx, ebx
shl edx, 4
movsd xmm1, qword [edx + esi + 8]
comisd xmm0, xmm1
jbe 0x74fcfe
movaps xmm0, xmm1
mov eax, ebx
jmp 0x74fcfe
xor eax, eax
movsd xmm3, qword [0xb52b08]
mov ebx, eax
andps xmm3, xmm0
movaps xmm2, xmm0
xorps xmm2, xmm3
movsd xmm1, qword [0xb52b10]
cmpltsd xmm2, xmm1
andps xmm2, xmm1
orps xmm2, xmm3
movaps xmm5, xmm0
mov edx, dword [ebp + 0xc]
addsd xmm5, xmm2
subsd xmm5, xmm2
movaps xmm4, xmm5
subsd xmm4, xmm0
movsd xmm0, qword [0xb52b18]
cmpltsd xmm4, xmm3
andps xmm4, xmm0
addsd xmm5, xmm4
cvtsd2si ecx, xmm5
mov dword [esp + 0x1c], ecx
cmp edx, 1
je 0x750380
movsd xmm2, qword [esi]
minsd xmm2, qword [esi + 0x10]
movsd xmm3, qword [0xb52b08]
movsd xmm0, qword [0xb52b10]
movsd xmm7, qword [0xb52b10]
movsd xmm4, qword [0xb52b18]
mov edx, dword [ebp + 0x14]
andps xmm3, xmm2
movaps xmm1, xmm3
xorps xmm1, xmm2
cmpltsd xmm1, xmm0
mov dword [esp + 0x10], ecx
andps xmm1, xmm0
orps xmm1, xmm3
movaps xmm6, xmm1
addsd xmm6, xmm2
subsd xmm6, xmm1
movaps xmm5, xmm6
subsd xmm5, xmm2
movsd xmm2, qword [0xb52b08]
cmpltsd xmm5, xmm3
andps xmm5, xmm4
addsd xmm6, xmm5
cvtsd2si edi, xmm6
mov dword [edx], edi
movsd xmm1, qword [esi]
maxsd xmm1, qword [esi + 0x10]
xorps xmm6, xmm6
movaps xmm5, xmm6
andps xmm2, xmm1
movsd qword [esp + 0x30], xmm5
movaps xmm0, xmm2
xorps xmm0, xmm1
cmpltsd xmm0, xmm7
andps xmm0, xmm7
orps xmm0, xmm2
movaps xmm4, xmm0
addsd xmm4, xmm1
subsd xmm4, xmm0
movsd xmm0, qword [0xb52b18]
movaps xmm3, xmm4
subsd xmm3, xmm1
movaps xmm1, xmm6
cmpnlesd xmm3, xmm2
andps xmm3, xmm0
movaps xmm2, xmm6
movaps xmm0, xmm6
subsd xmm4, xmm3
movaps xmm3, xmm6
cvtsd2si edi, xmm4
mov dword [edx + 4], edi
mov edi, dword [ebp + 0xc]
movaps xmm4, xmm6
mov edx, eax
shl edx, 4
lea edi, [edi - 1]
mov dword [esp + 0x14], edx
mov ecx, edx
mov edx, eax
shl edx, 4
mov dword [esp + 0x18], edi
movsd qword [esp + 0x28], xmm4
mov dword [esp + 0x20], edx
mov edi, dword [ebp + 8]
movsd xmm4, qword [ecx + edi + 8]
mov esi, dword [esp + 0x20]
movsd xmm6, qword [esi + edi + 8]
mov edx, ebx
mov dword [esp + 0x24], eax
comisd xmm6, xmm4
jae 0x7502db
mov esi, dword [ebp + 8]
mov edx, ebx
shl edx, 4
movsd xmm5, qword [edx + esi + 8]
comisd xmm5, xmm6
jae 0x750292
movsd xmm5, qword [0xb52b08]
minsd xmm4, xmm6
andps xmm5, xmm4
movaps xmm7, xmm5
xorps xmm7, xmm4
movsd xmm6, qword [0xb52b10]
cmpltsd xmm7, xmm6
andps xmm7, xmm6
orps xmm7, xmm5
movaps xmm6, xmm7
mov edx, dword [esp + 0x1c]
addsd xmm6, xmm4
subsd xmm6, xmm7
movaps xmm7, xmm6
subsd xmm7, xmm4
movsd xmm4, qword [0xb52b18]
cmpnlesd xmm7, xmm5
andps xmm7, xmm4
subsd xmm6, xmm7
cvtsd2si esi, xmm6
cmp edx, esi
jg 0x750279
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x7500a9
mov edi, esi
sub edi, dword [esp + 0x1c]
add edi, 1
je 0x750279
movsd xmm5, qword [0xb52b18]
movsd xmm4, qword [0xb52b00]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
xor edi, edi
mov dword [esp + 0xc], edi
mov edi, edx
shl edi, 3
neg edi
add edi, ecx
lea edi, [edi + esi*8]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x24]
lea edx, [edx + edx]
shl edx, 2
neg edx
add edx, ecx
mov ecx, dword [esp + 0x14]
lea edx, [edx + esi*8]
mov esi, dword [esp]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x48], xmm2
movsd qword [esp + 0x50], xmm3
mov dword [esp + 0x24], edi
mov dword [esp], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 8], eax
cvtsi2sd xmm7, ebx
movsd xmm3, qword [0xb52b08]
add ebx, 1
movaps xmm6, xmm7
subsd xmm6, qword [esp + 0x40]
mulsd xmm6, qword [esp + 0x38]
subsd xmm7, qword [esp + 0x30]
mulsd xmm7, qword [esp + 0x28]
addsd xmm6, qword [esp + 0x48]
addsd xmm7, qword [esp + 0x50]
movsd xmm0, qword [0xb52b10]
andps xmm3, xmm6
movaps xmm1, xmm3
xorps xmm1, xmm6
cmpltsd xmm1, xmm0
andps xmm1, xmm0
movsd xmm0, qword [0xb52b18]
orps xmm1, xmm3
movaps xmm2, xmm1
addsd xmm2, xmm6
subsd xmm2, xmm1
movaps xmm1, xmm2
subsd xmm1, xmm6
cmpltsd xmm1, xmm3
andps xmm1, xmm0
movsd xmm0, qword [0xb52b10]
addsd xmm2, xmm1
movsd xmm1, qword [0xb52b08]
andps xmm1, xmm7
cvtsd2si ecx, xmm2
movaps xmm2, xmm1
xorps xmm2, xmm7
lea edi, [ecx - 1]
cmpltsd xmm2, xmm0
andps xmm2, xmm0
orps xmm2, xmm1
movaps xmm0, xmm2
addsd xmm0, xmm7
subsd xmm0, xmm2
movsd xmm2, qword [0xb52b18]
movaps xmm3, xmm0
subsd xmm3, xmm7
cmpnlesd xmm3, xmm1
andps xmm3, xmm2
movaps xmm1, xmm5
subsd xmm0, xmm3
cvtsd2si eax, xmm0
cvtsi2sd xmm0, ecx
addsd xmm6, xmm5
subsd xmm1, xmm7
subsd xmm6, xmm0
cvtsi2sd xmm0, eax
comisd xmm4, xmm6
cmova ecx, edi
lea edi, [eax + 1]
addsd xmm1, xmm0
comisd xmm4, xmm1
cmova eax, edi
mov edi, dword [esp + 0x58]
mov dword [edi + esi*8], ecx
mov dword [edx + esi*8 + 4], eax
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jb 0x74ff91
jmp 0x750252
mov edi, esi
sub edi, dword [esp + 0x1c]
add edi, 1
je 0x750279
movsd xmm5, qword [0xb52b18]
movsd xmm4, qword [0xb52b00]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
xor edi, edi
mov dword [esp + 0xc], edi
mov edi, edx
shl edi, 3
neg edi
add edi, ecx
lea edi, [edi + esi*8]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x24]
lea edx, [edx + edx]
shl edx, 2
neg edx
add edx, ecx
mov ecx, dword [esp + 0x14]
lea edx, [edx + esi*8]
mov esi, dword [esp]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x48], xmm2
movsd qword [esp + 0x50], xmm3
mov dword [esp + 0x24], edi
mov dword [esp], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 8], eax
cvtsi2sd xmm6, ebx
movsd xmm3, qword [0xb52b08]
add ebx, 1
movaps xmm7, xmm6
subsd xmm7, qword [esp + 0x40]
mulsd xmm7, qword [esp + 0x38]
subsd xmm6, qword [esp + 0x30]
mulsd xmm6, qword [esp + 0x28]
addsd xmm7, qword [esp + 0x48]
addsd xmm6, qword [esp + 0x50]
movsd xmm0, qword [0xb52b10]
andps xmm3, xmm6
movaps xmm1, xmm3
xorps xmm1, xmm6
cmpltsd xmm1, xmm0
andps xmm1, xmm0
movsd xmm0, qword [0xb52b18]
orps xmm1, xmm3
movaps xmm2, xmm1
addsd xmm2, xmm6
subsd xmm2, xmm1
movaps xmm1, xmm2
subsd xmm1, xmm6
cmpltsd xmm1, xmm3
andps xmm1, xmm0
movsd xmm0, qword [0xb52b10]
addsd xmm2, xmm1
movsd xmm1, qword [0xb52b08]
andps xmm1, xmm7
cvtsd2si ecx, xmm2
movaps xmm2, xmm1
xorps xmm2, xmm7
lea edi, [ecx - 1]
cmpltsd xmm2, xmm0
andps xmm2, xmm0
orps xmm2, xmm1
movaps xmm0, xmm2
addsd xmm0, xmm7
subsd xmm0, xmm2
movsd xmm2, qword [0xb52b18]
movaps xmm3, xmm0
subsd xmm3, xmm7
cmpnlesd xmm3, xmm1
andps xmm3, xmm2
movaps xmm1, xmm5
subsd xmm0, xmm3
cvtsd2si eax, xmm0
cvtsi2sd xmm0, ecx
addsd xmm6, xmm5
subsd xmm1, xmm7
subsd xmm6, xmm0
cvtsi2sd xmm0, eax
comisd xmm4, xmm6
cmova ecx, edi
lea edi, [eax + 1]
addsd xmm1, xmm0
comisd xmm4, xmm1
cmova eax, edi
mov edi, dword [esp + 0x58]
mov dword [edi + esi*8], ecx
mov dword [edx + esi*8 + 4], eax
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jb 0x75013f
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x48]
movsd xmm3, qword [esp + 0x50]
mov esi, dword [esp]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
lea edx, [esi + 1]
mov dword [esp + 0x1c], edx
cmp ebx, eax
jne 0x74fe57
add esp, 0x5c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
xorps xmm7, xmm7
mov ecx, dword [ebp + 8]
jmp 0x7502a8
mov esi, eax
lea eax, [esi + 1]
xor edi, edi
cmp esi, edx
cmovge eax, edi
mov edi, eax
shl edi, 4
movsd xmm6, qword [edi + ecx + 8]
shl esi, 4
movaps xmm5, xmm6
movsd xmm3, qword [esi + ecx + 8]
subsd xmm5, xmm3
ucomisd xmm5, xmm7
jne 0x75032b
jp 0x75032b
cmp ebx, eax
je 0x750288
jmp 0x7502a6
mov esi, dword [esp + 0x18]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
jmp 0x7502e9
mov edx, ebx
lea ebx, [edx - 1]
cmp edx, 0
cmovle ebx, esi
shl edx, 4
movsd xmm5, qword [edx + edi + 8]
mov ecx, ebx
shl ecx, 4
movsd xmm4, qword [ecx + edi + 8]
movaps xmm1, xmm4
subsd xmm1, xmm5
ucomisd xmm1, xmm0
jne 0x750363
jp 0x750363
cmp ebx, eax
je 0x750288
jmp 0x7502e7
xor eax, eax
mov ebx, 1
jmp 0x74fcdd
mov ecx, dword [esp + 0x14]
movsd qword [esp + 0x30], xmm3
mov dword [esp + 0x24], esi
mov edx, esi
mov dword [esp + 0x20], edi
mov edi, dword [ebp + 8]
movsd xmm3, qword [edx + edi]
mov esi, dword [esp + 0x20]
movsd xmm7, qword [esi + edi]
subsd xmm7, xmm3
divsd xmm7, xmm5
movsd qword [esp + 0x28], xmm7
jmp 0x74fe92
mov esi, dword [ebp + 8]
movsd xmm2, qword [edx + esi]
movsd xmm0, qword [ecx + esi]
subsd xmm0, xmm2
divsd xmm0, xmm1
movaps xmm1, xmm5
jmp 0x74fe88
movsd xmm2, qword [esi]
movaps xmm6, xmm2
movsd xmm3, qword [0xb52b08]
andps xmm3, xmm2
movaps xmm1, xmm3
xorps xmm1, xmm2
movsd xmm0, qword [0xb52b10]
cmpltsd xmm1, xmm0
andps xmm1, xmm0
orps xmm1, xmm3
movsd xmm4, qword [0xb52b18]
addsd xmm6, xmm1
mov edx, dword [ebp + 0x14]
subsd xmm6, xmm1
movaps xmm5, xmm6
subsd xmm5, xmm2
cmpnlesd xmm5, xmm3
andps xmm5, xmm4
subsd xmm6, xmm5
cvtsd2si eax, xmm6
mov dword [edx + 4], eax
mov dword [edx], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret