Function at 0x14000bb10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rbx, rcx
movaps xmmword [rsp + 0x2f0], xmm6
movzx ecx, dx
mov r14, r8
sub ecx, 9
je 0x14000c1f9
sub ecx, 1
je 0x14000c04d
cmp ecx, 1
jne 0x14000c2df
xor edi, edi
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x30], rdi
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhParseCommandLinePart
test rax, rax
je 0x14000c2df
mov rsi, 0xffffffffffffffff
lea rcx, [rax - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14000bb8f
call fcn.1400d9400
mov r8d, dword [rbx]
mov rcx, qword [rsp + 0x30]
shr r8, 1
cmp rcx, r8
jae 0x14000bbbe
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*2]
cmp word [rdx], 0x20
jne 0x14000bbb9
inc rcx
add rdx, 2
cmp rcx, r8
jb 0x14000bba7
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhParseCommandLinePart
mov rbx, rax
test rax, rax
je 0x14000c2df
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
mov rcx, qword [rbx + 8]
call fcn.140113784
lea rax, str._PROCESSID:
mov qword [rsp + 0x38], 0x16
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhFindStringInStringRef
cmp rax, rsi
je 0x14000c2df
mov ecx, dword [rbx]
mov rdx, qword [0x140191180]
shr rcx, 1
sub rcx, rax
add rax, 0xb
lea r15, [rcx*2 - 0x16]
mov rcx, qword [rbx + 8]
lea r12, [rcx + rax*2]
lea rcx, [r15 + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov rbx, rax
mov qword [rax], r15
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + r15], di
test r12, r12
je 0x14000bc69
mov rcx, qword [rax + 8]
mov r8, r15
mov rdx, r12
call fcn.1401317c0
mov rcx, rbx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
lea rdx, [rbp - 0x50]
mov rbx, rax
movzx ecx, word [rax]
mov word [rsp + 0x70], cx
movzx ecx, word [rax]
mov word [rsp + 0x72], cx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
test eax, eax
js 0x14000c2df
movups xmm0, xmmword [rbp - 0x50]
mov qword [r14 + 0x10], rdi
lea rcx, str.CLSID_
mov qword [r14 + 0x18], rdi
movups xmmword [r14], xmm0
mov rdx, qword [rbx + 8]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhConcatStrings2
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
mov r9, rax
mov dword [rsp + 0x20], edi
mov edx, 0x20019
lea rcx, [rbp + 0x258]
mov r8, 0xfffffffffffffff9
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhOpenKey
test eax, eax
js 0x14000bfe0
mov rcx, qword [rbp + 0x258]
xor edx, edx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhQueryRegistryString
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
mov qword [r14 + 0x10], rax
mov rcx, qword [0x140188038]
mov rax, qword [0x140188040]
mov word [rsp + 0x38], cx
mov word [rsp + 0x3a], cx
mov qword [rsp + 0x40], rax
cmp rcx, 0xfffe
ja 0x14000bfcc
mov rcx, qword [rbp + 0x258]
lea rax, [rsp + 0x38]
mov dword [rbp - 0x80], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x78], rcx
mov dword [rbp - 0x68], 0x40
mov qword [rbp - 0x70], rax
movdqu xmmword [rbp - 0x60], xmm0
test rcx, rcx
je 0x14000bf68
jns 0x14000bf68
test cl, 1
je 0x14000bf68
mov r15, 0xfffffffffffffffd
sub r15, rcx
sar r15, 1
cmp r15d, 4
jae 0x14000bf68
test byte [0x14018ad58], 1
jne 0x14000beda
lock bts qword [0x14018ad58], 0x1f
setb al
test al, al
jne 0x14000bdb2
mov al, 1
jmp 0x14000bdcb
test byte [0x14018ad58], 1
jne 0x14000bdc9
xor edx, edx
lea rcx, [0x14018ad58]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfWaitForEvent
xor al, al
test al, al
je 0x14000bed3
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
test eax, eax
js 0x14000bec7
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x68]
mov edx, 1
call fcn.1400e69c0
mov esi, eax
test eax, eax
js 0x14000be47
mov rbx, qword [rsp + 0x68]
lea rax, [rbp - 0x10]
mov r8d, 0x200
mov qword [rsp + 0x60], rax
mov word [rsp + 0x5a], r8w
lea rcx, [rsp + 0x58]
xor r8d, r8d
mov rdx, qword [rbx]
call qword [sym.imp.ntdll.dll_RtlConvertSidToUnicodeString]
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
mov esi, eax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
js 0x14000bec7
movzx eax, word [rsp + 0x58]
mov edx, 4
add ax, word [0x14018ad48]
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
movzx r8d, ax
mov word [0x14018ae00], r8w
add r8, 2
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
movzx r8d, word [0x14018ad48]
mov rcx, rax
mov rdx, qword [str.RegistryUser_]
mov qword [0x14018ae08], rax
call fcn.1401317c0
movzx edx, word [0x14018ad48]
mov rax, qword [0x14018ae08]
movzx r8d, word [rsp + 0x58]
shr rdx, 1
lea rcx, [rax + rdx*2]
mov rdx, qword [rsp + 0x60]
call fcn.1401317c0
lea rcx, [0x14018ad58]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfSetEvent
mov rcx, qword [rbp + 0x258]
mov edx, r15d
lea r8, [0x140000000]
lea rbx, [r8 + 0x190290]
mov rax, qword [rbx + rdx*8]
lea rbx, [rbx + rdx*8]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14000bf64
shl rdx, 4
cmp qword [rdx + r8 + 0x18add8], rdi
je 0x14000bfd3
lea rax, [r8 + 0x18add0]
mov dword [rbp - 0x40], 0x30
add rax, rdx
mov qword [rbp - 0x38], rdi
xorps xmm0, xmm0
mov qword [rbp - 0x30], rax
mov edx, 0x20019
mov dword [rbp - 0x28], 0x40
lea r8, [rbp - 0x40]
lea rcx, [rsp + 0x30]
movdqu xmmword [rbp - 0x20], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x14000bfcc
mov rcx, qword [rsp + 0x30]
xor eax, eax
lock cmpxchg qword [rbx], rcx
mov rax, qword [rsp + 0x30]
cmovne rdi, rax
mov qword [rbp - 0x78], rax
lea r8, [rbp - 0x80]
mov edx, 0x20019
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test rdi, rdi
je 0x14000bf8c
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14000bfcc
mov rcx, qword [rsp + 0x50]
xor edx, edx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhQueryRegistryString
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
mov rcx, rax
mov qword [r14 + 0x18], rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhExpandEnvironmentStrings
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
test rax, rax
je 0x14000bfc1
mov qword [r14 + 0x18], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x258]
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
jmp 0x14000c2e1
mov rdx, qword [rbx + 8]
lea rcx, str.AppID_
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhConcatStrings2
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
mov r9, rax
mov dword [rsp + 0x20], edi
mov edx, 0x20019
lea rcx, [rbp + 0x258]
mov r8, 0xfffffffffffffff9
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhOpenKey
test eax, eax
js 0x14000c1f2
mov rcx, qword [rbp + 0x258]
xor edx, edx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhQueryRegistryString
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
mov rcx, qword [rbp + 0x258]
mov qword [r14 + 0x10], rax
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
jmp 0x14000c2e1
xor edi, edi
lea rdx, [rbp + 0x258]
mov rcx, rbx
mov qword [rbp + 0x258], rdi
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhParseCommandLinePart
test rax, rax
je 0x14000c2df
lea rcx, [rax - 0x10]
mov rsi, 0xffffffffffffffff
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x14000c088
call fcn.1400d9400
mov r8, qword [rbx]
mov rcx, qword [rbp + 0x258]
shr r8, 1
cmp rcx, r8
jae 0x14000c0bb
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*2]
cmp word [rdx], 0x20
jne 0x14000c0b4
inc rcx
add rdx, 2
cmp rcx, r8
jb 0x14000c0a2
mov qword [rbp + 0x258], rcx
lea rdx, [rbp + 0x258]
mov rcx, rbx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhParseCommandLinePart
mov rbx, rax
test rax, rax
je 0x14000c2df
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
movups xmm6, xmmword [rbx]
mov edx, 0x2c
xor r8d, r8d
mov rcx, rbx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
je 0x14000c2df
mov rdx, qword [0x140191180]
lea rsi, [rax + rax]
movdqa xmm0, xmm6
mov qword [rsp + 0x340], r13
psrldq xmm0, 8
lea rcx, [rsi + 0x12]
movq r12, xmm0
movq rbx, xmm6
sub rbx, rsi
sub rbx, 2
lea r13, [r12 + 2]
add r13, rsi
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov r15, rax
mov qword [rax], rsi
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rsi], di
test r12, r12
je 0x14000c15f
mov rcx, qword [rax + 8]
mov r8, rsi
mov rdx, r12
call fcn.1401317c0
mov rcx, r15
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
mov rdx, qword [0x140191180]
lea rcx, [rbx + 0x12]
mov r15, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov rsi, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbx], di
test r13, r13
je 0x14000c1a0
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, r13
call fcn.1401317c0
mov rcx, rsi
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
mov rcx, qword [r15 + 8]
mov rbx, rax
call qword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
mov r13, qword [rsp + 0x340]
cmp eax, 5
jne 0x14000c1eb
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetSystemDirectory
mov rcx, rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhAutoDereferenceObject
mov r9, qword [r15 + 8]
lea r8, [0x14013eb1c]
mov ecx, 3
mov rdx, qword [rax + 8]
call fcn.1400013c0
mov r15, rax
mov qword [r14], r15
mov qword [r14 + 8], rbx
mov al, 1
jmp 0x14000c2e1
mov r9d, 1
mov qword [rsp + 0x28], r14
lea rax, [0x14000bac0]
xor edi, edi
mov qword [r8], rdi
lea rdx, [0x140188058]
mov r8d, r9d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhParseCommandLine
mov rdi, qword [r14]
test rdi, rdi
je 0x14000c2df
mov ecx, dword [0x140190208]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov eax, dword [rax]
cmp eax, 0x40
jae 0x14000c257
mov qword [rbx + rax*8 + 8], rdi
mov al, 1
inc dword [rbx]
jmp 0x14000c2e1
mov rcx, qword [rbx + 0x210]
test rcx, rcx
jne 0x14000c28f
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 0x14000c2cb
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
mov al, 1
inc dword [rbx + 0x208]
jmp 0x14000c2e1
xor al, al
movaps xmm6, xmmword [rsp + 0x2f0]
add rsp, 0x300
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret