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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
mov r15, rdx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
xor r13d, r13d
mov ebx, 0xffffffff
mov rsi, rax
test rax, rax
jne 0x14000e6c0
mov ebx, dword [0x14003d17c]
lea rdx, [rbp - 0x38]
mov ecx, ebx
mov dword [rbp - 0x38], r13d
lea rsi, [rbp - 0x38]
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 0x14000e71c
test byte [r10 + 0x1c], 1
je 0x14000e71c
mov eax, dword [rsi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14000e700
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x14000e703
mov rcx, r13
lea r9, [rcx + rdx]
mov edx, 0x1b
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036280]
call fcn.1400012b0
lea r9, [rbp - 0x30]
mov qword [rbp - 0x50], r13
lea r8, [rbp - 0x28]
mov edx, reloc.ProximityCommon.dll_Ordinal_22
lea rcx, str.Windows.Foundation.Uri
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference]
test eax, eax
jns 0x14000e753
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000000d
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_RaiseException]
mov rcx, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x30]
test rcx, rcx
je 0x14000e771
mov qword [rbp - 0x50], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
lea r8, [rbp - 0x50]
mov rcx, rdi
lea rdx, [0x140035580]
call qword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoGetActivationFactory]
mov edi, eax
test eax, eax
js 0x14000e85c
or rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], r13w
jne 0x14000e793
mov ecx, 0xffffffff
cmp rax, rcx
mov edi, ecx
cmovbe edi, eax
jbe 0x14000e7c1
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000000d
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_RaiseException]
lea r9, [rbp - 0x30]
mov edx, edi
lea r8, [rbp - 0x28]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference]
mov rcx, qword [rbp - 0x50]
lea r8, [rbp - 0x48]
mov rdx, qword [rbp - 0x30]
mov qword [rbp - 0x48], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x140034e68]
mov edi, eax
test eax, eax
js 0x14000e842
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x40], r13
call fcn.14000e420
mov edi, eax
test eax, eax
js 0x14000e833
mov rcx, qword [rbp - 0x40]
call fcn.14000e06c
mov edi, eax
test eax, eax
jns 0x14000e833
mov rcx, r15
cmp eax, 0x80004004
jne 0x14000e82e
call fcn.140010b00
jmp 0x14000e833
call fcn.140010a80
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14000e842
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000e85c
mov qword [rbp - 0x48], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14000e8af
test byte [rcx + 0x1c], 1
je 0x14000e8af
mov eax, dword [rsi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14000e889
mov eax, edx
sub r14, rax
jmp 0x14000e88c
mov r14, r13
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r14
mov dword [rsp + 0x20], edi
mov edx, 0x1c
lea r8, [0x140036280]
call fcn.140001304
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000e8c9
mov qword [rbp - 0x50], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov eax, 0xffffffff
add dword [rsi], eax
cmp ebx, eax
je 0x14000e8eb
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14000e8eb
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400304d0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret