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

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x3b0
mov qword [rax - 0x2f8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14010b358]
xor rax, rsp
mov qword [rsp + 0x3a8], rax
mov rsi, rdx
mov rdi, rcx
movsxd rbx, dword [rcx + 0x84]
imul rbx, rbx, 0x3e8
call fcn.140070830
mov rax, qword [rdi + 0x90]
lea r14, [rax + 0x28]
lea rdx, [0x140020490]
lea rcx, [rsp + 0x78]
call fcn.140040b50
mov qword [rsp + 0x68], rbx
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.140040940
mov rbx, qword [rax]
cmp byte [rdi + 0xa0], 0
jne 0x1400278f9
call fcn.140070830
jmp 0x14002791c
lea r8, [rdi + 0xa8]
or r9, 0xffffffffffffffff
mov rdx, r14
mov rcx, qword [r14 + 0x40]
call fcn.14004b120
mov byte [rdi + 0xa0], 0
call fcn.140070830
mov qword [rdi + 0x98], rbx
call fcn.140070830
call fcn.140070830
mov dword [rsp + 0x30], 0x2733
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
mov rbx, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x140027953
mov rsi, qword [rsi]
xor r14d, r14d
mov dword [rsp + 0xa0], r14d
call fcn.140070830
mov qword [rsp + 0xa8], rax
lea rax, [rdi + 0x18]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], rbx
mov dword [rsp + 0xe0], r14d
mov qword [rsp + 0xe8], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0xf0], rax
lea r9d, [r14 + 1]
xor r8d, r8d
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xc8]
call fcn.14004cac0
call fcn.140070830
cmp qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x50]
jne 0x140027ab5
cmp eax, 0x2733
jne 0x140027ab5
mov dword [rsp + 0x30], r14d
call fcn.140070830
mov qword [rsp + 0x38], rax
mov rbx, qword [rdi + 0x10]
mov eax, r14d
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x140027a2b
mov rcx, rbx
call fcn.140021820
mov dword [rsp + 0xb0], r14d
call fcn.140070830
mov qword [rsp + 0xb8], rax
movaps xmm0, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x140027aa0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x88], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x90], rax
mov ecx, dword [0x140139d20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x88]
mov ecx, dword [0x140139d20]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140021b10
nop
mov rdx, qword [rsp + 0x98]
mov ecx, dword [0x140139d20]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140027aa0
call fcn.140089328
cmp dword [rsp + 0x30], 0
je 0x1400279c0
lea rcx, [rsp + 0x30]
call fcn.1400209e0
test eax, eax
je 0x140027c39
cmp qword [0x140132e80], 0
jne 0x140027afb
cmp byte [0x140132e79], 0
jne 0x140027afb
mov ecx, 0xa8
call fcn.1400893b4
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140027af1
mov rcx, rax
call fcn.140025f10
jmp 0x140027af4
mov rax, r14
mov qword [0x140132e80], rax
cmp dword [reloc.WS2_32.dll_accept], 3
jl 0x140027c2e
lea rcx, [rsp + 0x100]
call fcn.14003e560
nop
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x50]
call fcn.1400015d0
mov rbx, rax
lea rcx, [rsp + 0x300]
call fcn.1400266d0
nop
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.140048780
lea rdx, str.Problems_at_write:
mov rcx, rax
call fcn.140048530
mov rdx, rbx
mov rcx, rax
call fcn.140048780
mov rbx, rax
mov rcx, rax
call fcn.14003d010
mov rcx, rbx
call fcn.14003d150
nop
cmp qword [rsp + 0x318], 0x10
jb 0x140027b8f
mov rcx, qword [rsp + 0x300]
call fcn.140089328
mov qword [rsp + 0x318], shutdown
mov qword [rsp + 0x310], r14
mov byte [rsp + 0x300], 0
cmp qword [rsp + 0x358], 0x10
jb 0x140027bc3
mov rcx, qword [rsp + 0x340]
call fcn.140089328
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x100]
call fcn.14003e6d0
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 3]
mov rcx, rax
call fcn.1400265b0
nop
cmp qword [rsp + 0x338], 0x10
jb 0x140027c05
mov rcx, qword [rsp + 0x320]
call fcn.140089328
nop
lea rcx, [rsp + 0x198]
call fcn.14003e600
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x198], rax
lea rcx, [rsp + 0x198]
call fcn.14006abd8
mov byte [rdi + 0x89], 0
xor al, al
jmp 0x140027c7c
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], 0xffffffff
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140043bb0
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0x70]
call fcn.14003ef30
nop
mov al, 1
jmp 0x140027c7c
mov rcx, qword [rsp + 0x3a8]
xor rcx, rsp
call fcn.140088760
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret