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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1404c39e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rax, qword [rcx + 0x30]
lea rbx, [rax + 0x28]
xor r14d, r14d
test rax, rax
cmove rbx, r14
mov ecx, dword [0x1404dc774]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14017e174
cmp qword [rax], rbx
je 0x14017e1a8
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14017e166
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi]
cmp byte [rax + 0x60], r14b
je 0x14017e2e3
mov qword [rdi + 0x20], r14
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x14017e2cc
mov qword [rcx + 0x20], rdi
jmp 0x14017e2d0
mov rbx, qword [rax + 8]
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
je 0x14017e181
mov rax, qword [rsi]
cmp byte [rax + 0x60], r14b
jne 0x14017e181
mov byte [rax + 0x60], 1
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1404dc78c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x48]
mov ecx, dword [0x1404dc78c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbp, qword [rbp + 0x30]
mov qword [rsp + 0x20], rbp
mov rsi, qword [rsi]
mov qword [rsp + 0x28], rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov rax, qword [rdi + 0x28]
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbp
call rax
nop
lea rcx, [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x14017e28b
mov rax, qword [rsi + 0x80]
test rax, rax
je 0x14017e274
mov qword [rax + 0x20], rcx
jmp 0x14017e278
mov qword [rsi + 0x78], rcx
mov rax, qword [rsi + 0x70]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x68], r14
mov qword [rsi + 0x70], r14
mov rbx, qword [rsi + 0x78]
test rbx, rbx
setne al
mov byte [rsi + 0x60], al
lea rcx, [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14017e2b9
lock inc dword [rbp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
call fcn.140196480
nop
mov rdx, qword [rsp + 0x58]
mov ecx, dword [0x1404dc78c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x14017e328
mov qword [rax + 0x68], rdi
mov qword [rax + 0x70], rdi
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14017e328
mov byte [rax + 0x60], 1
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsi]
mov qword [rdi + 0x20], r14
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x14017e30d
mov qword [rcx + 0x20], rdi
jmp 0x14017e311
mov qword [rax + 0x78], rdi
mov qword [rax + 0x80], rdi
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rsi]
lock inc dword [rcx + 0x30]
call fcn.140196480
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140382da0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret