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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
xor r13d, r13d
mov r14, rax
test rax, rax
jne 0x14001fead
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x38]
mov ecx, ebx
mov dword [rsp + 0x38], r13d
lea r14, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r12d, 0x1df
cmp r10, rax
je 0x14001ff10
test byte [r10 + 0x1c], 1
je 0x14001ff10
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001feef
mov eax, ecx
mov ecx, r12d
sub rcx, rax
jmp 0x14001fef2
mov rcx, r13
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], rsi
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036cb8]
mov edx, 0x55
call fcn.140001370
cmp byte [rsi + 0x134], r13b
je 0x140020079
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x38]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x68], rax
xor edx, edx
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x70], rax
mov r8d, 0x90
lea rax, [0x140036c78]
mov dword [rsp + 0x78], r13d
mov qword [rbp - 0x58], rax
mov byte [rsp + 0x7c], r13b
mov byte [rbp - 0x48], r13b
mov dword [rbp - 0x60], r13d
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x40], 1
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x60], r13
call sub.msvcrt.dll_memset
lea r15, [0x1400338a0]
mov qword [rbp + 0x68], r13
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov qword [rbp + 0x70], r13
call fcn.140022e5c
mov edx, dword [rsi + 0x40]
mov qword [rsp + 0x30], r13
test edx, edx
je 0x14001ffe0
mov edi, dword [rsi + 0x44]
test edi, edi
js 0x14001ffe9
mov rcx, qword [0x14003da90]
lea r9, [rsp + 0x30]
lea r8, [0x140036570]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov edi, eax
jmp 0x14001ffe5
mov edi, 0x80070057
test edi, edi
jns 0x140020008
mov rcx, qword [rbp + 0xb8]
lea r8, str.baseproximityuxlibproximitysendtarget.cpp
mov r9d, edi
mov edx, 0x5dd
call fcn.14000ffac
test edi, edi
js 0x140020036
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140020228
mov edi, eax
test eax, eax
jns 0x140020036
mov rcx, qword [rbp + 0xb8]
lea r8, str.baseproximityuxlibproximitysendtarget.cpp
mov r9d, eax
mov edx, 0x5e0
call fcn.14000ffac
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400066e0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002005e
mov qword [rsp + 0x30], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], r15
call fcn.140006a7c
lea rcx, [rsp + 0x40]
call fcn.140006d20
jmp 0x140020083
mov rcx, rsi
call fcn.140020830
mov edi, eax
test edi, edi
js 0x14002013e
cmp byte [rsi + 0x134], r13b
je 0x14002013e
lea rdx, str.Tap_and_send_graceful_socket_shutdown
mov rcx, rsi
call fcn.14001fa08
cmp byte [rsi + 0x136], r13b
je 0x14002013e
mov r15d, r13d
mov rcx, qword [rsi + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8066
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jne 0x1400200e3
lea ecx, [rax + 0x32]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
inc r15d
cmp r15d, 0x28
jl 0x1400200b7
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
cmp r10, rax
je 0x14002013e
test byte [r10 + 0x1c], 4
je 0x14002013e
mov eax, dword [r14]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140020117
mov eax, ecx
mov rcx, r12
sub rcx, rax
jmp 0x14002011a
mov rcx, r13
lea r9, [0x140035650]
mov dword [rsp + 0x20], r15d
add r9, rcx
lea r8, [0x140036cb8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x56
call fcn.140001304
mov edx, edi
xor r8d, r8d
sar edx, 0x1f
mov rcx, rsi
and edx, 2
add edx, 6
call fcn.14001ea7c
mov rcx, qword [rsi + 0x128]
mov edx, 1
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [0x140034e68]
cmp byte [rsi + 0x134], r13b
je 0x14002017e
mov rcx, rsi
call fcn.14001fc04
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x1400201d7
test byte [rcx + 0x1c], 1
je 0x1400201d7
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x1400201ac
mov eax, edx
sub r12, rax
jmp 0x1400201af
mov r12, r13
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r12
mov dword [rsp + 0x28], edi
mov edx, 0x57
mov qword [rsp + 0x20], rsi
lea r8, [0x140036cb8]
call fcn.140001730
dec dword [r14]
cmp ebx, 0xffffffff
je 0x1400201f6
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x1400201f6
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400304d0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret