Function at 0x14000e420
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 r15, rcx
mov r12, rdx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rsi, rax
test rax, rax
jne 0x14000e468
mov ebx, dword [0x14003d17c]
lea rdx, [rbp - 0x10]
and dword [rbp - 0x10], eax
lea rsi, [rbp - 0x10]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rsi]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r14d, 0x1df
cmp r10, rax
je 0x14000e4c3
test byte [r10 + 0x1c], 1
je 0x14000e4c3
mov eax, dword [rsi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14000e4a8
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x14000e4aa
xor ecx, ecx
lea r9, [rcx + rdx]
mov edx, 0x19
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036280]
call fcn.1400012b0
mov rax, qword [r15]
mov rdx, r12
mov rcx, r15
mov rax, qword [rax + 0x88]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14000e5d8
mov rcx, qword [r12]
xor edx, edx
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
or edx, 0xffffffff
mov dword [rsp + 0x20], 1
mov r9d, edx
lea r8, str.file
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
xor edi, edi
mov r12d, 0x80070005
cmp eax, 2
cmove edi, r12d
je 0x14000e5d8
mov rax, qword [r15]
lea rdx, [rbp + 0x58]
and qword [rbp + 0x58], 0
mov rcx, r15
mov rax, qword [rax + 0x30]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14000e5c9
and qword [rbp + 0x50], 0
lea rax, [rbp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r9, [0x140036260]
lea rcx, [0x140036f98]
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 0x14000e5ae
mov rcx, qword [rbp + 0x58]
xor edx, edx
mov rdi, qword [rbp + 0x50]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov rdx, qword [rdi]
lea r8, [rbp + 0x40]
xor r9d, r9d
mov rcx, rdi
mov r10, qword [rdx + 0x28]
mov rdx, rax
mov rax, r10
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14000e5ae
cmp dword [rbp + 0x40], 0
cmove edi, r12d
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14000e5c9
and qword [rbp + 0x50], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14000e5d8
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14000e62b
test byte [rcx + 0x1c], 1
je 0x14000e62b
mov eax, dword [rsi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14000e605
mov eax, edx
sub r14, rax
jmp 0x14000e608
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r14
mov dword [rsp + 0x20], edi
mov edx, 0x1a
lea r8, [0x140036280]
call fcn.140001304
or eax, 0xffffffff
add dword [rsi], eax
cmp ebx, eax
je 0x14000e64b
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14000e64b
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret