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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rbx, rcx
mov rax, qword [rdx]
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x1400ad2b6
lock inc dword [rax + 8]
mov rax, qword [rdx + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdx + 0x18]
movups xmmword [rsp + 0x58], xmm0
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx + 0x30]
movaps xmmword [rsp + 0x70], xmm0
mov eax, dword [rdx + 0x40]
mov dword [rbp - 0x80], eax
mov rax, qword [rdx + 0x48]
mov qword [rbp - 0x78], rax
add rdx, 0x50
lea rcx, [rbp - 0x70]
call fcn.1400bae10
nop
lea rdi, [rbx + 8]
mov rsi, qword [rbx]
mov rbx, qword [rdi]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ad332
nop word [rax + rax]
cmp qword [rax], rbx
je 0x1400ad56b
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400ad320
lea rax, [rsp + 0x40]
mov qword [rbp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, 0xf8
call fcn.140062870
mov rbx, rax
mov qword [rax + 0x20], r14
lea rax, [fcn.140139b10]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 0x38], rcx
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r14
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x40], rax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x48], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx + 0x50], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x60], rax
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x68], xmm0
mov eax, dword [rbp - 0x80]
mov dword [rbx + 0x78], eax
mov rax, qword [rbp - 0x78]
mov qword [rbx + 0x80], rax
mov rax, qword [rbp - 0x70]
mov qword [rbx + 0x88], rax
mov rax, qword [rbp - 0x68]
mov qword [rbx + 0x90], rax
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [rbx + 0x98], xmm0
mov eax, dword [rbp - 0x50]
mov dword [rbx + 0xa8], eax
mov eax, dword [rbp - 0x4c]
mov dword [rbx + 0xac], eax
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rbx + 0xb0], xmm0
mov rax, qword [rbp - 0x38]
mov qword [rbx + 0xc0], rax
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx + 0xc8], xmm0
mov rax, qword [rbp - 0x20]
mov qword [rbx + 0xd8], rax
mov qword [rbx + 0xe0], r14
mov qword [rbx + 0xe8], r14
mov rax, qword [rbp - 0x18]
mov qword [rbx + 0xe0], rax
mov rax, qword [rbp - 0x10]
mov qword [rbx + 0xe8], rax
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140156110
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x28], r14
test al, al
je 0x1400ad4e6
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [rsi + 0x28]
mov qword [rbp + 0x10], rax
mov rax, qword [rdi]
mov qword [rbp + 0x18], rax
call fcn.14018e9e0
xor r9d, r9d
lea r8, [rbp + 0x38]
mov rdx, rbx
mov rcx, qword [rsi + 0x28]
call fcn.140139b10
nop
lea rcx, [rbp + 0x10]
call fcn.1400c5a90
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov edi, 0xffffffff
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x1400ad51d
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ad51d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ad51d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400ad54e
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ad54e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400ad54e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400ad332
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14009a480
nop
nop
jmp 0x1400ad4e6