Function at 0x4661b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fa45
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x466412
cmp dword [ecx + 4], 5
jne 0x466412
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov cx, word [0x4867e0]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], cx
mov cl, byte [0x4867e2]
mov byte [ebp - 0x26], cl
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push ecx
mov ecx, eax
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x25], 0
call fcn.0042e470
mov esi, dword [ebp - 0x38]
cmp byte [esi + 0xd], 0
jne 0x466412
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042e0b0
add esp, 8
test al, al
jne 0x466412
mov eax, dword [ebp - 0x2c]
cmp esi, dword [eax]
je 0x466412
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
test eax, eax
je 0x466277
lock inc dword [eax + 4]
mov esi, dword [esi + 0x2c]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], esi
mov eax, dword [ecx]
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x10]
call eax
lea ecx, [edi + 0x328]
cmp ecx, eax
je 0x4662ab
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x4662a2
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00406e50
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4662d7
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4662d7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4662d7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [0x4867ec]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x2c]
mov ecx, esi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
movq xmm0, qword [str.pingInterval]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], 0xc
push eax
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1c], 0
call fcn.00458a80
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x46635c
lea ecx, [eax + 0x28]
mov eax, dword [ecx]
cmp dword [eax + 4], 0
jne 0x46635c
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.00445770
add esp, 8
mov ecx, dword [eax]
mov dword [ebp - 4], 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
lea ecx, [ebp - 0x30]
mov dword [edi + 0x3c8], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00406240
jmp 0x466366
mov dword [edi + 0x3c8], 0x61a8
mov ax, word [0x4867fc]
mov ecx, esi
movq xmm0, qword [str.pingTimeout]
mov word [ebp - 0x20], ax
mov al, byte [0x4867fe]
mov byte [ebp - 0x1e], al
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0xb
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1d], 0
call fcn.00458a80
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x4663fc
lea ecx, [eax + 0x28]
mov eax, dword [ecx]
cmp dword [eax + 4], 0
jne 0x4663fc
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.00445770
add esp, 8
mov ecx, dword [eax]
mov dword [ebp - 4], 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
lea ecx, [ebp - 0x30]
mov dword [edi + 0x3cc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00406240
mov ecx, edi
call fcn.004734a0
jmp 0x466515
mov ecx, edi
mov dword [edi + 0x3cc], 0xea60
call fcn.004734a0
jmp 0x466515
push dword [0x4a8e68]
mov eax, 0x3f0
mov dword [ebp - 0x14], edi
mov word [ebp - 0x18], ax
mov eax, dword [edi + 0xa8]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x20], fcn.00452c70
mov dword [ebp - 0x1c], str.Handshake_error
mov esi, dword [eax + 8]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call edi
test eax, eax
je 0x46645e
cmp dword [eax], esi
je 0x46646f
mov eax, dword [eax + 8]
test eax, eax
jne 0x466453
push dword [0x4a8e68]
call edi
test eax, eax
je 0x4664a2
mov eax, dword [eax + 4]
jmp 0x4664a4
cmp dword [eax + 4], 0
je 0x46645e
nop
lea eax, [ebp - 0x31]
mov byte [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 3
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x38]
call fcn.0043ece0
add esp, 0x14
nop
jmp 0x466515
xor eax, eax
push 4
push 0x34
push eax
push dword [ebp - 0x38]
call fcn.0042e7e0
mov ecx, eax
add esp, 0x10
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0x455ec0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x1c], 0
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x24], eax
mov ax, word [ebp - 0x18]
mov word [ecx + 0x28], ax
mov eax, dword [ebp - 0x14]
push 0
mov dword [ecx + 0x2c], eax
push ecx
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 8]
call fcn.00433e90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cb4
mov esp, ebp
pop ebp
ret 4