Function at 0x140065770
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x2c8]
sub rsp, 0x3b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140329490]
xor rax, rsp
mov qword [rbp + 0x2a8], rax
mov rsi, rcx
lea rdx, str.e_94m_i
lea rcx, [rbp - 0x68]
call fcn.14009c790
nop
lea rdx, str.Disconnected_from
lea rcx, [rbp - 0x58]
call fcn.140037990
mov rdx, qword [rsi]
add rdx, 0x68
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400657e5
mov rdx, qword [rdx]
lea rcx, [rbp - 0x58]
call fcn.140045690
nop
lea rcx, [rbp - 0x68]
call fcn.140030280
mov rax, qword [rsi]
mov rcx, qword [rax + 0x238]
xor r15d, r15d
mov qword [rsp + 0x78], r15
mov qword [rcx + 0x30], r15
mov qword [rbp - 0x80], r15
mov rbx, qword [rcx + 0x38]
mov qword [rcx + 0x38], r15
test rbx, rbx
je 0x14006584b
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14006584b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14006584b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rax, [0x1402bcd38]
mov qword [rbp + 0x280], rax
xor eax, eax
mov qword [rbp + 0x288], rax
mov qword [rbp + 0x290], rax
mov qword [rbp + 0x298], rax
mov qword [rbp + 0x2a0], rax
mov rax, qword [rsi]
movups xmm0, xmmword [rbp + 0x280]
movups xmmword [rax + 0xd8], xmm0
movups xmm1, xmmword [rbp + 0x290]
movups xmmword [rax + 0xe8], xmm1
movsd xmm0, qword [rbp + 0x2a0]
movsd qword [rax + 0xf8], xmm0
mov rcx, qword [rsi]
mov dword [rsp + 0x20], r15d
mov byte [rsp + 0x24], r15b
lea rbx, [0x1402c28e8]
mov qword [rsp + 0x28], rbx
lea rdx, [rcx + 0x1a0]
lea r8, [rsp + 0x20]
mov rcx, qword [rcx + 0x198]
call fcn.140034330
cmp dword [rsp + 0x20], r15d
jne 0x140065b08
mov rcx, qword [rsi]
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], r15b
mov qword [rsp + 0x38], rbx
lea rdx, [rcx + 0x1f0]
lea r8, [rsp + 0x30]
mov rcx, qword [rcx + 0x1e8]
call fcn.140034330
cmp dword [rsp + 0x30], r15d
jne 0x140065af6
mov rax, qword [rsi]
movzx eax, byte [rax + 0x61]
test al, al
je 0x140065980
mov rax, qword [0x1403375c8]
movzx eax, byte [rax + 0x1a0]
test al, al
je 0x140065974
lea rdx, str.e_94m_i
lea rcx, [rbp + 0x90]
call fcn.14009c790
nop
lea rdx, str.Shutting_down_miners...
lea rcx, [rbp + 0xa0]
call fcn.140037990
nop
lea rcx, [rbp + 0x90]
call fcn.140030280
mov rcx, qword [0x1403375c8]
call fcn.14005bbf0
mov rax, qword [rsi]
mov byte [rax + 0x60], 0
jmp 0x140065aca
mov rax, qword [rsi]
mov byte [rax + 0x62], 1
lea rdx, str.e_94m_i
lea rcx, [rbp + 0x188]
call fcn.14009c790
nop
lea rdx, str.No_connection._Suspend_mining_...
lea rcx, [rbp + 0x198]
call fcn.140037990
nop
lea rcx, [rbp + 0x188]
call fcn.140030280
mov rdi, qword [0x1403375c8]
lea rbx, [rdi + 0x18]
mov qword [rbp - 0x78], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400659e0
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov byte [rdi + 0x10], 1
mov r14, qword [rdi + 0x70]
mov rdi, qword [rdi + 0x68]
cmp rdi, r14
je 0x140065a07
mov edx, 2
mov rcx, qword [rdi]
call fcn.140062b00
add rdi, 0x10
cmp rdi, r14
jne 0x1400659f1
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test eax, eax
je 0x140065a1d
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rax, qword [rsi]
mov qword [rbp - 0x70], rax
lea rcx, [0x140066fb0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movups xmm1, xmmword [rax + 0x188]
movups xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x60], xmm0
psrldq xmm1, 8
movq rbx, xmm1
mov ecx, dword [0x140338560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140065a74
cmp qword [rax], rbx
je 0x140065a74
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140065a66
lea rdx, [rsp + 0x60]
mov ecx, 0x58
call fcn.140022520
mov qword [rax + 0x20], r15
lea rcx, [0x14005f4f0]
mov qword [rax + 0x28], rcx
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov dword [rax + 0x30], r15d
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rax + 0x48], xmm1
mov rcx, qword [0x1403378f8]
lock inc dword [rcx + 0x30]
mov rdx, rax
call fcn.1400235f0
mov rcx, qword [rbp + 0x2a8]
xor rcx, rsp
call fcn.140220f90
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rdx, str.cancel
lea rcx, [rsp + 0x30]
call fcn.140022370
int3
lea rdx, str.cancel
lea rcx, [rsp + 0x20]
call fcn.140022370
int3
add rcx, 8
jmp 0x140065770