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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
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 0x59ee82
mov dword [edi], str.TthkbClipGenerator::update
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
cmp dword [esi + 0x1c], 8
mov edi, dword [ebp + 8]
jne 0x59eeac
mov ecx, dword [0x8d45ec]
test ecx, ecx
je 0x59eea4
mov eax, dword [ecx]
push 0
push esi
push edi
mov eax, dword [eax + 8]
call eax
test al, al
je 0x59eeac
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x10]
movss xmm2, dword [esi + 0x3c]
movss xmm1, dword [0x718818]
movaps xmm0, xmm2
andps xmm0, xmmword [0x719120]
comiss xmm1, xmm0
jbe 0x59eede
comiss xmm2, dword [0x718814]
ja 0x59eed9
movss xmm1, dword [0x719d88]
movss dword [esi + 0x3c], xmm1
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0xac]
mov dword [ecx + 8], eax
cmp byte [esi + 0xc0], 0
je 0x59ef00
cmp byte [esi + 0x4a], 0
je 0x59ef00
mov ecx, esi
call fcn.005a1700
cmp byte [esi + 0x4a], 2
jne 0x59ef2c
movss xmm0, dword [esi + 0x44]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x59ef1c
mov dword [esi + 0x44], 0
jmp 0x59ef2c
comiss xmm0, dword [0x718824]
jbe 0x59ef2c
mov dword [esi + 0x44], 0x3f800000
mov ecx, esi
call fcn.005a1890
movss xmm1, dword [ebp + 0xc]
lea eax, [esp + 0xb]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, esi
movss dword [esp], xmm1
call fcn.005a07c0
cmp byte [esi + 0xc0], 0
jne 0x59ef78
mov eax, dword [esi + 0x58]
movss xmm0, dword [esp + 0xc]
movss dword [esi + 0xac], xmm0
movss dword [eax + 8], xmm0
movss xmm0, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
mov ecx, esi
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp], xmm0
push edi
call fcn.005a09d0
movaps xmm0, xmmword [esp + 0x20]
movaps xmmword [esi + 0x70], xmm0
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esi + 0x80], xmm0
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [esi + 0x90], xmm0
cmp byte [esi + 0xc0], 0
jne 0x59f02b
mov al, byte [esp + 0xb]
mov byte [esi + 0xc0], al
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x59efe3
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
movss xmm0, dword [esp + 0xc]
mov ecx, esi
push edi
push eax
push dword [esp + 0x18]
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [esp], xmm0
call fcn.005a0250
test byte [esp + 0x10], 1
je 0x59f02b
cmp byte [esi + 0x4a], 2
je 0x59f139
cmp byte [esi + 0xc2], 0
sete al
mov byte [esi + 0xc2], al
cmp byte [esi + 0x4a], 2
je 0x59f139
mov eax, dword [esi + 0x58]
movss xmm2, dword [eax + 0x40]
mulss xmm2, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
movss dword [esp + 0x18], xmm2
test eax, eax
jne 0x59f054
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
movss xmm1, dword [esi + 0xb0]
mov ecx, esi
push edi
movaps xmm0, xmm1
push eax
addss xmm0, xmm2
sub esp, 8
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.005a0430
movss xmm0, dword [esi + 0xb0]
xor edx, edx
addss xmm0, dword [esp + 0x18]
mov dword [esp + 0x14], edx
movss dword [esi + 0xb0], xmm0
cmp dword [esi + 0xa4], edx
jle 0x59f139
movss xmm1, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x18], ecx
xorps xmm2, xmm2
mov eax, dword [esi + 0xa0]
movss xmm0, dword [eax + ecx + 8]
mulss xmm0, xmm1
addss xmm0, dword [eax + ecx + 4]
comiss xmm2, xmm0
movss dword [eax + ecx + 4], xmm0
jb 0x59f121
dec dword [esi + 0xa4]
mov eax, dword [esi + 0xa4]
add ecx, dword [esi + 0xa0]
sub eax, edx
shl eax, 4
mov dword [esp + 0x1c], eax
lea edi, [ecx + 0x10]
test eax, eax
jle 0x59f119
lea edx, [eax - 1]
sub edi, ecx
shr edx, 3
inc edx
nop dword [eax]
mov eax, dword [edi + ecx]
lea ecx, [ecx + 8]
mov dword [ecx - 8], eax
mov eax, dword [edi + ecx - 4]
mov dword [ecx - 4], eax
sub edx, 1
jne 0x59f100
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
dec edx
sub ecx, 0x10
inc edx
add ecx, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
cmp edx, dword [esi + 0xa4]
jl 0x59f0b0
mov eax, dword [esi + 0x44]
mov dword [esi + 0xb4], eax
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x59f171
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8