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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x798
push esi
push edi
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x6ad85d
mov dword [esi], str.TtProcessNnEntry
rdtsc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov edi, dword [ebp + 8]
movzx eax, byte [edi]
mov esi, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x14], eax
add eax, 0xfffffffe
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edx
cmp eax, 0xc
ja case.0x6ad888.3
movzx eax, byte [eax + 0x6add04]
jmp dword [eax*4 + 0x6adcf0]
lea eax, [esp + 0xf]
push eax
push 4
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x1ac]
push eax
push esi
call fcn.006aeb60
mov esi, eax
lea eax, [esp + 0x23]
push eax
push 4
lea eax, [esp + 0x4fc]
mov dword [esp + 0x38], esi
push eax
lea eax, [esp + 0x200]
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.006aeb60
mov ecx, dword [esp + 0x3c]
mov edx, eax
movzx ecx, cl
add esp, 0x28
and ecx, 0xf7
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
lea eax, [ecx - 2]
cmp eax, 0xc
jbe 0x6ad881
jmp case.0x6ad888.3
push dword [ebp + 0x10]
mov ecx, dword [edi + 0x20]
push dword [ebp + 0xc]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0x18]
jmp case.0x6ad888.3
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
mov ecx, dword [ecx + 8]
mov eax, dword [edx + 8]
push eax
push ecx
movss xmm4, dword [ecx + 0x5c]
mulss xmm4, dword [esi + 0x58]
movaps xmm2, xmmword [ecx + 0x40]
subps xmm2, xmmword [ecx + 0x50]
movss xmm3, dword [eax + 0x5c]
movaps xmm0, xmm4
mulss xmm3, dword [esi + 0x58]
movaps xmm1, xmmword [eax + 0x50]
subps xmm1, xmmword [eax + 0x40]
shufps xmm0, xmm0, 0
mulps xmm2, xmm0
movaps xmm0, xmm3
shufps xmm0, xmm0, 0
mulps xmm1, xmm0
addps xmm2, xmm1
movaps xmmword [esp + 0x98], xmm2
movss xmm0, dword [ecx + 0x9c]
movss xmm1, dword [eax + 0x9c]
mulss xmm1, xmm3
mulss xmm0, xmm4
mulss xmm1, dword [eax + 0xa0]
mulss xmm0, dword [ecx + 0xa0]
lea ecx, [esp + 0x48]
addss xmm1, xmm0
movss dword [esp + 0xa4], xmm1
call fcn.0046efa0
movzx eax, byte [edi + 1]
push dword [ebp + 0x10]
mov ecx, dword [esi]
push 0
lea edx, [eax + eax*4]
lea eax, [edi + 0x20]
add edx, edx
push eax
lea eax, [esp + 0x2c]
push edi
push eax
mov eax, dword [ecx + edx*8 + 0x16dc]
jmp 0x6adb14
mov ecx, dword [edi + 8]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
movss xmm4, dword [eax + 0x5c]
mulss xmm4, dword [edx + 0x58]
movaps xmm2, xmmword [eax + 0x40]
movss xmm3, dword [esi + 0x5c]
subps xmm2, xmmword [eax + 0x50]
mulss xmm3, dword [edx + 0x58]
movaps xmm0, xmm4
movaps xmm1, xmmword [esi + 0x50]
subps xmm1, xmmword [esi + 0x40]
shufps xmm0, xmm0, 0
mulps xmm2, xmm0
movaps xmm0, xmm3
shufps xmm0, xmm0, 0
mulps xmm1, xmm0
addps xmm2, xmm1
movaps xmmword [esp + 0x90], xmm2
movss xmm1, dword [esi + 0x9c]
movss xmm0, dword [eax + 0x9c]
mulss xmm1, xmm3
mulss xmm0, xmm4
mulss xmm1, dword [esi + 0xa0]
mov esi, dword [esp + 0x1c]
mulss xmm0, dword [eax + 0xa0]
addss xmm1, xmm0
movss xmm0, dword [edi + 0x18]
movss dword [esp + 0x9c], xmm1
movss xmm1, dword [edx + 0x50]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x6adc71
mov eax, dword [edx + 0x60]
cmp dword [eax + 0x10], 0
jne 0x6adb4e
mov eax, dword [edx + 0x54]
lea esi, [edi + 0x20]
movss xmm1, dword [0x77fafc]
xorps xmm0, xmm0
mov dword [edi + 0x18], eax
movaps xmmword [esi], xmm0
mov dword [edi + 0x2c], 0xff7fffee
push dword [esp + 0x14]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push eax
movss dword [esp + 0x88], xmm1
call fcn.0046efa0
movzx eax, byte [edi + 1]
lea edx, [edi + 0x30]
push dword [ebp + 0x10]
push esi
lea ecx, [eax + eax*4]
mov eax, dword [ebp + 0xc]
push edx
add ecx, ecx
lea edx, [esp + 0x2c]
push edi
mov eax, dword [eax]
push edx
mov eax, dword [eax + ecx*8 + 0x16dc]
call eax
add esp, 0x14
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x6adb48
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc0]
mov dword [esp + 0x148], 0
push eax
mov eax, dword [esi + 8]
push ecx
add eax, 0x40
movss dword [esp], xmm1
push eax
call fcn.00650310
add esp, 0xc
lea eax, [esp + 0x100]
push eax
mov eax, dword [esp + 0x30]
push ecx
movss xmm0, dword [eax + 0x50]
mov eax, dword [esp + 0x2c]
movss dword [esp], xmm0
mov eax, dword [eax + 8]
add eax, 0x40
push eax
call fcn.00650310
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xac]
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x140], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x150], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14c], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x100]
push eax
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xc4]
mov dword [esp + 0xb8], ecx
lea ecx, [esp + 0x164]
push eax
mov dword [esp + 0xb4], esi
mov dword [esp + 0xc4], edx
call fcn.0046efa0
movzx eax, byte [edi + 1]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0xc]
add edx, edx
mov ecx, dword [eax]
lea eax, [edi + 0x20]
push eax
lea eax, [edi + 0x30]
push eax
lea eax, [esp + 0x148]
push edi
push eax
mov eax, dword [ecx + edx*8 + 0x16d8]
call eax
mov ecx, dword [esp + 0x40]
add esp, 0x10
mov edx, dword [ebp + 0xc]
movaps xmm0, xmmword [esp + 0x90]
lea esi, [edi + 0x20]
mov eax, dword [edx + 0x54]
movaps xmm1, xmm0
mulps xmm1, xmmword [esi]
mov dword [edi + 0x18], eax
shufps xmm0, xmm0, 0xff
movaps xmm2, xmm1
shufps xmm2, xmm1, 0xaa
addss xmm2, xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
movss xmm1, dword [edi + 0x2c]
addps xmm2, xmm0
subss xmm1, xmm2
comiss xmm1, dword [edx + 0xc]
jb 0x6adad6
movss dword [edi + 0x2c], xmm1
cmp byte [edi + 2], 0
je case.0x6ad888.3
movzx eax, byte [edi + 1]
mov edx, dword [edx]
lea esi, [eax + eax*4]
mov eax, dword [ebp + 0x10]
add esi, esi
push dword [eax + 4]
lea eax, [edi + 0x30]
push ecx
push eax
mov eax, dword [edx + esi*8 + 0x16b8]
push edi
call eax
add esp, 0x10
jmp case.0x6ad888.3