Function at 0x14000c160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r13, rcx
mov qword [rsp + 0x50], r8
mov ecx, dword [0x14003d17c]
mov r14, rdx
mov qword [rsp + 0x48], rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or esi, 0xffffffff
xor ebx, ebx
mov r15, rax
test rax, rax
jne 0x14000c1d5
mov esi, dword [0x14003d17c]
lea rdx, [rsp + 0x40]
mov ecx, esi
mov dword [rsp + 0x40], ebx
lea r15, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r15]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r12d, 0x1df
cmp r10, rax
je 0x14000c24b
test byte [r10 + 0x1c], 1
je 0x14000c24b
mov eax, dword [r15]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14000c217
mov eax, ecx
mov ecx, r12d
sub rcx, rax
jmp 0x14000c21a
mov rcx, rbx
lea r9, [rcx + rdx]
test r14, r14
mov rcx, qword [r10 + 0x10]
lea rax, str.nullptr
cmovne rax, r14
lea r8, [0x140036090]
mov qword [rsp + 0x28], rax
mov edx, Ordinal_20
mov qword [rsp + 0x20], r13
call fcn.14000b660
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x18]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x78], rax
xor edx, edx
lea rax, [rbp - 0x68]
mov dword [rbp - 0x80], ebx
mov qword [rbp - 0x70], rax
mov r8d, 0x90
lea rax, [0x140036040]
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x38], rax
mov byte [rbp - 0x64], bl
mov byte [rbp - 0x28], bl
mov dword [rbp - 0x40], ebx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], 1
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], rbx
call sub.msvcrt.dll_memset
lea rax, [0x140033390]
mov qword [rbp + 0x88], rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x90], rbx
call fcn.14000cf10
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
mov rcx, r13
mov dword [rsp + 0x38], ebx
mov rdi, rbx
call fcn.14000be18
test eax, eax
js 0x14000c2f8
cmp dword [rsp + 0x38], ebx
jne 0x14000c32b
lea rcx, [rsp + 0x30]
call fcn.14002ae00
mov rdi, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
js 0x14000c3dc
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call fcn.14000b8b4
mov ebx, eax
test eax, eax
js 0x14000c3dc
xor ebx, ebx
xor edx, edx
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x30]
lea r9, [0x140036030]
mov qword [rsp + 0x20], rax
lea rcx, [0x140036f78]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x14000c3bf
test r14, r14
jne 0x14000c374
mov rcx, qword [rsp + 0x30]
lea r8, str.Windows.Networking.Proximity.PeerFinder:StreamSocket
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
jmp 0x14000c39e
mov rbx, qword [rsp + 0x30]
lea rdx, str.MSFT_DUMMY_ARG
mov rcx, qword [rsp + 0x48]
mov r14, qword [rbx]
call sub.msvcrt.dll_wcscmp
neg eax
mov rcx, rbx
mov rax, qword [r14 + 0x18]
sbb r8, r8
and r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rdx
mov rdx, r13
call qword [0x140034e68]
mov ebx, eax
test eax, eax
js 0x14000c3bf
call fcn.140012370
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000c3dc
and qword [rsp + 0x30], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1400066e0
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14000c43c
test byte [rcx + 0x1c], 1
je 0x14000c43c
mov eax, dword [r15]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14000c416
mov eax, edx
sub r12, rax
jmp 0x14000c419
xor r12d, r12d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r12
mov dword [rsp + 0x20], ebx
mov edx, Ordinal_20
lea r8, [0x140036090]
call fcn.140001304
test rdi, rdi
je 0x14000c451
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
lea rax, [0x140033390]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.140006a7c
lea rcx, [rsp + 0x60]
call fcn.140006d20
or eax, 0xffffffff
add dword [r15], eax
cmp esi, eax
je 0x14000c492
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14000c492
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400304d0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret