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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rax
lea rdx, [rcx + 0x18]
lea rcx, [rsp + 0x58]
call fcn.14006eea0
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x14005bda9
lock inc dword [rcx + 8]
mov rcx, qword [rsi + 0x78]
mov rax, qword [rsi + 0x70]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rcx
mov rax, qword [rsi + 0x80]
mov qword [rbp - 0x40], rax
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x38], xmm0
xor r14d, r14d
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005bde4
lock inc dword [rcx + 8]
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rcx
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x18], rax
lea rdi, [rsi + 8]
mov rsi, qword [rsi]
mov rbx, qword [rdi]
mov ecx, dword [0x1401a581c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005be24
cmp qword [rax], rbx
je 0x14005bf7e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005be12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x50]
mov ecx, Ordinal_217
call fcn.140042670
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r14
mov qword [rax + 0x20], r14
lea rax, [fcn.14006f3f0]
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
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x50]
call fcn.140070e30
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140046ae0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
test al, al
je 0x14005bf1a
xor eax, eax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov rax, qword [rdi]
mov qword [rbp + 8], rax
mov ecx, dword [0x1401a581c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp + 0x18], rax
lea rax, [rbp + 8]
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 8]
mov ecx, dword [0x1401a581c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [rsi + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
call fcn.1400e5a00
xor r9d, r9d
lea r8, [rbp - 8]
mov rdx, rbx
mov rcx, qword [rsi + 0x28]
call fcn.14006f3f0
nop
lea rcx, [rsp + 0x20]
call fcn.1400468b0
nop
mov rdx, qword [rbp + 0x18]
mov ecx, dword [0x1401a581c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x14005bf50
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14005bf50
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14005bf50
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x58]
call fcn.140050300
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400acdf0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp qword [rax + 8], 0
je 0x14005be24
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14007b410
nop
jmp 0x14005bf1a