Function at 0x1400f64d0
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
push rbp
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rbx, rcx
lea rcx, [rsp + 0x70]
call fcn.1400bd0a0
nop
lea rsi, [rbx + 8]
mov r14, qword [rbx]
mov rbx, qword [rsi]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400f6532
nop dword [rax]
cmp qword [rax], rbx
je 0x1400f6715
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400f6520
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x70]
mov ecx, 0x210
call fcn.140062870
mov rdi, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [fcn.14014d810]
mov qword [rdi + 0x28], rax
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
mov dword [rdi + 0x30], r15d
mov rcx, qword [rsp + 0x70]
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x40], r15
mov qword [rdi + 0x48], r15
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rdi + 0x48], rax
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov rax, qword [rbp - 0x78]
mov qword [rdi + 0x50], rax
mov qword [rdi + 0x58], r15
mov qword [rdi + 0x60], r15
mov rax, qword [rbp - 0x70]
mov qword [rdi + 0x58], rax
mov rax, qword [rbp - 0x68]
mov qword [rdi + 0x60], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x60]
lea rcx, [rdi + 0x68]
call fcn.1400bd620
lea rcx, [rdi + 0x108]
lea rdx, [rbp + 0x40]
call fcn.1400ba290
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.140156110
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
test al, al
je 0x1400f667c
mov rax, qword [rsi]
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 [r14 + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
call fcn.14018e9e0
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, qword [r14 + 0x28]
call fcn.14014d810
nop
lea rcx, [rsp + 0x38]
call fcn.1400c5a90
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0x100]
call fcn.1400c0650
lea rcx, [rbp + 0x10]
call fcn.1400c0650
mov edi, 0xffffffff
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x1400f66c8
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f66c8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400f66c8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x1400f66f8
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f66f8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400f66f8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400f6532
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140100f00
nop
nop
jmp 0x1400f667c