Function at 0x14007d580
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbx
push rdi
push r14
push r15
sub rsp, 0x68
movups xmm0, xmmword [rcx + 8]
mov r14, rcx
lea rdx, [rax + 8]
mov rcx, qword gs:[0x30]
xor r15d, r15d
movups xmmword [rax - 0x58], xmm0
mov qword [rax + 8], r15
mov rcx, qword [rcx + 0x40]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetProcessImageFileNameByProcessId
mov ecx, dword [0x140190208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [rsp + 0x90]
mov rbx, rax
test rdi, rdi
je 0x14007d66c
mov eax, dword [rax]
cmp eax, 0x40
jae 0x14007d5e8
mov qword [rbx + rax*8 + 8], rdi
inc dword [rbx]
jmp 0x14007d66c
mov rcx, qword [rbx + 0x210]
test rcx, rcx
jne 0x14007d620
mov dword [rbx + 0x20c], 0x40
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
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 0x14007d65c
add eax, eax
mov r8, rcx
mov r9d, eax
mov edx, 4
mov dword [rbx + 0x20c], eax
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
shl r9, 3
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 gs:[0x30]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0xa0], r15
mov rcx, qword [rcx + 0x40]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetProcessImageFileNameByProcessId
mov ecx, dword [0x140190208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [rsp + 0xa0]
mov rbx, rax
test rdi, rdi
je 0x14007d745
mov eax, dword [rax]
cmp eax, 0x40
jae 0x14007d6c1
mov qword [rbx + rax*8 + 8], rdi
inc dword [rbx]
jmp 0x14007d745
mov rcx, qword [rbx + 0x210]
test rcx, rcx
jne 0x14007d6f9
mov dword [rbx + 0x20c], 0x40
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
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 0x14007d735
add eax, eax
mov r8, rcx
mov r9d, eax
mov edx, 4
mov dword [rbx + 0x20c], eax
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
shl r9, 3
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 + 0x90]
test rcx, rcx
je 0x14007d9be
test rdi, rdi
je 0x14007d9be
mov r8b, 1
mov rdx, rdi
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhEqualStringRef
test al, al
je 0x14007d9be
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0x60], rsi
mov rsi, qword [0x140192208]
test byte [rsi], 1
je 0x14007d7cc
lea rcx, [rsi + 0x20]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
test rax, rax
je 0x14007d7a8
lock dec dword [rsi + 0x30]
lea rdi, [rax + 0x10]
mov byte [rdi + 2], 2
jmp 0x14007d7eb
mov r8, qword [rsi + 0x38]
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov byte [rax + 0x12], 2
lea rdi, [rax + 0x10]
jmp 0x14007d7eb
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
mov r8d, 0x58
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
mov byte [rax + 2], r15b
lock inc dword [rsi + 4]
lea rbx, [rdi + 0x10]
xorps xmm0, xmm0
mov ebp, 1
mov dword [rdi + 8], ebp
movzx eax, byte [rsi + 2]
mov word [rdi], ax
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], rax
movups xmm0, xmmword [rsp + 0x30]
mov qword [rbx + 0x10], 2
mov qword [rbx + 0x18], r15
movups xmmword [rbx + 0x20], xmm0
lock bts qword [0x14018d080], 0
setb al
test al, al
je 0x14007d848
lea rcx, [0x14018d080]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfAcquireQueuedLockExclusive
mov rax, qword [0x140192218]
lea rcx, [0x140192210]
mov qword [rbx], rcx
mov rsi, 0xffffffffffffffff
mov qword [rbx + 8], rax
mov rdx, rsi
mov qword [rax], rbx
mov qword [0x140192218], rbx
lock xadd qword [0x14018d080], rdx
movzx eax, dl
and al, 6
cmp al, 2
jne 0x14007d8a2
lea rax, [rdx - 1]
lea rdx, [rax + 4]
lock cmpxchg qword [0x14018d080], rdx
jne 0x14007d8a2
lea rcx, [0x14018d080]
call fcn.1400ee3a0
mov rax, qword gs:[0x30]
movzx r9d, bpl
mov r8, r14
mov rdx, rbx
mov ecx, dword [rax + 0x40]
lea rax, [rsp + 0x40]
mov dword [r14 + 0x28], ecx
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x18
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
call qword [sym.imp.ntdll.dll_NtAcceptConnectPort]
test eax, eax
jns 0x14007d918
lock xadd dword [rdi + 8], esi
cmp esi, ebp
jne 0x14007d900
mov rcx, rdi
call fcn.1400d9400
mov rbp, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x60]
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbx
ret
mov rax, qword [rsp + 0x98]
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x38], rax
mov rcx, qword [rsp + 0x48]
add rcx, qword [rsp + 0x50]
mov qword [rbx + 0x40], rcx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntdll.dll_NtCompleteConnectPort]
lock bts qword [rbx + 0x10], 0
setb al
test al, al
jne 0x14007d997
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x14007d96b
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [rbx + 0x10], rax
shr rax, 1
and eax, 0x7fff
cmp rax, rbp
jne 0x14007d997
test rdi, rdi
je 0x14007d997
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbx + 0x18], r15
lock xadd dword [0x14018cdc8], ebp
inc ebp
cmp ebp, 1
jne 0x14007d900
mov rcx, qword [0x140192200]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
jmp 0x14007d900
mov qword [rsp + 0x28], r15
lea rcx, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_NtAcceptConnectPort]
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbx
ret