Function at 0x140080400
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140237008]
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.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [rsp + 0x30]
mov rbx, rax
test rsi, rsi
je 0x14008050d
mov eax, dword [rax]
cmp eax, 0x40
jae 0x14008047f
mov qword [rbx + rax*8 + 8], rsi
inc dword [rbx]
jmp 0x14008050d
nop
cmp qword [rbx + 0x210], r14
jne 0x1400804b2
mov rcx, qword [0x140241998]
mov edx, 4
mov r8d, 0x200
mov dword [rbx + 0x20c], 0x40
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbx + 0x210], rax
mov eax, dword ds:[rbx + 0x208]
mov ecx, dword [rbx + 0x20c]
cmp eax, ecx
jne 0x1400804fa
mov r8, qword [rbx + 0x210]
lea eax, [rcx + rcx]
mov rcx, qword [0x140241998]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov ecx, eax
mov rax, qword [rbx + 0x210]
mov qword [rax + rcx*8], rsi
inc dword [rbx + 0x208]
mov rcx, qword ds:[rsp + 0x40]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], r14
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword ds:[rsp + 0x38]
mov rbx, rax
test rdi, rdi
je 0x1400805ee
mov eax, dword [rax]
cmp eax, 0x40
jae 0x14008055c
mov qword [rbx + rax*8 + 8], rdi
inc dword [rbx]
jmp 0x1400805ee
nop dword [rax]
cmp qword [rbx + 0x210], r14
jne 0x140080592
mov rcx, qword [0x140241998]
mov edx, 4
mov r8d, 0x200
mov dword [rbx + 0x20c], 0x40
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbx + 0x210], rax
mov eax, dword ds:[rbx + 0x208]
mov ecx, dword [rbx + 0x20c]
cmp eax, ecx
jne 0x1400805da
mov r8, qword [rbx + 0x210]
lea eax, [rcx + rcx]
mov rcx, qword [0x140241998]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov r8d, eax
mov rax, qword [rbx + 0x210]
mov qword [rax + r8*8], rdi
inc dword [rbx + 0x208]
test rsi, rsi
je 0x140080877
nop word [rax + rax]
test rdi, rdi
je 0x140080877
mov r8b, 1
mov rdx, rdi
mov rcx, rsi
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x140080877
mov edi, 1
test byte [0x14023b618], dil
jne 0x1400806b3
lock bts qword [0x14023b618], 0x1f
jae 0x140080656
test byte [0x14023b618], dil
jne 0x1400806b3
xor edx, edx
lea rcx, [0x14023b618]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x1400806b3
mov rdx, qword [0x140241890]
mov ecx, 0x40
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, edi
mov word [rax], r14w
lock xadd dword [0x14024185c], ecx
movzx edx, cl
lea rcx, [0x1400808c0]
mov qword [rax + 8], rcx
lea rcx, str.PhSvcClient
mov qword [rax + 0x10], rcx
lea rcx, [0x140245840]
mov byte [rax + 2], dl
mov qword [rcx + rdx*8], rax
lea rcx, [0x14023b618]
mov dword [rax + 4], r14d
mov qword [0x140240f48], rax
call sym.ProcessHacker.exe_PhfSetEvent
mov rdx, qword [0x140240f48]
mov ecx, 0x48
call sym.ProcessHacker.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 [0x140240f40], 0
jae 0x140080708
lea rcx, [0x140240f40]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockExclusive
mov rax, qword [0x140237c20]
lea rcx, [0x140237c18]
mov qword ds:[rbx], rcx
mov rsi, 0xffffffffffffffff
mov qword [rbx + 8], rax
mov rdx, rsi
mov qword [rax], rbx
mov qword [0x140237c20], rbx
lock xadd qword [0x140240f40], rdx
movzx eax, dl
and al, 6
cmp al, 2
jne 0x140080765
lea rax, [rdx - 1]
lea rdx, [rax + 4]
lock cmpxchg qword [0x140240f40], rdx
jne 0x140080765
lea rcx, [0x140240f40]
nop
call fcn.140123d80
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 0x1400807d5
lea rcx, ds:[rbx - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, edi
jne 0x140080894
lfence
call fcn.1400fbcc0
jmp 0x140080894
mov rax, qword ds:[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
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtCompleteConnectPort]
lock bts qword [rbx + 0x10], 0
jb 0x140080857
lfence
mov rsi, qword [rbx + 0x18]
test rsi, rsi
je 0x140080826
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 0x140080857
test rsi, rsi
je 0x140080857
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbx + 0x18], r14
lock xadd dword [0x140240f38], edi
inc edi
cmp edi, 1
jne 0x140080894
mov rcx, qword [0x140240f50]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
jmp 0x140080894
mov qword [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]
mov rcx, qword ds:[rsp + 0x70]
xor rcx, rsp
call fcn.1401848a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret