Function at 0x14001bfdc
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400382f0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, rdx
mov r14, rcx
lea rax, vtable.std::_Func_impl_class__lambda_701992cd54336967b334c5b58053aba8___class_std::allocator_int___void___.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x78]
call fcn.14000d654
mov rbx, rax
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140039204]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test eax, eax
jg 0x14001c158
mov ecx, dword [0x1400391fc]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
jne 0x14001c091
mov edx, 0x8000ffff
lea rcx, [rbp - 0x38]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rbp - 0x38]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
lea rcx, [0x140038f10]
call fcn.14001afa0
call fcn.14001b6a8
mov rsi, rax
mov qword [rsp + 0x78], rax
lea rcx, [rax + 0x10]
mov qword [rbp - 0x80], rcx
mov rcx, qword [rax]
mov rax, qword [rcx + 0x10]
mov rcx, rsi
call qword [0x140021e20]
nop
call fcn.14001b154
mov ecx, dword [0x1400391fc]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
lea rdi, [rax + 0x10]
cmp rdi, rbx
je 0x14001c147
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14001c0fe
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
mov rax, qword [rax + 0x20]
call qword [0x140021e20]
and qword [rdi + 0x38], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001c147
cmp rcx, rbx
jne 0x14001c13e
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 8]
call qword [0x140021e20]
mov qword [rdi + 0x38], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001c147
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
mov rax, qword [rax + 0x20]
call qword [0x140021e20]
jmp 0x14001c142
mov qword [rdi + 0x38], rcx
and qword [rbx + 0x38], 0
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [0x140021e20]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001c179
cmp rcx, rbx
mov rax, qword [rcx]
setne dl
mov rax, qword [rax + 0x20]
call qword [0x140021e20]
and qword [rbx + 0x38], 0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001c1a1
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [0x140021e20]
and qword [rsp + 0x68], 0
mov rcx, qword [0x140038f20]
test rcx, rcx
je 0x14001c1c0
movabs rax, 0x346dc5d63886594b
mul qword [rcx]
shr rdx, 0xb
jmp 0x14001c1c3
or edx, 0xffffffff
xor r9d, r9d
mov r8d, edx
mov rdx, r15
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SleepConditionVariableSRW]
test eax, eax
jne 0x14001c289
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x5b4
jne 0x14001c25b
mov ecx, dword [0x1400391fc]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001c254
call fcn.14001b6a8
mov rdi, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x10]
mov rcx, rdi
call qword [0x140021e20]
mov ecx, dword [0x1400391fc]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
lea rbx, [rax + 0x10]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001c244
mov r8, qword [rcx]
cmp rcx, rbx
setne dl
mov rax, qword [r8 + 0x20]
call qword [0x140021e20]
and qword [rbx + 0x38], 0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [0x140021e20]
xor al, al
jmp 0x14001c2f5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
lea rcx, [rbp - 0x10]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
nop
mov ecx, dword [0x1400391fc]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001c2f3
call fcn.14001b6a8
mov rdi, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x10]
mov rcx, rdi
call qword [0x140021e20]
mov ecx, dword [0x1400391fc]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
lea rbx, [rax + 0x10]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001c2e3
mov r8, qword [rcx]
cmp rcx, rbx
setne dl
mov rax, qword [r8 + 0x20]
call qword [0x140021e20]
and qword [rbx + 0x38], 0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [0x140021e20]
mov al, 1
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14001c630
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret