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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
movss xmm0, dword [ebp + 0x14]
comiss xmm0, dword [0x718814]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0xac]
mov dword [edx + 8], eax
jbe 0x59f3b7
lea eax, [esp + 0xb]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push ecx
movss dword [esp], xmm0
call fcn.005a07c0
movss xmm0, dword [esp + 0x10]
lea eax, [esp + 0x70]
mov ecx, dword [ebp + 8]
push eax
push dword [esp + 0x10]
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp], xmm0
push ecx
mov ecx, esi
call fcn.005a09d0
movaps xmm0, xmmword [esp + 0x80]
movaps xmm6, xmmword [esp + 0x70]
movaps xmmword [esp + 0x40], xmm0
movaps xmm0, xmmword [esp + 0x90]
jmp 0x59f3ce
movaps xmm0, xmmword [esi + 0x80]
movaps xmm6, xmmword [esi + 0x70]
movaps xmmword [esp + 0x40], xmm0
movaps xmm0, xmmword [esi + 0x90]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x40]
movaps xmm3, xmm6
movaps xmmword [esp + 0x50], xmm0
movaps xmm1, xmm6
movaps xmmword [esp + 0x30], xmm6
shufps xmm1, xmm6, 0xc9
movaps xmm2, xmm6
mov eax, dword [eax]
shufps xmm2, xmm6, 0xd2
push ecx
mov esi, dword [eax + 0x48]
mov eax, dword [ebp + 0x10]
movaps xmm4, xmmword [esi + 0x10]
mulps xmm3, xmm4
movaps xmm5, xmm4
mov eax, dword [eax]
shufps xmm5, xmm4, 0xff
movaps xmm0, xmm3
movsx edi, word [eax + 0x14]
add edi, eax
shufps xmm0, xmm3, 0x55
lea eax, [esi + 0x10]
addss xmm0, xmm3
shufps xmm3, xmm3, 0xaa
push eax
lea ecx, [edi + 0x10]
addss xmm3, xmm0
movaps xmm0, xmm4
shufps xmm0, xmm4, 0xd2
mulps xmm1, xmm0
movaps xmm0, xmm4
shufps xmm0, xmm4, 0xc9
mulps xmm2, xmm0
shufps xmm3, xmm3, 0
mulps xmm3, xmm4
subps xmm2, xmm1
mulps xmm2, xmm5
mulps xmm5, xmm5
addps xmm5, xmmword [0x7195c0]
mulps xmm5, xmm6
addps xmm5, xmm3
addps xmm2, xmm5
addps xmm2, xmm2
addps xmm2, xmmword [esi]
movaps xmmword [edi], xmm2
call fcn.004782a0
movaps xmm0, xmmword [esi + 0x20]
movaps xmm1, xmmword [esp + 0x50]
mov esi, dword [ebp + 0x10]
mulps xmm0, xmm1
movaps xmmword [edi + 0x20], xmm0
mov eax, dword [esi]
cmp dword [eax + 4], 2
jle 0x59f720
movsx eax, word [eax + 0x32]
test eax, eax
je 0x59f720
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x10], eax
mov edi, dword [eax + 4]
cmp edi, dword [eax + 0xc]
jae 0x59f4cb
mov dword [edi], str.TthkbClipGenerator::generate
rdtsc
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
cmp edx, 2
jle 0x59f4e2
movsx edx, word [ecx + 0x32]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 4]
jmp 0x59f4ea
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x58]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x59f503
cmp byte [eax + 0x28], 1
sete byte [esp + 0xb]
jmp 0x59f508
mov byte [esp + 0xb], 0
lea eax, [esp + 0xb]
mov dword [esp + 0x10], 0
cmp byte [eax], 0
mov dword [esp + 0xc], 0
setne byte [esp + 0xb]
cmp edx, 3
jle 0x59f59c
cmp dword [edi + 0x60], 0
jne 0x59f59c
movsx edx, word [ecx + 0x42]
movsx eax, word [ecx + 0x44]
add eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
test edx, edx
jle 0x59f59c
cmp byte [esp + 0xb], 0
mov ecx, 0x7194d0
mov edx, 0x719320
cmove edx, ecx
mov ecx, eax
mov eax, dword [esp + 0x10]
lea eax, [eax*4 + 0xf]
shr eax, 4
test eax, eax
jle 0x59f593
mov edi, eax
nop dword [eax]
mov eax, dword [edx]
lea ecx, [ecx + 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [edx + 4]
mov dword [ecx - 0xc], eax
mov eax, dword [edx + 8]
mov dword [ecx - 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx - 4], eax
sub edi, 1
jne 0x59f570
mov edi, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [eax + 0x48], 0x3f800000
mov eax, dword [esi]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
inc edx
movsx ecx, word [eax + 0x34]
add ecx, eax
mov dword [esp + 0x2c], edx
lea esi, [esi + esi*2]
shl esi, 4
add esi, ecx
lea ecx, [edx + 0x1f]
sar ecx, 5
mov eax, ecx
mov dword [esp + 0x20], esi
or eax, 0x80000000
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
xor eax, eax
test ecx, ecx
jle 0x59f5f4
nop dword [eax + eax]
mov dword [esi + eax*4], 0
inc eax
cmp eax, dword [esp + 0x24]
jge 0x59f5f4
mov esi, dword [esp + 0x20]
jmp 0x59f5e0
mov edx, dword [ebp + 8]
lea eax, [esp + 0x20]
mov esi, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push dword [edx + 0x24]
mov ecx, dword [esi]
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
movsx eax, word [ecx + 0x34]
add eax, ecx
mov ecx, edi
push eax
push edx
call fcn.005a0f00
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [esi]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x24]
movss xmm0, dword [eax + 0x7c]
movsx eax, word [ecx + 0x34]
add eax, ecx
movaps xmmword [esp + 0x60], xmm0
cmp dword [ecx + 4], 2
mov dword [esp + 0x18], eax
jle 0x59f64d
movsx ecx, word [ecx + 0x32]
jmp 0x59f64f
xor ecx, ecx
push ecx
push eax
push ecx
movss dword [esp], xmm0
call fcn.0057e1a0
mov al, byte [esp + 0x17]
add esp, 0xc
test al, al
jne 0x59f680
mov eax, dword [esp + 0x18]
movaps xmm0, xmmword [esp + 0x60]
shufps xmm0, xmm0, 0
mulps xmm0, xmmword [eax + 0x20]
movaps xmmword [eax + 0x20], xmm0
mov al, byte [esp + 0xb]
test byte [edi + 0x4b], 8
je 0x59f6a6
test al, al
je 0x59f68e
xor eax, eax
jmp 0x59f69c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x24]
push eax
push esi
call fcn.005d4210
add esp, 8
cmp byte [esp + 0xb], 0
mov eax, dword [esi]
mov dword [eax + 0x38], 0x3f800000
je 0x59f6bc
mov eax, dword [esi]
or byte [eax + 0x3c], 1
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0xc], eax
mov edi, dword [eax + 4]
cmp edi, dword [eax + 0xc]
jae 0x59f6f1
mov dword [edi], 0x77f5ec
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], 0
test eax, eax
js 0x59f71b
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x24]
call dword [eax + 0x10]
movaps xmm1, xmmword [esp + 0x50]
mov eax, dword [esi]
mov dword [eax + 0x18], 0x3f800000
mov ecx, dword [esi]
cmp dword [ecx + 4], 1
jle 0x59f756
movsx eax, word [ecx + 0x24]
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [eax + ecx], xmm0
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [eax + ecx + 0x10], xmm0
movaps xmmword [eax + ecx + 0x20], xmm1
mov eax, dword [esi]
mov dword [eax + 0x28], 0x3f800000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10