Function at 0x1400a6c20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx + 8]
mov rbp, rcx
lea rdx, [rsp + 0x30]
mov rcx, qword gs:[0x30]
xor r14d, r14d
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x30], r14
mov rcx, qword [rcx + 0x40]
call sym.SystemInformer.exe_PhGetProcessImageFileNameByProcessId
mov eax, dword [0x1402c2bec]
lfence
cmp eax, 0x40
jae 0x1400a6c8b
mov rcx, qword gs:[0x30]
mov rbx, qword [rcx + rax*8 + 0x1480]
jmp 0x1400a6c96
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdi, qword ds:[rsp + 0x30]
test rdi, rdi
je 0x1400a6d46
mov eax, dword [rbx]
cmp eax, 0x40
jae 0x1400a6cbc
mov qword [rbx + rax*8 + 8], rdi
inc dword [rbx]
jmp 0x1400a6d46
mov rcx, qword [rbx + 0x210]
test rcx, rcx
jne 0x1400a6cf2
lea edx, [rcx + 4]
mov dword [rbx + 0x20c], 0x40
mov rcx, qword [0x1402bfe50]
mov r8d, 0x200
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword ds:[rbx + 0x20c]
cmp dword [rbx + 0x208], eax
jne 0x1400a6d36
add eax, eax
mov r8, rcx
mov rcx, qword [0x1402bfe50]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov qword [rcx + rax*8], rdi
inc dword [rbx + 0x208]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], r14
call sym.SystemInformer.exe_PhGetProcessImageFileNameByProcessId
mov eax, dword [0x1402c2bec]
lfence
cmp eax, 0x40
jae 0x1400a6d7b
mov rcx, qword gs:[0x30]
mov rbx, qword [rcx + rax*8 + 0x1480]
jmp 0x1400a6d89
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x1400a6e2c
mov eax, dword [rbx]
cmp eax, 0x40
jae 0x1400a6daa
mov qword [rbx + rax*8 + 8], rdi
inc dword [rbx]
jmp 0x1400a6e2c
mov rcx, qword [rbx + 0x210]
test rcx, rcx
jne 0x1400a6de0
lea edx, [rcx + 4]
mov dword [rbx + 0x20c], 0x40
mov rcx, qword [0x1402bfe50]
mov r8d, 0x200
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x20c]
cmp dword [rbx + 0x208], eax
jne 0x1400a6e1c
add eax, eax
mov r8, rcx
mov rcx, qword [0x1402bfe50]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov qword [rcx + rax*8], rdi
inc dword [rbx + 0x208]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400a7145
nop word [rax + rax]
test rdi, rdi
je 0x1400a7145
mov r8, qword [rcx]
cmp r8, qword [rdi]
jne 0x1400a7145
mov rcx, qword [rcx + 8]
mov r9, r8
mov rdx, qword [rdi + 8]
shr r9, 4
test r9, r9
je 0x1400a6e99
nop dword [rax]
movdqu xmm0, xmmword [rcx]
movdqu xmm1, xmmword [rdx]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x1400a7145
add rcx, 0x10
add rdx, 0x10
sub r9, 1
jne 0x1400a6e70
shr r8, 1
and r8d, 7
je 0x1400a6ec7
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp ax, word [rcx + rdx]
jne 0x1400a7145
add rcx, 2
sub r8, 1
jne 0x1400a6eb0
mov edi, 1
mov qword [rsp + 0xa8], rsi
test byte [0x1402b8168], dil
jne 0x1400a6f6c
lock bts qword [0x1402b8168], 0x1f
jb 0x1400a6f55
mov rdx, qword [0x1402bfcd8]
lea ecx, ds:[rdi + 0x3f]
call sym.SystemInformer.exe_PhCreateObject
mov edx, edi
mov word [rax], r14w
lock xadd dword [0x1402bfcd0], edx
movzx r8d, dl
lea rcx, [0x1402b8168]
lea rdx, [0x1400a7180]
mov byte [rax + 2], r8b
mov qword [rax + 8], rdx
lea rdx, str.PhSvcClient
mov qword [rax + 0x10], rdx
lea rdx, [0x1402c3fc0]
mov qword [rdx + r8*8], rax
mov dword [rax + 4], r14d
mov qword [0x1402bede0], rax
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x1400a6f6c
test byte [0x1402b8168], dil
jne 0x1400a6f6c
xor edx, edx
lea rcx, [0x1402b8168]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rdx, qword [0x1402bede0]
mov ecx, 0x48
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x30], r14
mov qword [rax + 0x38], r14
mov qword [rax + 0x40], r14
movups xmm0, xmmword [rsp + 0x40]
mov qword [rax + 0x10], 2
mov qword [rax + 0x18], r14
movups xmmword [rax + 0x20], xmm0
lock bts qword [0x1402bedd8], 0
jae 0x1400a6fc5
lea rcx, [0x1402bedd8]
nop dword [rax + rax]
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
mov rax, qword [0x1402b5d70]
lea rcx, [0x1402b5d68]
mov qword ds:[rbx], rcx
mov rsi, 0xffffffffffffffff
mov qword [rbx + 8], rax
mov rdx, rsi
mov qword [rax], rbx
mov qword [0x1402b5d70], rbx
lock xadd qword [0x1402bedd8], rdx
movzx eax, dl
and al, 6
cmp al, 2
jne 0x1400a7025
lea rax, [rdx - 1]
lea rdx, [rax + 4]
lock cmpxchg qword [0x1402bedd8], rdx
jne 0x1400a7025
lea rcx, [0x1402bedd8]
nop
call fcn.140169fe0
mov rax, qword gs:[0x30]
movzx r9d, dil
mov r8, rbp
mov rdx, rbx
mov ecx, dword [rax + 0x40]
lea rax, [rsp + 0x58]
mov dword [rbp + 0x28], ecx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
call qword [sym.imp.ntdll.dll_NtAcceptConnectPort]
lfence
test eax, eax
jns 0x1400a70af
lea rcx, [rbx - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, edi
jne 0x1400a7086
lfence
call fcn.14013d2a0
mov rsi, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401dd6a0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x38], rax
mov rcx, qword [rsp + 0x68]
add rcx, qword [rsp + 0x60]
mov qword [rbx + 0x40], rcx
lock bts qword [rbx + 0x10], 0
jb 0x1400a711c
lfence
mov rsi, qword [rbx + 0x18]
test rsi, rsi
je 0x1400a70f0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [rbx + 0x10], rax
shr rax, 1
and eax, 0x7fff
cmp rax, rdi
jne 0x1400a711c
test rsi, rsi
je 0x1400a711c
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbx + 0x18], r14
lock xadd dword [0x1402bedd0], edi
inc edi
cmp edi, 1
jne 0x1400a7086
mov rcx, qword [0x1402bede8]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
nop
jmp 0x1400a7086
mov qword ss:[rsp + 0x28], r14
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_NtAcceptConnectPort]
jmp 0x1400a708e