Function at 0x140054cb0
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 [0x1402c94a0]
xor rax, rsp
mov qword [rbp + 0x2a8], rax
mov rsi, rcx
lea rdx, str.e_94m_i
lea rcx, [rbp - 0x68]
call fcn.140083980
nop
lea rdx, str.Disconnected_from
lea rcx, [rbp - 0x58]
call fcn.14002e0a0
mov rdx, qword [rsi]
add rdx, 0x60
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140054d25
mov rdx, qword [rdx]
lea rcx, [rbp - 0x58]
call fcn.1400395d0
nop
lea rcx, [rbp - 0x68]
call fcn.140026ca0
mov rax, qword [rsi]
mov rcx, qword [rax + 0x1e8]
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 0x140054d8b
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140054d8b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140054d8b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rax, [0x14027466c]
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 + 0xd0], xmm0
movups xmm1, xmmword [rbp + 0x290]
movups xmmword [rax + 0xe0], xmm1
movsd xmm0, qword [rbp + 0x2a0]
movsd qword [rax + 0xf0], xmm0
mov rbx, qword [rsi]
mov dword [rsp + 0x20], r15d
call fcn.1400a9490
mov qword [rsp + 0x28], rax
lea rdx, [rbx + 0x170]
lea r8, [rsp + 0x20]
mov rcx, qword [rbx + 0x168]
call fcn.14002ada0
lea rdi, [fcn.140010b90]
mov rax, rdi
cmp dword [rsp + 0x20], r15d
cmove rax, r15
test rax, rax
jne 0x140055059
mov rbx, qword [rsi]
mov dword [rsp + 0x30], r15d
call fcn.1400a9490
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x1b0]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x1a8]
call fcn.14002ada0
cmp dword [rsp + 0x30], r15d
cmove rdi, r15
test rdi, rdi
jne 0x140055047
mov rax, qword [rsi]
movzx eax, byte [rax + 0x59]
test al, al
je 0x140054ed1
mov rax, qword [0x1402d3108]
movzx eax, byte [rax + 0x178]
test al, al
je 0x140054ec5
lea rdx, str.e_94m_i
lea rcx, [rbp + 0x90]
call fcn.140083980
nop
lea rdx, str.Shutting_down_miners...
lea rcx, [rbp + 0xa0]
call fcn.14002e0a0
nop
lea rcx, [rbp + 0x90]
call fcn.140026ca0
mov rcx, qword [0x1402d3108]
call fcn.14004b690
mov rax, qword [rsi]
mov byte [rax + 0x58], 0
jmp 0x14005501b
mov rax, qword [rsi]
mov byte [rax + 0x5a], 1
lea rdx, str.e_94m_i
lea rcx, [rbp + 0x188]
call fcn.140083980
nop
lea rdx, str.No_connection._Suspend_mining_...
lea rcx, [rbp + 0x198]
call fcn.14002e0a0
nop
lea rcx, [rbp + 0x188]
call fcn.140026ca0
mov rdi, qword [0x1402d3108]
lea rbx, [rdi + 0x18]
mov qword [rbp - 0x78], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140054f31
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 0x140054f58
mov edx, 2
mov rcx, qword [rdi]
call fcn.140052340
add rdi, 0x10
cmp rdi, r14
jne 0x140054f42
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test eax, eax
je 0x140054f6e
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, [0x140056440]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movups xmm1, xmmword [rax + 0x158]
movups xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x60], xmm0
psrldq xmm1, 8
movq rbx, xmm1
mov ecx, dword [0x1402d3934]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140054fc5
cmp qword [rax], rbx
je 0x140054fc5
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140054fb7
lea rdx, [rsp + 0x60]
mov ecx, 0x58
call fcn.14001a0a0
mov qword [rax + 0x20], r15
lea rcx, [0x14004e320]
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 [0x1402d3198]
lock inc dword [rcx + 0x30]
mov rdx, rax
call fcn.14001ad40
mov rcx, qword [rbp + 0x2a8]
xor rcx, rsp
call fcn.1401e4940
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.140019e50
int3
lea rdx, str.cancel
lea rcx, [rsp + 0x20]
call fcn.140019e50
int3
add rcx, 8
jmp 0x140054cb0