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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x30b8
call fcn.00607e10
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x24], ecx
mov eax, dword [eax]
mov edi, dword [eax + 0xcc]
mov dword [esp + 0x28], edi
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4ff4d7
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x1c]
add ecx, 0x7f
and ecx, 0xffffff80
mov esi, dword [eax + 0xc]
mov dword [esp + 8], esi
lea edx, [esi + ecx]
cmp ecx, dword [eax + 8]
jg 0x4ff4c3
cmp edx, dword [eax + 0x10]
ja 0x4ff4c3
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
jmp 0x4ff4dd
push ecx
mov ecx, eax
call fcn.0046a3c0
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 8], eax
jmp 0x4ff4dd
xor esi, esi
mov dword [esp + 8], esi
push ecx
mov eax, ecx
or eax, 0x80000000
push 0
push esi
mov dword [esp + 0x38], eax
call fcn.0045d830
add esp, 0xc
mov dword [esp + 0x3060], 0x7f7fffee
mov dword [esp + 0x3080], 0
mov dword [esp + 0x3084], 0
mov dword [esp + 0x34], 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 0x4ff548
mov dword [esi], str.TtNarrowPhaseTOI
rdtsc
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp dword [ebp + 0xc], ecx
jle 0x4ff76a
mov esi, dword [esp + 8]
nop dword [eax + eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x20], ecx
movzx eax, word [ecx + 0xa8]
add ecx, 0x10
mov byte [eax + esi], 1
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], connect
call fcn.006acf50
xor edi, edi
cmp dword [esp + 0x14], edi
jle 0x4ff6f2
nop word [eax + eax]
mov esi, dword [esp + 0x10]
mov eax, dword [esi + edi*8 + 4]
movsx ecx, byte [eax + 0x10]
add ecx, eax
mov eax, dword [esp + 0x28]
cmp dword [ecx + 0xcc], eax
jne 0x4ff5df
movzx eax, word [ecx + 0xa8]
mov ecx, dword [esp + 8]
cmp byte [eax + ecx], 0
jne 0x4ff6e3
mov eax, dword [esp + 0x24]
mov esi, dword [esi + edi*8]
mov eax, dword [eax + 0xc]
movsx ecx, byte [esi + 0xc]
shl ecx, 6
mov eax, dword [eax + 0x80]
cmp dword [ecx + eax + 0x1cd0], 0
je 0x4ff6b0
cmp byte [ecx + eax + 0x1cd4], 0
jne 0x4ff6b0
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x40]
mov dword [esp + 0x30], eax
mov dword [esp + 0x3060], 0x7f7fffee
mov dword [esp + 0x30b0], 0
movsx ecx, byte [esi + 0xc]
mov eax, dword [edx]
add ecx, 0x73
shl ecx, 6
add eax, ecx
mov dword [edx + 0x60], eax
mov eax, dword [eax + 0x10]
mov dword [edx + 0x18], eax
lea eax, [esp + 0x30]
push dword [esi + 8]
push eax
push edx
push esi
call fcn.006ad820
add esp, 0x10
cmp dword [0x8d7868], 1
je 0x4ff740
lea eax, [esp + 0x40]
cmp dword [esp + 0x30], eax
je 0x4ff689
mov ecx, dword [esi + 8]
lea edx, [esp + 0x30]
push edx
push dword [ebp + 0x10]
push dword [esi + 0x14]
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x18]
movss xmm0, dword [esp + 0x3060]
ucomiss xmm0, dword [0x77fe14]
lahf
test ah, 0x44
jnp 0x4ff6e3
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004fedf0
jmp 0x4ff6e3
mov esi, dword [esp + 0x20]
mov ecx, dword [ebp + 0x14]
push 0
push dword [esi + 0xd4]
call fcn.0046b890
test eax, eax
jne 0x4ff6e3
mov ecx, esi
call fcn.0045c0c0
mov ecx, dword [ebp + 0x14]
push esi
push dword [esi + 0xd4]
push 0x7d8954
call fcn.0046ba50
inc edi
cmp edi, dword [esp + 0x14]
jl 0x4ff5b0
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
test eax, eax
js 0x4ff71c
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 3
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x14]
call dword [eax + 0x10]
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], connect
mov dword [esp + 0xc], ecx
cmp ecx, dword [ebp + 0xc]
jl 0x4ff560
jmp 0x4ff76a
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
test eax, eax
js 0x4ff76a
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 3
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x14]
call dword [eax + 0x10]
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x4ff799
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
mov esi, dword [esp + 0x1c]
push dword [0x884adc]
add esi, 0x7f
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
mov esi, dword [esp + 8]
jg 0x4ff7d0
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x4ff7d0
cmp dword [eax + 0x14], esi
je 0x4ff7d0
mov dword [eax + 0xc], esi
jmp 0x4ff7d9
push edx
push esi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x2c]
test eax, eax
js 0x4ff7f5
and eax, 0x3fffffff
mov ecx, 0x7d8954
push eax
mov eax, dword [0x7d8954]
push esi
call dword [eax + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10