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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp], rax
mov r14, rcx
xor r13d, r13d
mov ecx, dword [0x1403bc760]
cmp byte [0x1403bc764], r13b
je 0x140027cb7
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140027cbd
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x140027ff3
lea rax, [0x1403bc770]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r13d
mov ebx, 7
lea edx, [rbx - 6]
mov ecx, dword [0x1403bc770]
cmp byte [0x1403bc774], r13b
je 0x140027cf9
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140027cff
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
setne al
test al, al
jne 0x140027d0d
mov rcx, rbx
int 0x29
mov eax, 1
lock xadd dword [rsp + 0x38], eax
mov rdx, qword [rdi + 0x20]
mov rcx, r14
call fcn.14002814c
cmp qword [rdi + 0x20], r13
sete al
test al, al
jne 0x140027f90
mov rax, qword [rdi]
test rax, rax
jne 0x140027d40
mov rax, r13
jmp 0x140027d43
mov rax, qword [rax]
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, qword [rdi + 0x18]
mov rax, qword [rax + 8]
mov rbx, qword [rax + rcx*8]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140027594
mov al, byte [rbx + 0x30]
mov byte [rbp - 0x60], al
mov eax, dword [rbx + 0x38]
mov dword [rbp - 0x58], eax
mov eax, dword [rbx + 0x40]
mov dword [rbp - 0x50], eax
mov rcx, qword [rdi + 0x10]
dec rcx
and rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 8]
xor edx, edx
mov rcx, qword [rax + rcx*8]
call fcn.1400279c4
sub qword [rdi + 0x20], 1
jne 0x140027d9c
mov qword [rdi + 0x18], r13
jmp 0x140027da0
inc qword [rdi + 0x18]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
test r8, r8
je 0x140027dbd
lock inc dword [r8 + 8]
lea rcx, [rsp + 0x40]
call fcn.14025dfc0
cmp qword [rsp + 0x40], r13
sete r15b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140027e1a
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140027e1a
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14002a211.0]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140027e1a
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14002a211.0]
test r15b, r15b
je 0x140027e6b
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.14000c6c4
nop
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rax, qword [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9b, byte [rbp - 0x60]
mov r8d, dword [rbp - 0x58]
mov edx, dword [rbp - 0x50]
lea rcx, [r14 + 8]
call fcn.140025660
nop
lea rcx, [rbp - 0x40]
call fcn.14000c764
jmp 0x140027f30
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
test r8, r8
je 0x140027e88
lock inc dword [r8 + 8]
lea rcx, [rsp + 0x50]
call fcn.14025dfc0
nop
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x20]
call fcn.14000c6c4
nop
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rcx, qword [rbp - 0x20]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9b, byte [rbp - 0x60]
mov r8d, dword [rbp - 0x58]
mov edx, dword [rbp - 0x50]
lea rcx, [r14 + 8]
call fcn.140025540
nop
lea rcx, [rbp - 0x20]
call fcn.14000c764
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140027f30
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140027f30
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14002a211.0]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140027f30
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14002a211.0]
nop
lea rcx, [rbp - 0x80]
call fcn.14000c764
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x140027f7c
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140027f7c
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14002a211.0]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140027f7c
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14002a211.0]
cmp qword [rdi + 0x20], r13
sete al
test al, al
je 0x140027d33
mov ebx, 7
mov edx, dword [0x1403fdaa0]
mov rax, qword gs:[0x58]
mov ecx, 8
mov rax, qword [rax + rdx*8]
mov rdx, qword [rcx + rax]
mov rcx, r14
call fcn.1400280d4
call fcn.1400282b0
nop
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140027ff3
or eax, 0xffffffff
lock xadd dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x30]
xor edx, edx
cmp byte [rcx + 4], r13b
mov ecx, dword [rcx]
je 0x140027fe2
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140027fe8
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140027fba
mov rcx, rbx
int 0x29
jmp 0x140027fba
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14020ed60
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret