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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, rcx
mov r12, rdx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or edi, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002fef4
mov edi, dword [0x14003d17c]
lea rdx, [rbp - 0x10]
and dword [rbp - 0x10], eax
lea r14, [rbp - 0x10]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rax
je 0x14002ff51
test byte [r10 + 0x1c], 1
je 0x14002ff51
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002ff36
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14002ff38
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, Ordinal_20
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037220]
call fcn.1400012b0
and qword [rbp + 0x50], 0
lea rax, [rbp + 0x50]
and qword [rbp + 0x48], 0
lea r9, str.FD_vmsJ
and qword [r12], 0
lea rcx, [0x1400371e0]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x140030047
mov rcx, qword [rbp + 0x50]
lea r9, [rbp + 0x58]
and qword [rbp + 0x58], 0
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14002ffe8
mov rcx, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x58]
test rcx, rcx
je 0x14002ffd2
and qword [rbp + 0x48], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rax, qword [rbx]
lea rdx, [rbp + 0x48]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x140034e68]
mov esi, eax
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x140030003
and qword [rbp + 0x58], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
test esi, esi
js 0x140030047
and qword [rbp + 0x58], 0
lea rcx, [rbp + 0x58]
call fcn.1400117c4
mov rbx, qword [rbp + 0x58]
mov esi, eax
test eax, eax
js 0x14003003e
mov rdx, qword [rbp + 0x48]
mov r8, rbx
mov rcx, qword [rbp + 0x50]
call fcn.14002fc28
mov esi, eax
test eax, eax
js 0x14003003e
mov rax, rbx
xor ebx, ebx
mov qword [r12], rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14003009b
test byte [rcx + 0x1c], 1
je 0x14003009b
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140030075
mov eax, edx
sub r15, rax
jmp 0x140030078
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], esi
mov edx, reloc.ProximityCommon.dll_Ordinal_20
lea r8, [0x140037220]
call fcn.140001304
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400300b6
and qword [rbp + 0x48], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x1400300d1
and qword [rbp + 0x50], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
or eax, 0xffffffff
add dword [r14], eax
cmp edi, eax
je 0x1400300f2
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x1400300f2
xor edx, edx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret