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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or edi, 0xffffffff
mov rsi, rax
mov ebx, edi
test rax, rax
jne 0x14001c92d
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x80]
and dword [rsp + 0x80], eax
lea rsi, [rsp + 0x80]
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 r10, qword [0x14003d048]
lea r12, [0x14003d048]
lea r13, [0x140035650]
mov r15d, 0x1df
cmp r10, r12
je 0x14001c98d
test byte [r10 + 0x1c], 1
je 0x14001c98d
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001c96d
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14001c96f
xor ecx, ecx
lea r9, [rcx + r13]
mov qword [rsp + 0x20], r14
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036cb8]
mov edx, 0x28
call fcn.140001370
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.DUI70.dll_public:_static_long_int___cdecl_DirectUI::DUIXmlParser::Create_class_DirectUI::DUIXmlParser____ptr64____ptr64__class_DirectUI::Value____ptr64____cdecl___unsigned_short_int_const____ptr64__void____ptr64___void____ptr64__void____cdecl___unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__int__void____ptr64___void____ptr64_]
mov ebp, eax
test eax, eax
js 0x14001cafc
mov r8, qword [0x14003d810]
xor r9d, r9d
mov rcx, qword [rsp + 0x78]
mov edx, 0x44d
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::DUIXmlParser::SetXMLFromResource_unsigned_int__struct_HINSTANCE______ptr64__struct_HINSTANCE______ptr64____ptr64]
mov ebp, eax
test eax, eax
js 0x14001caf1
cmp byte [r14 + 0x134], 0
lea rax, str.TapToSend_Send
mov rcx, qword [rsp + 0x78]
lea rdx, str.TapToSend_Receive
cmovne rdx, rax
lea r12, [r14 + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], r12
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::DUIXmlParser::CreateElement_unsigned_short_int_const____ptr64__class_DirectUI::Element____ptr64__class_DirectUI::Element____ptr64__unsigned_long_int____ptr64__class_DirectUI::Element____ptr64____ptr64____ptr64]
mov ebp, eax
test eax, eax
js 0x14001caea
mov rcx, qword [r12]
lea rdx, [r14 + 0x10]
call qword [sym.imp.DUI70.dll_public:_long_int___cdecl_DirectUI::Element::AddListener_struct_DirectUI::IElementListener____ptr64____ptr64]
mov ebp, eax
test eax, eax
js 0x14001caea
mov r13, qword [r12]
mov cl, 1
call qword [sym.imp.DUI70.dll_public:_static_class_DirectUI::Value____ptr64___cdecl_DirectUI::Value::CreateBool_bool_]
mov rdi, rax
test rax, rax
je 0x14001ca7f
mov rdx, qword [sym.imp.DUI70.dll_public:_static_struct_DirectUI::PropertyInfo_const____ptr64___cdecl_DirectUI::Element::AccessibleProp_void_]
mov r9, rax
mov r8d, 1
mov rcx, r13
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 0x14001ca7f
mov eax, edx
lock xadd dword [rdi], eax
add eax, edx
test edx, eax
jne 0x14001ca7f
mov rcx, rdi
call qword [sym.imp.DUI70.dll_private:_void___cdecl_DirectUI::Value::_ZeroRelease_void____ptr64]
lea rcx, str.eProgressBar
call qword [sym.imp.DUI70.dll_StrToID]
mov rcx, qword [r12]
movzx edx, ax
call qword [sym.imp.DUI70.dll_public:_class_DirectUI::Element____ptr64___cdecl_DirectUI::Element::FindDescendent_unsigned_short_int____ptr64]
xor r12d, r12d
mov r13, rax
test rax, rax
je 0x14001cadc
mov rcx, qword [rax]
mov rax, qword [rcx + 0x118]
mov rcx, r13
call qword [0x140034e68]
mov rdi, rax
call qword [sym.imp.DUI70.dll_public:_static_struct_DirectUI::IClassInfo____ptr64___cdecl_DirectUI::ModernProgressBar::GetClassInfoPtr_void_]
mov rcx, qword [rdi]
mov rdx, rax
mov r8, qword [rcx + 0x50]
mov rcx, rdi
mov rax, r8
call qword [0x140034e68]
test al, al
cmovne r12, r13
mov qword [r14 + 0x68], r12
lea r13, [0x140035650]
or edi, 0xffffffff
lea r12, [0x14003d048]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.DUI70.dll_public:_void___cdecl_DirectUI::DUIXmlParser::Destroy_void____ptr64]
mov rcx, qword [0x14003d048]
cmp rcx, r12
je 0x14001cb47
test byte [rcx + 0x1c], 1
je 0x14001cb47
mov eax, dword [rsi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001cb22
mov eax, edx
sub r15, rax
jmp 0x14001cb25
xor r15d, r15d
mov rcx, qword [rcx + 0x10]
lea r9, [r15 + r13]
mov edx, 0x29
mov dword [rsp + 0x28], ebp
lea r8, [0x140036cb8]
mov qword [rsp + 0x20], r14
call fcn.140001730
add dword [rsi], edi
cmp ebx, edi
je 0x14001cb64
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001cb64
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, ebp
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret