Function at 0x6ca630
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
push esi
push edi
push dword [0x884c50]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x14], eax
mov edi, dword [eax + 4]
cmp edi, dword [eax + 0xc]
jae 0x6ca675
mov dword [edi], str.TtSphereTri
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], ecx
add eax, 0x30
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
lea ecx, [esp + 0x80]
mov dword [esp + 0x1c], edx
add edx, 0x40
movups xmm3, xmmword [eax]
movups xmm4, xmmword [eax + 0x10]
movups xmm5, xmmword [eax + 0x20]
movups xmm6, xmmword [eax + 0x30]
mov eax, 2
nop dword [eax + eax]
movaps xmm2, xmmword [edx]
sub edx, 0x10
movaps xmm1, xmm2
movaps xmm0, xmm2
shufps xmm1, xmm2, 0x55
shufps xmm0, xmm2, 0
shufps xmm2, xmm2, 0xaa
mulps xmm1, xmm4
mulps xmm0, xmm3
mulps xmm2, xmm5
addps xmm1, xmm0
addps xmm2, xmm6
addps xmm1, xmm2
movaps xmmword [ecx], xmm1
sub ecx, 0x10
sub eax, 1
jns 0x6ca6c0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x24]
call fcn.006bae60
mov eax, dword [esp + 0x30]
add esp, 0x14
movss xmm2, dword [esp + 0x50]
movss xmm1, dword [eax + 0x10]
mov eax, dword [esp + 0x20]
movss xmm3, dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
addss xmm3, xmm1
movss xmm0, dword [eax + 0xc]
addss xmm0, xmm3
comiss xmm0, xmm2
jbe 0x6ca84d
movaps xmm0, xmmword [esp + 0x40]
subss xmm1, xmm2
mov eax, dword [esp + 0x14]
subss xmm2, xmm3
shufps xmm1, xmm1, 0
mulps xmm1, xmm0
addps xmm1, xmmword [eax]
movaps xmmword [edi + 0x10], xmm0
movaps xmmword [edi], xmm1
movss dword [edi + 0x1c], xmm2
mov al, byte [esp + 0x28]
mov byte [esp + 0x13], al
test al, al
je 0x6ca809
movups xmm0, xmmword [edi + 0x10]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 8]
movups xmmword [esp + 0x34], xmm0
mov ecx, dword [eax]
movups xmm0, xmmword [edi]
push dword [edx + 8]
movups xmmword [esp + 0x48], xmm0
mov eax, dword [ecx]
push dword [edx]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
push dword [edx + 8]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x27]
push edx
lea edx, [esp + 0x42]
push edx
call eax
test eax, eax
jne 0x6ca7f0
movzx eax, word [esi + 0xc]
mov edi, 0xffff
cmp ax, di
je 0x6ca8a1
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx]
push dword [edx + 4]
movzx edx, word [esi + 0xc]
push edx
call dword [eax + 0x14]
mov word [esi + 0xc], di
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 1
jne 0x6ca809
movaps xmm1, xmmword [esp + 0x30]
movaps xmm0, xmm1
unpckhps xmm0, xmmword [edi + 0x10]
shufps xmm1, xmm0, 0xc4
movaps xmmword [edi + 0x10], xmm1
mov edi, 0xffff
cmp word [esi + 0xc], di
jne 0x6ca835
push dword [esp + 0x18]
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x14]
push 0
push edx
push dword [ebp + 0x10]
mov eax, dword [ecx]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
call eax
mov word [esi + 0xc], ax
movzx eax, word [esi + 0xc]
cmp ax, di
je 0x6ca872
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0x14]
add dword [eax], 0x30
jmp 0x6ca872
movzx eax, word [esi + 0xc]
mov edi, 0xffff
cmp ax, di
je 0x6ca872
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx]
push dword [edx + 4]
movzx edx, word [esi + 0xc]
push edx
call dword [eax + 0x14]
mov word [esi + 0xc], di
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x6ca8a1
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10