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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov rbx, r9
mov ecx, dword [0x14003d17c]
mov r12, r8
mov r13, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or esi, 0xffffffff
mov r14, rax
test rax, rax
jne 0x14002df9f
mov esi, dword [0x14003d17c]
lea rdx, [rsp + 0x30]
and dword [rsp + 0x30], eax
lea r14, [rsp + 0x30]
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov eax, dword [r14]
mov r10, qword [0x14003d048]
lea rcx, [0x14003d048]
lea rdx, [0x140035650]
mov r15d, 0x1df
cmp r10, rcx
je 0x14002dff9
test byte [r10 + 0x1c], 1
je 0x14002dff9
lea eax, [rax + rax*4]
cmp eax, 0x1e1
ja 0x14002dfde
mov ecx, r15d
sub rcx, rax
jmp 0x14002dfe0
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, 0x1c
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037200]
call fcn.1400012b0
and qword [rbx], 0
lea rdx, [0x140035918]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
lea ecx, [rbx + 0x48]
call fcn.1400308a0
mov rdi, rax
test rax, rax
je 0x14002e0a1
mov dword [rax + 0xc], 1
lea rax, [0x140033ff8]
mov qword [rdi], rax
mov rax, qword [0x14003d7d0]
test rax, rax
je 0x14002e05b
mov rax, qword [rax]
lea rcx, [0x1400034c0]
cmp qword [rax + 8], rcx
jne 0x14002e055
lock inc dword [0x14003d7d8]
jmp 0x14002e05b
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoAddRefServerProcess]
lea rax, [0x140034078]
mov qword [rdi], rax
lea rax, [0x140034070]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbp
test rbp, rbp
je 0x14002e08a
mov rax, qword [rbp]
mov rcx, rbp
mov rax, qword [rax + 8]
call qword [0x140034e68]
mov qword [rdi + 0x20], r13
mov qword [rdi + 0x28], r12
and qword [rdi + 0x30], rbx
and qword [rdi + 0x38], rbx
and qword [rdi + 0x40], rbx
mov rbx, rdi
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, 0x8007000e
test rbx, rbx
je 0x14002e108
lea rdi, [rbx + 0x30]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002e0d3
and qword [rdi], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r9, str.FD_vmsJ
lea rcx, [0x1400371e0]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x14002e108
mov rax, qword [rsp + 0x88]
mov rcx, rbx
xor ebx, ebx
mov qword [rax], rcx
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14002e15c
test byte [rcx + 0x1c], 1
je 0x14002e15c
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14002e136
mov eax, edx
sub r15, rax
jmp 0x14002e139
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], edi
mov edx, 0x1d
lea r8, [0x140037200]
call fcn.140001304
test rbx, rbx
je 0x14002e171
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
or eax, 0xffffffff
add dword [r14], eax
cmp esi, eax
je 0x14002e192
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002e192
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret