Function at 0x140023940
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push r14
push r15
mov eax, 0x2ea0
call fcn.140096ce0
sub rsp, rax
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov qword [rsp + 0x2ed0], rbx
mov qword [rsp + 0x2ed8], rsi
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x2e90], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
movsxd rbx, dword [rcx + 0x84]
imul rbx, rbx, 0x3e8
call fcn.14006cb10
mov rsi, qword [rdi + 0x90]
lea rdx, [0x14001c110]
lea rcx, [rsp + 0x70]
call fcn.14003c7c0
mov qword [rsp + 0x80], rbx
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x88]
call fcn.14003c5b0
mov rbx, qword [rax]
cmp byte [rdi + 0xa0], 0
jne 0x1400239ec
call fcn.14006cb10
jmp 0x140023a10
lea r8, [rdi + 0xa8]
or r9, 0xffffffffffffffff
lea rdx, [rsi + 0x28]
mov rcx, qword [rsi + 0x68]
call fcn.1400476c0
mov byte [rdi + 0xa0], 0
call fcn.14006cb10
mov qword [rdi + 0x98], rbx
call fcn.14006cb10
call fcn.14006cb10
mov dword [rsp + 0x40], 0x2733
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x780], r15b
xor edx, edx
mov r8d, 0x270f
lea rcx, [rsp + 0x781]
call fcn.14008d370
lea rbx, [rsp + 0x780]
mov dword [rsp + 0xb0], r15d
call fcn.14006cb10
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xd0], 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], 0x2710
mov dword [rsp + 0xf0], r15d
mov qword [rsp + 0xf8], r15
lea rax, [rsp + 0x30]
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x108], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xd0]
call fcn.140049460
nop dword [rax]
call fcn.14006cb10
cmp qword [rsp + 0x38], rax
jne 0x140023bf2
cmp dword [rsp + 0x30], 0x2733
jne 0x140023bf2
mov eax, dword [rdi + 0xd0]
test eax, eax
jne 0x140023bf2
mov dword [rsp + 0x40], r15d
call fcn.14006cb10
mov qword [rsp + 0x48], rax
mov rbx, qword [rdi + 0x10]
mov eax, r15d
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x140023b68
mov rcx, rbx
call fcn.14001d4a0
mov dword [rsp + 0xc0], r15d
call fcn.14006cb10
mov qword [rsp + 0xc8], rax
movaps xmm0, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x140023bdd
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x98], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov ecx, dword [0x140133c18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x98]
mov ecx, dword [0x140133c18]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.14001d790
nop
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [0x140133c18]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140023bdd
call fcn.1400855f8
cmp dword [rsp + 0x40], 0
je 0x140023af0
lea rcx, [rsp + 0x40]
call fcn.14001c660
cmp dword [rsp + 0x30], 0
je 0x140023f93
cmp qword [0x14012ce40], 0
jne 0x140023c3b
cmp byte [0x14012ce39], 0
jne 0x140023c3b
mov ecx, 0xa8
call fcn.140085684
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140023c31
mov rcx, rax
call fcn.140021ba0
jmp 0x140023c34
mov rax, r15
mov qword [0x14012ce40], rax
cmp dword [reloc.WS2_32.dll_accept], 4
jl 0x140023d2a
lea rcx, [rsp + 0x120]
call fcn.1400392a0
nop
lea rcx, [rsp + 0x6c0]
call fcn.140022360
nop
mov ebx, dword [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.140044be0
lea rdx, str.READ_ENDS:_Connection_err_code
mov rcx, rax
call fcn.140044990
mov edx, ebx
mov rcx, rax
call fcn.140037330
mov rbx, rax
mov rcx, rax
call fcn.140037970
mov rcx, rbx
call fcn.140037ab0
nop
cmp qword [rsp + 0x6d8], 0x10
jb 0x140023cbd
mov rcx, qword [rsp + 0x6c0]
call fcn.1400855f8
lea rdx, [rsp + 0x640]
lea rcx, [rsp + 0x120]
call fcn.140039410
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call fcn.140022240
nop
cmp qword [rsp + 0x658], 0x10
jb 0x140023cff
mov rcx, qword [rsp + 0x640]
call fcn.1400855f8
nop
lea rcx, [rsp + 0x1b8]
call fcn.140039340
lea rbx, vtable.std::ios_base.0
mov qword [rsp + 0x1b8], rbx
lea rcx, [rsp + 0x1b8]
call fcn.140067028
jmp 0x140023d31
lea rbx, vtable.std::ios_base.0
mov eax, dword [0x14012ce14]
test al, 1
jne 0x140023d5e
or eax, 1
mov dword [0x14012ce14], eax
lea rax, vtable.boost::asio::error::detail::misc_category.0
mov qword [0x14012ce30], rax
lea rcx, [0x1400ba180]
call fcn.1400855a4
lea rax, [0x14012ce30]
cmp qword [rsp + 0x38], rax
jne 0x140023e5b
cmp dword [rsp + 0x30], 2
jne 0x140023e5b
call fcn.1400221f0
cmp eax, 4
jl 0x140023e54
lea rcx, [rsp + 0x220]
call fcn.1400392a0
nop
lea rcx, [rsp + 0x660]
call fcn.140022360
nop
mov rdx, rax
lea rcx, [rsp + 0x230]
call fcn.140044be0
lea rdx, str.Connection_err_code_eof.
mov rcx, rax
call fcn.140044990
mov rdi, rax
mov rcx, rax
call fcn.140037970
mov rcx, rdi
call fcn.140037ab0
nop
cmp qword [rsp + 0x678], 0x10
jb 0x140023df0
mov rcx, qword [rsp + 0x660]
call fcn.1400855f8
lea rdx, [rsp + 0x6a0]
lea rcx, [rsp + 0x220]
call fcn.140039410
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call fcn.140022240
nop
cmp qword [rsp + 0x6b8], 0x10
jb 0x140023e32
mov rcx, qword [rsp + 0x6a0]
call fcn.1400855f8
nop
lea rcx, [rsp + 0x2b8]
call fcn.140039340
mov qword [rsp + 0x2b8], rbx
lea rcx, [rsp + 0x2b8]
call fcn.140067028
mov al, 1
jmp 0x140023ff0
call fcn.1400221f0
cmp eax, 3
jl 0x140023f88
lea rcx, [rsp + 0x320]
call fcn.1400392a0
nop
lea rdx, [rsp + 0x6e0]
lea rcx, [rsp + 0x30]
call fcn.1400015d0
mov rsi, rax
lea rcx, [rsp + 0x620]
call fcn.140022360
nop
mov rdx, rax
lea rcx, [rsp + 0x330]
call fcn.140044be0
lea rdx, str.Problems_at_read:
mov rcx, rax
call fcn.140044990
mov rdx, rsi
mov rcx, rax
call fcn.140044be0
mov rsi, rax
mov rcx, rax
call fcn.140037970
mov rcx, rsi
call fcn.140037ab0
nop
cmp qword [rsp + 0x638], 0x10
jb 0x140023ef0
mov rcx, qword [rsp + 0x620]
call fcn.1400855f8
mov qword [rsp + 0x638], 0xf
mov qword [rsp + 0x630], r15
mov byte [rsp + 0x620], 0
cmp qword [rsp + 0x6f8], 0x10
jb 0x140023f24
mov rcx, qword [rsp + 0x6e0]
call fcn.1400855f8
lea rdx, [rsp + 0x680]
lea rcx, [rsp + 0x320]
call fcn.140039410
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 3]
mov rcx, rax
call fcn.140022240
nop
cmp qword [rsp + 0x698], 0x10
jb 0x140023f66
mov rcx, qword [rsp + 0x680]
call fcn.1400855f8
nop
lea rcx, [rsp + 0x3b8]
call fcn.140039340
mov qword [rsp + 0x3b8], rbx
lea rcx, [rsp + 0x3b8]
call fcn.140067028
mov byte [rdi + 0x89], 0
xor al, al
jmp 0x140023ff0
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x50], 0xffffffff
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.14003fdf0
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0x78]
call fcn.14003a720
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x780]
mov rcx, r14
call fcn.140002630
mov al, 1
jmp 0x140023ff0
mov rcx, qword [rsp + 0x2e90]
xor rcx, rsp
call fcn.140084a30
lea r11, [rsp + 0x2ea0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret