Function at 0x1400122a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, rcx
mov rsi, r8
movzx ecx, dx
sub ecx, 9
je 0x1400127d7
nop word [rax + rax]
sub ecx, 1
je 0x14001261b
cmp ecx, 1
jne 0x1400128cd
xor edi, edi
lea rdx, [rbp - 0x79]
mov rcx, rbx
mov qword [rbp - 0x79], rdi
call sym.ProcessHacker.exe_PhParseCommandLinePart
test rax, rax
je 0x1400128cd
lea rcx, ds:[rax - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001232a
call fcn.1400fbcc0
mov r9d, dword [rbx]
mov rdx, qword [rbp - 0x79]
shr r9, 1
cmp rdx, r9
jae 0x140012358
mov rax, qword [rbx + 8]
lea r8, [rax + rdx*2]
cmp word [r8], 0x20
jne 0x140012354
inc rdx
add r8, 2
cmp rdx, r9
jb 0x140012341
mov qword [rbp - 0x79], rdx
lea rdx, ds:[rbp - 0x79]
mov rcx, rbx
call sym.ProcessHacker.exe_PhParseCommandLinePart
mov rbx, rax
test rax, rax
je 0x1400128cd
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov r15, qword [rbx]
mov rdx, qword [0x1402418e8]
mov r12, qword [rbx + 8]
lea rcx, [r15 + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r14, rax
mov qword [rax], r15
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + r15], di
test r12, r12
je 0x1400123b7
mov rcx, qword [rax + 8]
mov r8, r15
mov rdx, r12
call fcn.140188690
mov rcx, qword ds:[r14 + 8]
call fcn.140189860
lea rax, str._PROCESSID:
mov qword [rbp - 0x69], 0x16
xor r8d, r8d
mov qword [rbp - 0x61], rax
lea rdx, [rbp - 0x69]
mov rcx, rbx
call sym.ProcessHacker.exe_PhFindStringInStringRef
cmp rax, 0xffffffffffffffff
je 0x1400128cd
mov ecx, dword [rbx]
mov rdx, qword [0x1402418e8]
shr rcx, 1
sub rcx, rax
add rax, 0xb
lea r14, [rcx*2 - 0x16]
mov rcx, qword [rbx + 8]
lea r15, [rcx + rax*2]
lea rcx, [r14 + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rbx, rax
mov qword [rax], r14
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + r14], di
test r15, r15
je 0x140012445
mov rcx, qword ds:[rax + 8]
mov r8, r14
mov rdx, r15
call fcn.140188690
mov rcx, rbx
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rbx, rax
movzx ecx, word [rax]
mov word [rbp - 0x51], cx
add cx, 2
cmp qword [rax], 0xfffe
mov word [rbp - 0x4f], cx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x49], rcx
ja 0x1400128cd
lea rdx, ds:[rbp + 0xf]
lea rcx, [rbp - 0x51]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
test eax, eax
js 0x1400128cd
movups xmm0, xmmword [rbp + 0xf]
mov qword [rsi + 0x10], rdi
lea rcx, str.CLSID_
mov qword [rsi + 0x18], rdi
movups xmmword [rsi], xmm0
mov rdx, qword [rbx + 8]
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov r9, rax
mov dword [rsp + 0x20], edi
mov edx, 0x20019
lea rcx, [rbp - 1]
mov r8, 0xfffffffffffffff9
call sym.ProcessHacker.exe_PhOpenKey
test eax, eax
js 0x1400125b7
mov rcx, qword ds:[rbp - 1]
xor edx, edx
call sym.ProcessHacker.exe_PhQueryRegistryString
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsi + 0x10], rax
mov rcx, qword [0x14023a718]
mov word [rbp - 0x41], cx
lea eax, [rcx + 2]
mov word [rbp - 0x3f], ax
mov rax, qword [0x14023a720]
mov qword [rbp - 0x39], rax
cmp rcx, 0xfffe
ja 0x1400125a6
mov rcx, qword [rbp - 1]
lea rax, [rbp - 0x59]
lea r9, [rbp - 0x31]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x41]
call fcn.14011ab40
test eax, eax
js 0x1400125a6
lea r8, [rbp - 0x31]
mov edx, 0x20019
lea rcx, [rbp + 7]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp - 0x59]
mov ebx, eax
test rcx, rcx
je 0x140012566
nop word [rax + rax]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x1400125a6
mov rcx, qword [rbp + 7]
xor edx, edx
call sym.ProcessHacker.exe_PhQueryRegistryString
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, rax
mov qword [rsi + 0x18], rax
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
test rax, rax
je 0x14001259a
mov qword [rsi + 0x18], rax
mov rcx, qword ds:[rbp + 7]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 1]
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
jmp 0x1400128cf
mov rdx, qword [rbx + 8]
lea rcx, str.AppID_
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov r9, rax
mov dword [rsp + 0x20], edi
mov edx, 0x20019
lea rcx, [rbp - 1]
mov r8, 0xfffffffffffffff9
call sym.ProcessHacker.exe_PhOpenKey
test eax, eax
js 0x1400127d0
mov rcx, qword [rbp - 1]
xor edx, edx
call sym.ProcessHacker.exe_PhQueryRegistryString
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [rbp - 1]
mov qword [rsi + 0x10], rax
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
jmp 0x1400128cf
xor edi, edi
lea rdx, [rbp - 0x79]
mov rcx, rbx
mov qword [rbp - 0x79], rdi
call sym.ProcessHacker.exe_PhParseCommandLinePart
test rax, rax
je 0x1400128cd
lea rcx, [rax - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001264e
call fcn.1400fbcc0
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x79]
shr r8, 1
cmp rcx, r8
jae 0x14001267b
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*2]
cmp word [rdx], 0x20
jne 0x140012677
inc rcx
add rdx, 2
cmp rcx, r8
jb 0x140012665
mov qword [rbp - 0x79], rcx
lea rdx, [rbp - 0x79]
mov rcx, rbx
call sym.ProcessHacker.exe_PhParseCommandLinePart
mov rbx, rax
test rax, rax
je 0x1400128cd
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
movups xmm0, xmmword [rbx]
mov edx, 0x2c
xor r8d, r8d
mov rcx, rbx
movups xmmword [rbp - 0x69], xmm0
call sym.ProcessHacker.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
je 0x1400128cd
mov r12, qword ds:[rbp - 0x61]
lea r14, [rax + rax]
mov rbx, qword [rbp - 0x69]
mov qword [rsp + 0x118], r13
sub rbx, r14
sub rbx, 2
lea r13, [r12 + 2]
add r13, r14
test r14, r14
jne 0x1400126ef
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov r15, rax
jmp 0x140012726
mov rdx, qword [0x1402418e8]
lea rcx, [r14 + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r15, rax
mov qword [rax], r14
add rax, 0x10
mov qword [r15 + 8], rax
mov word [rax + r14], di
test r12, r12
je 0x140012726
mov rcx, qword [r15 + 8]
mov r8, r14
mov rdx, r12
call fcn.140188690
mov rcx, r15
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov r15, rax
test rbx, rbx
jne 0x140012742
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov r14, rax
jmp 0x140012778
mov rdx, qword [0x1402418e8]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r14, rax
mov qword [rax], rbx
add rax, 0x10
mov qword [r14 + 8], rax
mov word [rax + rbx], di
test r13, r13
je 0x140012778
mov rcx, qword [r14 + 8]
mov r8, rbx
mov rdx, r13
call fcn.140188690
mov rcx, r14
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [r15 + 8]
mov rbx, rax
call qword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
mov r13, qword [rsp + 0x118]
cmp eax, 5
jne 0x1400127c9
nop
call sym.ProcessHacker.exe_PhGetSystemDirectory
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov r9, qword [r15 + 8]
lea r8, [0x1401b84cc]
mov ecx, 3
mov rdx, qword [rax + 8]
call fcn.1400016e0
mov r15, rax
mov qword [rsi], r15
mov qword [rsi + 8], rbx
mov al, 1
jmp 0x1400128cf
mov r9d, 1
mov qword [rsp + 0x28], rsi
lea rax, [0x140012250]
xor edi, edi
mov qword [r8], rdi
lea rdx, [0x14023a738]
mov r8d, r9d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call sym.ProcessHacker.exe_PhParseCommandLine
mov rdi, qword [rsi]
test rdi, rdi
je 0x1400128cd
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov eax, dword [rax]
cmp eax, 0x40
jae 0x140012835
mov qword [rbx + rax*8 + 8], rdi
mov al, 1
inc dword [rbx]
jmp 0x1400128cf
mov rcx, qword ds:[rbx + 0x210]
test rcx, rcx
jne 0x140012870
lea edx, ds:[rcx + 4]
mov dword [rbx + 0x20c], 0x40
mov rcx, qword [0x140241998]
mov r8d, 0x200
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbx + 0x210], rax
mov rcx, rax
mov eax, dword ds:[rbx + 0x208]
mov r8d, dword [rbx + 0x20c]
cmp eax, r8d
jne 0x1400128bf
lea eax, [r8 + r8]
mov edx, 4
mov r9d, eax
mov r8, rcx
mov rcx, qword [0x140241998]
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 rcx, qword [rbx + 0x210]
mov qword [rcx + rax*8], rdi
mov al, 1
inc dword [rbx + 0x208]
jmp 0x1400128cf
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret