Function at 0x18007dfa0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1800c31c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, rcx
mov rcx, qword [rdx]
test rcx, rcx
je 0x18007e0aa
cmp dword [rcx + 8], 5
jne 0x18007e0aa
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r12, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov r14d, 3
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov ecx, dword [0x1800a13d0]
mov word [rbp - 0x38], cx
movzx ecx, byte [0x1800a13d2]
mov byte [rbp - 0x36], cl
mov byte [rbp - 0x35], 0
mov r15, qword [rax]
mov rbx, qword [r15 + 8]
mov rsi, r15
cmp byte [rbx + 0x19], 0
jne 0x18007e070
nop dword [rax + rax]
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 0xf
jbe 0x18007e03f
mov rcx, qword [rbx + 0x20]
mov rdi, qword [rbx + 0x30]
mov r8, rdi
cmp rdi, r14
cmova r8, r14
lea rdx, [rbp - 0x38]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18007e126
js 0x18007e12f
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x18007e030
cmp byte [rsi + 0x19], 0
jne 0x18007e0aa
lea rdx, [rsi + 0x20]
cmp qword [rsi + 0x38], 0xf
jbe 0x18007e085
mov rdx, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x30]
cmp rbx, r14
cmovb r14, rbx
mov r8, r14
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18007e138
jns 0x18007e142
lea rax, [fcn.1800671e0]
mov qword [rbp - 0x38], rax
lea rax, str.Handshake_error
mov qword [rbp - 0x30], rax
mov eax, 0x3f0
mov word [rbp - 0x28], ax
mov qword [rbp - 0x20], r13
mov rsi, qword [r13 + 0x110]
mov rax, qword [rsi + 0x10]
lea rbx, [rax + 0x28]
xor edi, edi
test rax, rax
cmove rbx, rdi
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18007e108
cmp qword [rax], rbx
je 0x18007e453
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18007e0f6
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18007e47c
mov rdx, qword [rax + 8]
jmp 0x18007e47f
cmp rdi, r14
jae 0x18007e064
mov rbx, qword [rbx + 0x10]
jmp 0x18007e06a
cmp rbx, 3
ja 0x18007e0aa
cmp rsi, r15
je 0x18007e0aa
mov rcx, qword [rsi + 0x40]
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x18007e15c
lock inc dword [rax + 8]
mov qword [rbp - 0x38], rcx
mov rbx, qword [rsi + 0x48]
mov qword [rbp - 0x30], rbx
mov rax, qword [rcx]
call qword [rax + 0x20]
lea rcx, [r13 + 0x518]
cmp rcx, rax
je 0x18007e191
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x18007e187
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.1800072e0
nop
test rbx, rbx
je 0x18007e1c2
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18007e1c2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18007e1c2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov r14d, ntohl
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.pingInterval]
movsd qword [rbp - 0x38], xmm0
mov eax, dword [0x1800a13e0]
mov dword [rbp - 0x30], eax
mov byte [rbp - 0x2c], 0
mov r15, qword [r12]
mov rbx, qword [r15 + 8]
mov rsi, r15
cmp byte [rbx + 0x19], 0
jne 0x18007e250
nop word [rax + rax]
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 0xf
jbe 0x18007e21f
mov rcx, qword [rbx + 0x20]
mov rdi, qword [rbx + 0x30]
mov r8, rdi
cmp rdi, r14
cmova r8, r14
lea rdx, [rbp - 0x38]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18007e375
js 0x18007e37e
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x18007e210
cmp byte [rsi + 0x19], 0
jne 0x18007e28a
lea rdx, [rsi + 0x20]
cmp qword [rsi + 0x38], 0xf
jbe 0x18007e265
mov rdx, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x30]
cmp rbx, r14
cmovb r14, rbx
mov r8, r14
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18007e387
jns 0x18007e391
mov dword [r13 + 0x5f8], 0x61a8
xor edi, edi
mov dword [rbp - 0x2c], edi
mov r14d, ntohl
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.pingTimeout]
movsd qword [rbp - 0x38], xmm0
movzx eax, word [0x1800a13f0]
mov word [rbp - 0x30], ax
movzx eax, byte [reloc.WS2_32.dll_WSACleanup]
mov byte [rbp - 0x2e], al
mov byte [rbp - 0x2d], dil
mov r15, qword [r12]
mov rbx, qword [r15 + 8]
mov rsi, r15
cmp byte [rbx + 0x19], dil
jne 0x18007e323
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 0xf
jbe 0x18007e2f2
mov rcx, qword [rbx + 0x20]
mov rdi, qword [rbx + 0x30]
mov r8, rdi
cmp rdi, r14
cmova r8, r14
lea rdx, [rbp - 0x38]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18007e3dc
js 0x18007e3e5
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x18007e2e3
cmp byte [rsi + 0x19], 0
jne 0x18007e35d
lea rdx, [rsi + 0x20]
cmp qword [rsi + 0x38], 0xf
jbe 0x18007e338
mov rdx, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x30]
cmp rbx, r14
cmovb r14, rbx
mov r8, r14
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18007e3ee
jns 0x18007e3f8
mov dword [r13 + 0x5fc], 0xea60
mov rcx, r13
call fcn.18008d750
jmp 0x18007e4e5
cmp rdi, r14
jae 0x18007e244
mov rbx, qword [rbx + 0x10]
jmp 0x18007e24a
cmp rbx, 0xc
ja 0x18007e28a
cmp rsi, r15
je 0x18007e28a
mov rcx, qword [rsi + 0x40]
cmp dword [rcx + 8], 0
jne 0x18007e28a
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x18007e3b5
lock inc dword [rax + 8]
mov qword [rbp - 0x38], rcx
mov rax, qword [rsi + 0x48]
mov qword [rbp - 0x30], rax
mov rax, qword [rcx]
call qword [rax + select]
mov dword [r13 + 0x5f8], eax
lea rcx, [rbp - 0x38]
call fcn.180045270
jmp 0x18007e295
cmp rdi, r14
jae 0x18007e317
mov rbx, qword [rbx + 0x10]
jmp 0x18007e31d
cmp rbx, 0xb
ja 0x18007e35d
cmp rsi, r15
je 0x18007e35d
mov rcx, qword [rsi + 0x40]
cmp dword [rcx + 8], 0
jne 0x18007e35d
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x18007e41c
lock inc dword [rax + 8]
mov qword [rbp - 0x38], rcx
mov rbx, qword [rsi + 0x48]
mov qword [rbp - 0x30], rbx
mov rax, qword [rcx]
call qword [rax + select]
mov dword [r13 + 0x5fc], eax
test rbx, rbx
je 0x18007e368
mov rcx, rbx
call fcn.180044b80
mov rcx, r13
call fcn.18008d750
jmp 0x18007e4e5
cmp qword [rax + 8], rdi
je 0x18007e108
nop
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x38]
xor edx, edx
xor ecx, ecx
call fcn.180050760
nop
nop
jmp 0x18007e4e5
mov rdx, rdi
mov r9d, 8
mov r8d, 0x60
movzx ecx, byte [rbp - 0x40]
call fcn.1800478d0
mov rdx, rax
mov qword [rax + 0x20], rdi
lea rax, [0x18006a6c0]
mov qword [rdx + 0x28], rax
mov qword [rdx], rdi
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], rdi
mov qword [rdx + 0x18], rdi
mov dword [rdx + 0x30], edi
mov rcx, qword [rbp - 0x38]
mov qword [rdx + 0x38], rcx
mov rcx, qword [rbp - 0x30]
mov qword [rdx + 0x40], rcx
movzx eax, word [rbp - 0x28]
mov word [rdx + 0x48], ax
mov rax, qword [rbp - 0x20]
mov qword [rdx + 0x50], rax
mov rcx, qword [rsi + 0x10]
lock inc dword [rcx + 0x30]
call fcn.18004cd50
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180097330
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret