Function at 0x140106420
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
lea rbp, [rsp - 0xa80]
sub rsp, 0xb80
mov rax, qword [0x140191010]
xor rax, rsp
mov qword [rbp + 0xa70], rax
mov esi, edx
mov r14, rcx
mov qword [rbp], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea rbx, [0x1401597f0]
mov qword [rbp - 0x80], rbx
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
lea r12, [0x140000000]
add ecx, eax
je 0x1401064ff
mov dword [rsp + 0x50], r15d
call fcn.1400057e0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1401064c3
call fcn.1400057e0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x78], 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
mov r9, r12
lea r8, [rsp + 0x78]
movsx edx, r15w
call fcn.140004bd0
nop
mov edi, dword [rsp + 0x40]
test dil, 2
je 0x140106543
and edi, 0xfffffffd
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], r15
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
js 0x14010653a
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
jns 0x140106525
lock inc dword [rsp + 0x50]
mov edi, dword [rsp + 0x40]
mov rax, qword [0x140198db8]
cmp eax, 0xffffffff
je 0x140106563
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov rax, qword [0x140198db8]
jmp 0x140106569
mov ecx, dword [0x140198dbc]
lea edx, [rcx + 1]
cmp eax, 0xffffffff
je 0x14010657c
movsxd rdx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [r14], r15
or edi, 1
mov dword [rsp + 0x40], edi
mov ebx, 0x208
mov r8d, ebx
lea rdx, [rbp + 0x250]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x206
ja 0x140106cd7
test esi, esi
js 0x140106751
mov eax, 0x22
cmp ax, word [rbp + 0x250]
je 0x140106631
lea r9, [rbp + 0x250]
lea r8, [0x140159930]
mov edx, ebx
lea rcx, [rbp + 0x660]
call fcn.140046b90
test eax, eax
js 0x140106751
mov r8d, ebx
lea rcx, [rbp + 0x250]
lea rdx, [rbp + 0x660]
lea rax, [rbp + 0x250]
sub rdx, rax
nop
lea rax, [r8 + 0x7ffffdf6]
test rax, rax
je 0x140106622
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140106622
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x140106600
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], r15w
lfence
mov r9d, esi
lea r8, str.crash_d
mov edx, 0x20
lea rcx, [rbp + 0x210]
call fcn.140046b90
test eax, eax
js 0x14010674d
mov rcx, rbx
lea rax, [rbp + 0x250]
cmp word [rax], 0
je 0x140106671
add rax, 2
sub rcx, 1
jne 0x140106661
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, r15
mov r8d, 0x7ffffffe
je 0x1401066d6
mov rdx, rbx
sub rdx, rax
lea rcx, [rbp + 0x250]
lea rcx, [rcx + rax*2]
je 0x1401066c7
mov eax, r8d
lea r10, [0x140142794]
sub r10, rcx
test rax, rax
je 0x1401066c7
movzx r9d, word [r10 + rcx]
test r9w, r9w
je 0x1401066c7
mov word [rcx], r9w
add rcx, 2
dec rax
sub rdx, 1
jne 0x1401066a6
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r15w
mov rcx, rbx
lea rax, [rbp + 0x250]
cmp word [rax], 0
je 0x1401066f0
add rax, 2
sub rcx, 1
jne 0x1401066e0
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, r15
je 0x14010674d
sub rbx, rax
lea rcx, [rbp + 0x250]
lea rcx, [rcx + rax*2]
je 0x14010673e
lea rdx, [rbp + 0x210]
sub rdx, rcx
nop dword [rax]
test r8, r8
je 0x14010673e
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14010673e
mov word [rcx], ax
add rcx, 2
dec r8
sub rbx, 1
jne 0x140106720
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], r15w
mov edi, dword [rsp + 0x40]
lea rax, [r12 + 0x160500]
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
or edi, 8
mov dword [rsp + 0x40], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x118]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x118]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0x118], r13
mov rax, qword [rbp + 0x118]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x114], edx
lea rcx, [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea r12, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0x120], r12
mov qword [rbp + 0x188], r15
mov dword [rbp + 0x190], 4
mov rax, qword [rbp + 0x118]
movsxd rcx, dword [rax + 4]
lea rax, vtable.logger_stream.0
mov qword [rbp + rcx + 0x118], rax
mov rax, qword [rbp + 0x118]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x114], edx
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x140106881
mov dword [rsp + 0x60], r15d
call fcn.1400057e0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
or dword [rsp + 0x40], 0x20
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x140106862
call fcn.1400057e0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x140106881
mov rax, qword [rax + 0x58]
test rax, rax
je 0x140106881
call qword [case.0x14006aed5.0]
movzx ebx, al
jmp 0x140106883
xor bl, bl
mov edi, dword [rsp + 0x40]
test dil, 0x20
je 0x1401068ce
and edi, 0xffffffdf
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x58], r15
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
js 0x1401068c5
nop dword [rax]
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x1401068b0
lock inc dword [rsp + 0x60]
mov edi, dword [rsp + 0x40]
mov byte [rbp + 0x198], bl
mov dword [rbp + 0x19c], Ordinal_21
lea rax, str.CSecurityCenterApp::LoadCrashHandler
mov qword [rbp + 0x1a0], rax
or edi, 4
mov dword [rsp + 0x40], edi
test bl, bl
je 0x140106929
lea rdx, str.restart_path_for_seccenter:
lea rcx, [rbp + 0x118]
call fcn.140005f70
movzx ebx, byte [rbp + 0x198]
test bl, bl
je 0x140106929
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x118]
call fcn.140006200
nop
lea rcx, [rbp + 0x1b0]
call fcn.140004c30
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov byte [rbp - 0x70], 0
lea rax, [rbp + 0x250]
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
mov byte [rbp - 8], 0
mov ecx, 0x78
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov rbx, rax
mov qword [rbp + 8], rax
test rax, rax
je 0x140106a3d
mov byte [rax], 0
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r15
mov byte [rax + 0x68], 0
mov dword [rax + 0x70], r15d
lea rcx, [rbp - 0x70]
call fcn.140051dd0
mov dword [rbx + 0x70], eax
movzx eax, byte [rbp - 0x70]
mov byte [rbx], al
mov rax, qword [rbp - 0x68]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 0x60]
mov qword [rbx + 0x10], rax
mov rax, qword [rbp - 0x58]
mov qword [rbx + 0x18], rax
mov rax, qword [rbp - 0x50]
mov qword [rbx + 0x20], rax
lea rsi, [rbx + 0x28]
movzx eax, byte [rsi + 0x40]
cmp byte [rbp - 8], 0
je 0x140106a13
test al, al
je 0x1401069e9
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.140002440
jmp 0x140106a3b
mov qword [rbp + 0x10], rsi
mov qword [rsi + 0x38], r15
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140106a0d
mov rax, qword [rcx]
mov rdx, rsi
mov rax, qword [rax]
call qword [case.0x14006aed5.0]
mov qword [rsi + 0x38], rax
mov byte [rsi + 0x40], 1
jmp 0x140106a3b
test al, al
je 0x140106a3b
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140106a37
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14006aed5.0]
mov qword [rsi + 0x38], r15
mov byte [rsi + 0x40], 0
jmp 0x140106a40
mov rbx, r15
or edi, 0x40
mov dword [rsp + 0x40], edi
lea rax, [rbp + 0x18]
cmp r14, rax
je 0x140106a93
mov rsi, qword [r14]
mov qword [r14], rbx
test rsi, rsi
je 0x140106ad8
mov rcx, qword [rsi + 0x20]
call fcn.1400522c0
lea r8, [rsi + 0x28]
cmp byte [rsi + 0x68], 0
je 0x140106a8e
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x140106a8e
mov rax, qword [rcx]
cmp rcx, r8
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14006aed5.0]
mov qword [rsi + 0x60], r15
mov rcx, rsi
jmp 0x140106ace
test rbx, rbx
je 0x140106ad8
mov rcx, qword [rbx + 0x20]
call fcn.1400522c0
lea rdx, [rbx + 0x28]
cmp byte [rbx + 0x68], 0
je 0x140106acb
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140106acb
mov rax, qword [rcx]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14006aed5.0]
mov qword [rbx + 0x60], r15
mov rcx, rbx
mov edx, 0x78
call fcn.140071e50
lea rax, [0x140000000]
lea rax, [rax + 0x160500]
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
bts edi, 8
mov dword [rsp + 0x40], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], r13
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x90], r15
mov dword [rbp + 0x98], 4
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.logger_stream.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x1c], edx
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x140106bdd
mov dword [rsp + 0x70], r15d
call fcn.1400057e0
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
or dword [rsp + 0x40], 0x400
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x140106bbe
call fcn.1400057e0
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x140106bdd
mov rax, qword [rax + 0x58]
test rax, rax
je 0x140106bdd
call qword [case.0x14006aed5.0]
movzx ebx, al
jmp 0x140106bdf
xor bl, bl
mov eax, dword [rsp + 0x40]
bt eax, 0xa
jae 0x140106c24
btr eax, 0xa
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x68], r15
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
js 0x140106c1b
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
jns 0x140106c06
lock inc dword [rsp + 0x70]
mov eax, dword [rsp + 0x40]
mov byte [rbp + 0xa0], bl
mov dword [rbp + 0xa4], Ordinal_21
lea rcx, [0x140159df0]
mov qword [rbp + 0xa8], rcx
bts eax, 7
mov dword [rsp + 0x40], eax
test bl, bl
je 0x140106c81
lea rdx, str.crash_handler_initialization_error0x
lea rcx, [rbp + 0x20]
call fcn.140006200
movzx ebx, byte [rbp + 0xa0]
test bl, bl
je 0x140106c81
lea rdx, [0x140040ac0]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
movzx ebx, byte [rbp + 0xa0]
mov rax, qword [r14]
test bl, bl
je 0x140106c96
mov edx, dword [rax + 0x70]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
nop
lea rcx, [rbp + 0xb8]
call fcn.140004c30
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
cmp byte [rbp - 8], 0
je 0x140106cd7
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140106cd7
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14006aed5.0]
nop
lea rcx, [rbp - 0x80]
call fcn.14002f940
mov rax, r14
mov rcx, qword [rbp + 0xa70]
xor rcx, rsp
call fcn.140071e30
mov rbx, qword [rsp + 0xbd0]
add rsp, 0xb80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret