Function at 0x14004d540
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 [0x1401993f8]
mov eax, dword [0x1401993fc]
add edx, eax
je 0x14004d608
mov dword [rsp + 0x48], r15d
call fcn.1400057e0
mov qword [rsp + 0x40], rax
lock inc dword [rsp + 0x48]
mov dword [rbp + 0xd0], 1
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x14004d5c4
call fcn.1400057e0
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.140004bd0
nop
mov eax, dword [rbp + 0xd0]
test al, 1
je 0x14004d64a
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 0x14004d645
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x48], eax
cmp eax, 1
jns 0x14004d630
lock inc dword [rsp + 0x48]
mov rax, qword [0x140198db8]
cmp eax, 0xffffffff
je 0x14004d66a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov rax, qword [0x140198db8]
jmp 0x14004d670
mov ecx, dword [0x140198dbc]
lea edx, [rcx + 1]
cmp eax, 0xffffffff
je 0x14004d683
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 0x14004d6ae
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.14003afc0
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 0x14004d72a
nop word [rax + rax]
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x20], 0x7a
jae 0x14004d716
mov dword [rsp + 0x58], r15d
mov rax, qword [rax + 0x10]
jmp 0x14004d724
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004d700
movabs r12, 0x38e38e38e38e38e
cmp byte [rcx + 0x19], 0
jne 0x14004d740
cmp dword [rcx + 0x20], 0x7a
jbe 0x14004d7ab
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.14001eb80
mov rcx, rax
mov esi, dword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
add rcx, 0x28
mov r8d, 2
lea rdx, [0x140164bf4]
call fcn.140002ed0
mov dword [rbp + 0xe8], Ordinal_21
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 0x14004d80f
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x20], 0x12
jae 0x14004d7fb
mov dword [rsp + 0x58], r15d
mov rax, qword [rax + 0x10]
jmp 0x14004d809
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004d7e5
cmp byte [rcx + 0x19], 0
jne 0x14004d81b
cmp dword [rcx + 0x20], 0x12
jbe 0x14004d88a
cmp qword [rdi + 8], r12
je 0x14004df2b
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.14001eb80
mov rcx, rax
mov esi, dword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
add rcx, 0x28
mov r8d, 2
lea rdx, [0x140164bf4]
call fcn.140002ed0
mov dword [rbp - 0x18], reloc.bdusers.dll_Ordinal_21
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 0x14004d8eb
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x20], 0x15
jae 0x14004d8d7
mov dword [rsp + 0x58], r15d
mov rax, qword [rax + 0x10]
jmp 0x14004d8e5
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004d8c1
cmp byte [rcx + 0x19], 0
jne 0x14004d8f7
cmp dword [rcx + 0x20], 0x15
jbe 0x14004d963
cmp qword [rdi + 8], r12
je 0x14004df31
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.14001eb80
mov rcx, rax
mov esi, dword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
add rcx, 0x28
mov r8d, 2
lea rdx, [0x140164bf4]
call fcn.140002ed0
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 0x14004d9ca
nop word [rax + rax]
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x20], 0x19
jae 0x14004d9b6
mov dword [rsp + 0x58], r15d
mov rax, qword [rax + 0x10]
jmp 0x14004d9c4
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004d9a0
cmp byte [rcx + 0x19], 0
jne 0x14004d9d6
cmp dword [rcx + 0x20], 0x19
jbe 0x14004da42
cmp qword [rdi + 8], r12
je 0x14004df25
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.14001eb80
mov rcx, rax
mov esi, dword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
add rcx, 0x28
mov r8d, 2
lea rdx, [0x140164bf4]
call fcn.140002ed0
mov dword [rsp + 0x78], 0x1e
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164bf4]
mov rcx, rax
call fcn.140002ed0
mov dword [rsp + 0x7c], 0x12c
lea rdx, [rsp + 0x7c]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164bf4]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x80], 0x64
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d4c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x40], 0x65
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d4c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x7c], 0x66
lea rdx, [rbp - 0x7c]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d4c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x78], 0x67
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d4c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x74], 0x68
lea rdx, [rbp - 0x74]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d4c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x70], 0x6d
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d4c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x6c], 3
lea rdx, [rbp - 0x6c]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d44]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x68], 7
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d44]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x64], 8
lea rdx, [rbp - 0x64]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d44]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x60], 9
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d44]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x5c], 0xa
lea rdx, [rbp - 0x5c]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d44]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x58], 0xb
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d44]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x54], reloc.bdusers.dll_Ordinal_20
lea rdx, [rbp - 0x54]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d5c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x50], 0x78
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d54]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x4c], 0x79
lea rdx, [rbp - 0x4c]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d54]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x48], 0x46
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d2c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x44], 0x47
lea rdx, [rbp - 0x44]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d2c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x10], 0x48
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d2c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x3c], 0x45
lea rdx, [rbp - 0x3c]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d2c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x38], 0x8c
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d2c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x34], 0x8d
lea rdx, [rbp - 0x34]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d2c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x30], 0x3c
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d24]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x2c], 0xfa
lea rdx, [rbp - 0x2c]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d3c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x28], 0x15e
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164d34]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x24], 0x21
lea rdx, [rbp - 0x24]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164bf4]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x20], 0x259
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164f0c]
mov rcx, rax
call fcn.140002ed0
mov dword [rbp - 0x1c], 0x25a
lea rdx, [rbp - 0x1c]
mov rcx, rdi
call fcn.14005c080
mov r8d, 2
lea rdx, [0x140164f0c]
mov rcx, rax
call fcn.140002ed0
nop
mov ebx, esi
test esi, esi
jle 0x14004df0a
nop dword [rax + rax]
test r14, r14
je 0x14004df04
test esi, esi
jle 0x14004df04
dec esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec ebx
test ebx, ebx
jg 0x14004def0
lea rcx, [rbp + 0x18]
call fcn.14002f940
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000a300
nop
call fcn.14000a300
int3
call fcn.14000a300
int3