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

Disassembly:
push rbp
push rsi
push r13
lea rbp, [rsp - 0x440]
sub rsp, 0x540
xor esi, esi
mov r13, rcx
mov ecx, dword [0x140035238]
mov dword [rsp + 0x70], esi
mov qword [rbp + 0x178], rsi
mov qword [rbp + 0x180], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140035238]
lea rdx, [rsp + 0x70]
mov qword [rbp + 0x188], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000a58f
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov qword [rsp + 0x560], rbx
lea rax, [rbp + 0x190]
mov qword [rsp + 0x538], rdi
mov ebx, esi
mov qword [rsp + 0x530], r12
mov qword [rsp + 0x528], r14
mov qword [rsp + 0x520], r15
mov r15d, esi
mov dword [rsp + 0x30], 0x24
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x80
nop dword [rax + rax]
movsxd r8, ebx
lea r9, [rsp + 0x30]
mov edx, 0x105f
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14000a60f
mov eax, dword [rsp + 0x54]
inc r15d
mov dword [rbp + rax*4 + 0x290], ebx
inc ebx
cmp ebx, 0x64
jb 0x14000a5e0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [0x1400356b0]
mov edx, 0x112
mov rcx, rbx
mov qword [rbp + 0x470], rax
mov r14, rax
mov qword [rsp + 0x20], 0x100
call fcn.1400060d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
lea rdi, [rax + 0x10]
movzx ecx, byte [rbx + 2]
mov r12d, esi
mov word [rax], cx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], rax
mov qword [rdi], 0x100
mov word [rax + 0x100], si
mov qword [rdi], rsi
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rdi
mov word [rax], si
test r14d, r14d
je 0x14000a84f
mov r14, rsi
mov qword [rbp + 0x468], rsi
nop dword [rax + rax]
mov r9d, 2
mov r8, r14
mov edx, 0x102c
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
test al, 2
je 0x14000a835
test r15d, r15d
je 0x14000a79b
nop dword [rax + rax]
mov r8d, esi
mov edx, r12d
mov rcx, r13
call fcn.14000a420
mov rbx, qword [rax]
mov r14, qword [rax + 8]
test rbx, rbx
je 0x14000a731
mov rdx, qword [rdi]
add rdx, rbx
cmp qword [rsp + 0x20], rdx
jae 0x14000a706
lea rcx, [rsp + 0x20]
call fcn.1400073f0
mov rdi, qword [rsp + 0x28]
test r14, r14
je 0x14000a71d
mov rcx, qword [rdi + 8]
mov r8, rbx
add rcx, qword [rdi]
mov rdx, r14
call fcn.1400109c0
add qword [rdi], rbx
mov rcx, qword [rdi]
xor r14d, r14d
mov rax, qword [rdi + 8]
mov word [rcx + rax], r14w
jmp 0x14000a734
xor r14d, r14d
lea rcx, [0x14002dc48]
call fcn.140006850
mov rbx, rax
add rbx, rbx
je 0x14000a789
mov rdx, qword [rdi]
add rdx, rbx
cmp qword [rsp + 0x20], rdx
jae 0x14000a764
lea rcx, [rsp + 0x20]
call fcn.1400073f0
mov rdi, qword [rsp + 0x28]
mov rcx, qword [rdi]
lea rdx, [0x14002dc48]
add rcx, qword [rdi + 8]
mov r8, rbx
call fcn.1400109c0
add qword [rdi], rbx
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov word [rcx + rax], r14w
inc esi
cmp esi, r15d
jb 0x14000a6d0
mov r14, qword [rbp + 0x468]
mov r8, qword [rdi]
test r8, r8
je 0x14000a7df
mov rax, qword [rdi + 8]
mov rdx, r8
shr rdx, 1
sub rdx, 2
lea rcx, [rdx + rdx]
add rdx, 2
sub r8, rcx
add rcx, rax
sub r8, 4
lea rdx, [rax + rdx*2]
call fcn.1400109c0
add qword [rdi], 0xfffffffffffffffc
mov rcx, qword [rdi]
xor esi, esi
mov rax, qword [rdi + 8]
mov word [rcx + rax], si
jmp 0x14000a7e1
xor esi, esi
lea rcx, [0x14002e608]
call fcn.140006850
mov rbx, rax
add rbx, rbx
je 0x14000a835
mov rdx, qword [rdi]
add rdx, rbx
cmp qword [rsp + 0x20], rdx
jae 0x14000a811
lea rcx, [rsp + 0x20]
call fcn.1400073f0
mov rdi, qword [rsp + 0x28]
mov rcx, qword [rdi]
lea rdx, [0x14002e608]
add rcx, qword [rdi + 8]
mov r8, rbx
call fcn.1400109c0
add qword [rdi], rbx
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov word [rcx + rax], si
inc r14
inc r12d
mov qword [rbp + 0x468], r14
cmp r12d, dword [rbp + 0x470]
jb 0x14000a6a0
lea rcx, [rsp + 0x70]
call fcn.140006270
mov ecx, dword [0x140035238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15, qword [rsp + 0x520]
lea rcx, [rsp + 0x70]
mov r14, qword [rsp + 0x528]
mov r12, qword [rsp + 0x530]
mov rbx, qword [rsp + 0x560]
cmp rax, rcx
je 0x14000a89b
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rdx, qword [rbp + 0x188]
mov ecx, dword [0x140035238]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000a8be
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r8, qword [rbp + 0x180]
test r8, r8
je 0x14000a8d9
mov rcx, qword [0x1400356a8]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rdi
mov rdi, qword [rsp + 0x538]
add rsp, 0x540
pop r13
pop rsi
pop rbp
ret