Function at 0x140054600
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
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rdi, rcx
xor r15d, r15d
mov dword [rbp + 0xd0], r15d
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea rbx, str.secc::CUITaskManager::InitTaskModuleMap
mov qword [rbp + 0x18], rbx
mov edx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
add edx, eax
je 0x1400546c8
mov dword [rsp + 0x48], r15d
call fcn.140005ad0
mov qword [rsp + 0x40], rax
lock inc dword [rsp + 0x48]
mov dword [rbp + 0xd0], 1
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x140054684
call fcn.140005ad0
mov qword [rsp + 0x40], rax
lock inc dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov dword [rbp + 0xd8], 0x20
mov qword [rsp + 0x30], rbx
lea rax, str._s_start:
mov qword [rsp + 0x28], rax
lea rax, str._CScopeTrace::operator___
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp + 0xd8]
movsx edx, r15w
call fcn.140004c90
nop
mov eax, dword [rbp + 0xd0]
test al, 1
je 0x14005470a
and eax, 0xfffffffe
mov dword [rbp + 0xd0], eax
mov qword [rsp + 0x40], r15
mov eax, 0xffffffff
lock xadd dword [rsp + 0x48], eax
cmp eax, 1
js 0x140054705
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rsp + 0x48], eax
cmp eax, 1
jns 0x1400546f0
lock inc dword [rsp + 0x48]
mov rax, qword [0x1401c0ff8]
cmp eax, 0xffffffff
je 0x14005472a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov rax, qword [0x1401c0ff8]
jmp 0x140054730
mov ecx, dword [0x1401c0ffc]
lea edx, [rcx + 1]
cmp eax, 0xffffffff
je 0x140054743
movsxd rdx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, r15d
mov dword [rsp + 0x70], r15d
lea r14, [rdi + 0xa8]
mov qword [rsp + 0x68], r14
test r14, r14
je 0x14005476e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 1
mov dword [rsp + 0x70], esi
add rdi, 0x110
mov rbx, qword [rdi]
mov r8, qword [rbx + 8]
mov rdx, rdi
mov rcx, rdi
call fcn.140040ea0
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rdi + 8], r15
mov dword [rbp + 0xe0], 0x7a
mov rbx, qword [rdi]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r15d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400547ea
nop word [rax + rax]
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x20], 0x7a
jae 0x1400547d6
mov dword [rsp + 0x58], r15d
mov rax, qword [rax + 0x10]
jmp 0x1400547e4
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400547c0
movabs r12, 0x38e38e38e38e38e
cmp byte [rcx + 0x19], 0
jne 0x140054800
cmp dword [rcx + 0x20], 0x7a
jbe 0x14005486b
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], r15
lfence
mov ecx, 0x48
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
nop
mov ecx, dword [rbp + 0xe0]
mov dword [rax + 0x20], ecx
mov qword [rax + 0x28], r15
mov qword [rax + 0x38], r15
mov qword [rax + 0x40], 7
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0x80], xmm0
mov r8, rax
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.140019770
mov rcx, rax
mov esi, dword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
add rcx, 0x28
mov r8d, 2
lea rdx, [0x140186780]
call fcn.140002f20
mov dword [rbp + 0xe8], 0x12
mov rbx, qword [rdi]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r15d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400548cf
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x20], 0x12
jae 0x1400548bb
mov dword [rsp + 0x58], r15d
mov rax, qword [rax + 0x10]
jmp 0x1400548c9
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400548a5
cmp byte [rcx + 0x19], 0
jne 0x1400548db
cmp dword [rcx + 0x20], 0x12
jbe 0x14005494a
cmp qword [rdi + 8], r12
je 0x140054feb
mov qword [rbp - 8], rdi
mov qword [rbp], r15
lfence
mov ecx, 0x48
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
nop
mov ecx, dword [rbp + 0xe8]
mov dword [rax + 0x20], ecx
mov qword [rax + 0x28], r15
mov qword [rax + 0x38], r15
mov qword [rax + 0x40], 7
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0x40], xmm0
mov r8, rax
lea rdx, [rbp + 0x40]
mov rcx, rdi
call fcn.140019770
mov rcx, rax
mov esi, dword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
add rcx, 0x28
mov r8d, 2
lea rdx, [0x140186780]
call fcn.140002f20
mov dword [rbp - 0x18], 0x15
mov rbx, qword [rdi]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r15d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x1400549ab
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x20], 0x15
jae 0x140054997
mov dword [rsp + 0x58], r15d
mov rax, qword [rax + 0x10]
jmp 0x1400549a5
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140054981
cmp byte [rcx + 0x19], 0
jne 0x1400549b7
cmp dword [rcx + 0x20], 0x15
jbe 0x140054a23
cmp qword [rdi + 8], r12
je 0x140054ff1
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], r15
lfence
mov ecx, 0x48
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
nop
mov ecx, dword [rbp - 0x18]
mov dword [rax + 0x20], ecx
mov qword [rax + 0x28], r15
mov qword [rax + 0x38], r15
mov qword [rax + 0x40], 7
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0x50], xmm0
mov r8, rax
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.140019770
mov rcx, rax
mov esi, dword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
add rcx, 0x28
mov r8d, 2
lea rdx, [0x140186780]
call fcn.140002f20
mov dword [rbp - 0x14], 0x19
mov rbx, qword [rdi]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r15d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x140054a8a
nop word [rax + rax]
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x20], 0x19
jae 0x140054a76
mov dword [rsp + 0x58], r15d
mov rax, qword [rax + 0x10]
jmp 0x140054a84
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140054a60
cmp byte [rcx + 0x19], 0
jne 0x140054a96
cmp dword [rcx + 0x20], 0x19
jbe 0x140054b02
cmp qword [rdi + 8], r12
je 0x140054fe5
mov qword [rbp + 0x60], rdi
mov qword [rbp + 0x68], r15
lfence
mov ecx, 0x48
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
nop
mov ecx, dword [rbp - 0x14]
mov dword [rax + 0x20], ecx
mov qword [rax + 0x28], r15
mov qword [rax + 0x38], r15
mov qword [rax + 0x40], 7
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0x70], xmm0
mov r8, rax
lea rdx, [rbp + 0x70]
mov rcx, rdi
call fcn.140019770
mov rcx, rax
mov esi, dword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
add rcx, 0x28
mov r8d, 2
lea rdx, [0x140186780]
call fcn.140002f20
mov dword [rsp + 0x78], 0x1e
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186780]
mov rcx, rax
call fcn.140002f20
mov dword [rsp + 0x7c], 0x12c
lea rdx, [rsp + 0x7c]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186780]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x80], 0x64
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186788]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x40], 0x65
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186788]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x7c], 0x66
lea rdx, [rbp - 0x7c]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186788]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x78], 0x67
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186788]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x74], 0x68
lea rdx, [rbp - 0x74]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186788]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x70], 0x6d
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186788]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x6c], 3
lea rdx, [rbp - 0x6c]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b6c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x68], 7
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b6c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x64], 8
lea rdx, [rbp - 0x64]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b6c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x60], 9
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b6c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x5c], 0xa
lea rdx, [rbp - 0x5c]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b6c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x58], 0xb
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b6c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x54], 0x14
lea rdx, [rbp - 0x54]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b74]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x50], 0x78
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b7c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x4c], 0x79
lea rdx, [rbp - 0x4c]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b7c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x48], 0x46
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b84]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x44], 0x47
lea rdx, [rbp - 0x44]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b84]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x10], 0x48
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b84]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x3c], 0x45
lea rdx, [rbp - 0x3c]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b84]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x38], 0x8c
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b84]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x34], 0x8d
lea rdx, [rbp - 0x34]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b84]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x30], 0x3c
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b8c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x2c], 0xfa
lea rdx, [rbp - 0x2c]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b94]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x28], 0x15e
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186b9c]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x24], 0x21
lea rdx, [rbp - 0x24]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186780]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x20], 0x259
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186ba4]
mov rcx, rax
call fcn.140002f20
mov dword [rbp - 0x1c], 0x25a
lea rdx, [rbp - 0x1c]
mov rcx, rdi
call fcn.1400679f0
mov r8d, 2
lea rdx, [0x140186ba4]
mov rcx, rax
call fcn.140002f20
nop
mov ebx, esi
test esi, esi
jle 0x140054fca
nop dword [rax + rax]
test r14, r14
je 0x140054fc4
test esi, esi
jle 0x140054fc4
dec esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec ebx
test ebx, ebx
jg 0x140054fb0
lea rcx, [rbp + 0x18]
call fcn.140032660
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000b540
nop
call fcn.14000b540
int3
call fcn.14000b540
int3