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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
call fcn.1401ab0c0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebp, ebp
mov esi, 0xffffffff
test rax, rax
jne 0x1401aae7d
mov ecx, reloc.SinoSPE.dll_Ordinal_32
call fcn.1403ca490
mov rbx, rax
mov qword [rax], rdi
mov dword [rax + 0xc], ebp
mov dword [rax + 0x10], esi
mov byte [rax + 8], bpl
mov qword [rax + 0x18], rbp
call fcn.1401ab0c0
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.1401ab0c0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401aae93
mov byte [rax + 8], bpl
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rdi + 8], eax
mov eax, dword [rdi + 0x2c]
cmp eax, 3
jne 0x1401aaeb2
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx]
call qword [rax]
jmp 0x1401aaf37
mov ecx, 0x160
cmp eax, 2
jne 0x1401aaee4
call fcn.1403ca490
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x160
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.1401adcf0
nop
jmp 0x1401aaf37
cmp eax, 1
jne 0x1401aaf11
call fcn.1403ca490
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x160
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.1401adb00
nop
jmp 0x1401aaf37
call fcn.1403ca490
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x160
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.1401ac490
nop
mov qword [rdi + 0x30], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.SinoSPE.dll_Ordinal_16]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rdi + 0x48]
mov r9, qword [rdi + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x38], r9
mov rax, qword [r9 + 0x10]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1401aaf80
mov eax, dword [rax]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x1401aaf88
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x28]
mov qword [r9 + 0x10], rax
mov byte [rsp + 0x2c], 0
mov qword [rsp + 0x30], rbp
mov rax, qword [r9 + 0x10]
mov qword [rax + 8], rcx
mov rax, qword [r9 + 0x10]
mov r8, qword [rax + 8]
test r8, r8
je 0x1401aafc5
cmp dword [r9 + 8], 1
jne 0x1401aafc5
mov rdx, r9
mov rcx, qword [r9 + 0x18]
call fcn.1401af310
jmp 0x1401aafd3
mov rcx, qword [r9 + 0x18]
mov rax, qword [rcx]
mov rdx, r9
call qword [rax + reloc.SinoSPE.dll_Ordinal_8]
nop
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.SinoSPE.dll_Ordinal_24]
mov rcx, qword [rdi + 0x30]
cmp dword [rdi + 0x2c], 3
je 0x1401ab005
test rcx, rcx
je 0x1401ab04c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x1401ab04c
test rcx, rcx
je 0x1401ab014
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x38], rbp
mov rbx, qword [rdi + 0x40]
mov qword [rdi + 0x40], rbp
test rbx, rbx
je 0x1401ab04c
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401ab04c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1401ab04c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.SinoSPE.dll_Ordinal_8]
mov qword [rdi + 0x30], rbp
mov dword [rdi + 8], ebp
call fcn.1401ab0c0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
call fcn.1401ab0c0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1401ab091
call fcn.1401ab0c0
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, reloc.SinoSPE.dll_Ordinal_32
mov rcx, rbx
call fcn.1403ca488
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1403ca460
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret