Function at 0x14001d80c
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 r14, rcx
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 0x14001d851
mov ebx, dword [0x14003d17c]
lea rdx, [rbp - 8]
and dword [rbp - 8], eax
lea rsi, [rbp - 8]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rsi]
mov eax, dword [rsi]
mov rcx, qword [0x14003d048]
lea rdi, [0x14003d048]
lea r12, [0x140035650]
mov r15d, 0x1df
cmp rcx, rdi
je 0x14001d8b7
test byte [rcx + 0x1c], 1
je 0x14001d8b7
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001d890
mov eax, edx
mov edx, r15d
sub rdx, rax
jmp 0x14001d892
xor edx, edx
mov rcx, qword [rcx + 0x10]
lea r9, [rdx + r12]
mov edx, 0x33
mov qword [rsp + 0x20], r14
lea r8, [0x140036cb8]
call fcn.140001370
mov rcx, qword [0x14003d048]
cmp byte [r14 + 0x134], 0
je 0x14001db1c
mov edx, dword [r14 + 0x40]
xor r8d, r8d
mov qword [rbp + 0x48], r8
test edx, edx
je 0x14001d90a
cmp dword [r14 + 0x44], r8d
jl 0x14001dafb
mov rcx, qword [0x14003da90]
lea r9, [rbp + 0x48]
lea r8, [0x140036570]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov r8, qword [rbp + 0x48]
mov rcx, qword [0x14003d048]
jmp 0x14001d90f
mov eax, 0x80070057
test eax, eax
js 0x14001dafb
and qword [rbp + 0x50], 0
lea rdx, [rbp + 0x50]
mov rax, qword [r8]
mov rcx, r8
mov rax, qword [rax + 0x30]
call qword [0x140034e68]
test eax, eax
js 0x14001dad5
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x40]
and qword [rbp + 0x40], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x140034e68]
test eax, eax
js 0x14001daba
mov rcx, qword [rbp + 0x40]
lea rdx, [rbp - 0x10]
and qword [rbp - 0x10], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x140034e68]
test eax, eax
js 0x14001daab
mov rcx, qword [rbp - 0x10]
xor edx, edx
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
lea rcx, str.eSendContentTitle
mov rdi, rax
call qword [sym.imp.DUI70.dll_StrToID]
mov rcx, qword [r14 + 0x50]
movzx edx, ax
call qword [sym.imp.DUI70.dll_public:_class_DirectUI::Element____ptr64___cdecl_DirectUI::Element::FindDescendent_unsigned_short_int____ptr64]
xor edx, edx
mov rcx, rdi
mov r12, rax
call qword [sym.imp.DUI70.dll_public:_static_class_DirectUI::Value____ptr64___cdecl_DirectUI::Value::CreateString_unsigned_short_int_const____ptr64__struct_HINSTANCE______ptr64_]
mov rdi, rax
test rax, rax
je 0x14001d9f6
mov rdx, qword [sym.imp.DUI70.dll_public:_static_struct_DirectUI::PropertyInfo_const____ptr64___cdecl_DirectUI::Element::ContentProp_void_]
mov r9, rax
mov r8d, 1
mov rcx, r12
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::Element::SetValue_struct_DirectUI::PropertyInfo_const____ptr64____cdecl___void___int__class_DirectUI::Value____ptr64____ptr64]
mov ecx, dword [rdi]
mov edx, 0xffffff80
and ecx, edx
cmp ecx, edx
je 0x14001d9f6
mov eax, edx
lock xadd dword [rdi], eax
add eax, edx
test edx, eax
jne 0x14001d9f6
mov rcx, rdi
call qword [sym.imp.DUI70.dll_private:_void___cdecl_DirectUI::Value::_ZeroRelease_void____ptr64]
mov rcx, qword [rbp + 0x40]
lea rdx, [rbp + 0x58]
and qword [rbp + 0x58], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [0x140034e68]
test eax, eax
js 0x14001da8e
mov rcx, qword [rbp + 0x58]
xor edx, edx
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
lea rcx, str.eSendContentDescription
mov rdi, rax
call qword [sym.imp.DUI70.dll_StrToID]
mov rcx, qword [r14 + 0x50]
movzx edx, ax
call qword [sym.imp.DUI70.dll_public:_class_DirectUI::Element____ptr64___cdecl_DirectUI::Element::FindDescendent_unsigned_short_int____ptr64]
xor edx, edx
mov rcx, rdi
mov r12, rax
call qword [sym.imp.DUI70.dll_public:_static_class_DirectUI::Value____ptr64___cdecl_DirectUI::Value::CreateString_unsigned_short_int_const____ptr64__struct_HINSTANCE______ptr64_]
mov rdi, rax
test rax, rax
je 0x14001da8e
mov rdx, qword [sym.imp.DUI70.dll_public:_static_struct_DirectUI::PropertyInfo_const____ptr64___cdecl_DirectUI::Element::ContentProp_void_]
mov r9, rax
mov r8d, 1
mov rcx, r12
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::Element::SetValue_struct_DirectUI::PropertyInfo_const____ptr64____cdecl___void___int__class_DirectUI::Value____ptr64____ptr64]
mov ecx, dword [rdi]
mov eax, 0xffffff80
and ecx, eax
cmp ecx, eax
je 0x14001da8e
mov ecx, eax
lock xadd dword [rdi], ecx
add ecx, eax
test eax, ecx
jne 0x14001da8e
mov rcx, rdi
call qword [sym.imp.DUI70.dll_private:_void___cdecl_DirectUI::Value::_ZeroRelease_void____ptr64]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14001da9d
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
lea r12, [0x140035650]
lea rdi, [0x14003d048]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001daba
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001dad5
and qword [rbp + 0x40], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14001daf0
and qword [rbp + 0x50], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [0x14003d048]
mov r8, qword [rbp + 0x48]
test r8, r8
je 0x14001db1c
and qword [rbp + 0x48], 0
mov rcx, r8
mov rax, qword [r8]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rcx, qword [0x14003d048]
cmp rcx, rdi
je 0x14001db5c
test byte [rcx + 0x1c], 1
je 0x14001db5c
mov eax, dword [rsi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001db3b
mov eax, edx
sub r15, rax
jmp 0x14001db3e
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [r15 + r12]
mov edx, 0x34
mov qword [rsp + 0x20], r14
lea r8, [0x140036cb8]
call fcn.140001370
dec dword [rsi]
cmp ebx, 0xffffffff
je 0x14001db7a
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001db7a
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret