Function at 0x1400233a4
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 - 0x27]
sub rsp, 0x90
mov r13, rcx
mov ecx, dword [0x14003d17c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov r15, rax
test rax, rax
jne 0x1400233f3
mov ebx, dword [0x14003d17c]
lea rdx, [rbp + 0x6f]
and dword [rbp + 0x6f], eax
lea r15, [rbp + 0x6f]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov edi, 1
add dword [r15], edi
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r12d, 0x1df
cmp r10, rax
je 0x140023459
test byte [r10 + 0x1c], dil
je 0x140023459
mov eax, dword [r15]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x140023439
mov eax, ecx
mov ecx, r12d
sub rcx, rax
jmp 0x14002343b
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], r13
mov rcx, qword [r10 + 0x10]
lea r8, [0x140036d18]
mov edx, 0xa
call fcn.140001370
mov rax, qword [r13 + 0x18]
lea rcx, [rbp - 0x11]
mov rdx, qword [0x14003d810]
mov dword [rax], edi
mov eax, 0x7d3
cmp dword [r13], edi
lea r14d, [rax + 4]
cmovne r14d, eax
and qword [rbp - 0x11], 0
and qword [rbp - 9], 0
mov eax, 0x7d1
and qword [rbp - 1], 0
cmp dword [r13], edi
lea r8d, [rax + 5]
cmovne r8d, eax
call fcn.1400239ec
and qword [rbp - 0x29], 0
mov esi, eax
and qword [rbp - 0x21], 0
and qword [rbp - 0x19], 0
test eax, eax
js 0x1400236b1
mov r9, qword [r13 + 0x10]
mov rdx, qword [0x14003d810]
test r9, r9
je 0x1400234f0
cmp dword [r13], 2
jne 0x1400234f9
and qword [rbp + 7], 0
lea rcx, [rbp + 7]
and qword [rbp + 0xf], 0
mov r8d, 0x7d5
and qword [rbp + 0x17], 0
call fcn.140023988
jmp 0x140023527
mov r9, qword [r13 + 8]
test r9, r9
je 0x140023509
mov r8d, r14d
lea rcx, [rbp - 0x29]
call fcn.140023988
mov esi, eax
jmp 0x140023557
and qword [rbp + 7], 0
lea rcx, [rbp + 7]
and qword [rbp + 0xf], 0
mov r8d, 0x7d2
and qword [rbp + 0x17], 0
call fcn.1400239ec
mov rdi, qword [rbp + 7]
mov esi, eax
test eax, eax
js 0x140023549
mov rdx, qword [0x14003d810]
lea rcx, [rbp - 0x29]
mov r9, rdi
mov r8d, r14d
call fcn.140023988
mov esi, eax
test rdi, rdi
je 0x140023557
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test esi, esi
js 0x1400236b1
and qword [rbp + 0x67], 0
lea rcx, [rbp + 0x67]
call fcn.14002ae00
mov rdi, qword [rbp + 0x67]
mov esi, eax
test eax, eax
js 0x14002369c
lea rdx, [0x140035918]
mov ecx, 0x40
call fcn.1400308a0
mov r14, rax
test rax, rax
je 0x1400235d0
and dword [r14 + 0x10], 0
lea rax, [0x1400333a8]
and dword [r14 + 0x14], 0
mov qword [r14], rax
mov dword [r14 + 8], 1
mov byte [r14 + 0xc], 0
and qword [r14 + 0x18], 0
and qword [r14 + 0x20], 0
and qword [r14 + 0x28], 0
and dword [r14 + 0x30], 0
and qword [r14 + 0x38], 0
jmp 0x1400235d3
xor r14d, r14d
test r14, r14
mov eax, 0x8007000e
cmove esi, eax
test esi, esi
js 0x140023687
mov r9, qword [rbp - 0x29]
lea rax, [rbp + 0x67]
mov r8, qword [rbp - 0x11]
mov rdx, rdi
mov qword [rsp + 0x30], rax
mov rcx, r14
lea rax, str.Windows.SystemToast.NfpDevicePairing
mov byte [rbp + 0x67], 0
mov qword [rsp + 0x20], rax
call fcn.140012978
cmp byte [rbp + 0x67], 0
je 0x140023627
mov rax, qword [r13 + 0x18]
xor esi, esi
and dword [rax], esi
call fcn.140025aa8
jmp 0x140023687
mov esi, 0x80004004
mov rax, qword [0x14003d048]
lea rcx, [0x14003d048]
cmp rax, rcx
je 0x140023687
test byte [rax + 0x1c], 8
je 0x140023687
mov eax, dword [r15]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002365f
mov eax, ecx
mov rcx, r12
sub rcx, rax
jmp 0x140023661
xor ecx, ecx
lea r9, [0x140035650]
mov edx, ntohl
add r9, rcx
lea r8, [0x140036d18]
mov rcx, qword [0x14003d048]
mov rcx, qword [rcx + 0x10]
call fcn.1400012b0
test r14, r14
je 0x14002369c
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
test rdi, rdi
je 0x1400236b1
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov rax, qword [0x14003d048]
lea rcx, [0x14003d048]
cmp rax, rcx
je 0x140023711
test byte [rax + 0x1c], 1
je 0x140023711
mov eax, dword [r15]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x1400236df
mov eax, ecx
sub r12, rax
jmp 0x1400236e2
xor r12d, r12d
mov rcx, qword [0x14003d048]
lea r9, [0x140035650]
add r9, r12
mov dword [rsp + 0x28], esi
mov edx, ntohl
mov qword [rsp + 0x20], r13
lea r8, [0x140036d18]
mov rcx, qword [rcx + 0x10]
call fcn.140001730
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140023720
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x11]
test rax, rax
je 0x140023732
mov rcx, rax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
or eax, 0xffffffff
add dword [r15], eax
cmp ebx, eax
je 0x140023753
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x140023753
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, esi
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret