Function at 0x140019240
Capabilities:
Get thread local storage value

Disassembly:
mov qword ss:[rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rbx, rcx
mov r14, r8
movzx ecx, dx
sub ecx, 9
je 0x1400199c5
sub ecx, 1
je 0x14001981a
cmp ecx, 1
jne 0x140019af6
xor r15d, r15d
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x30], r15
call sym.SystemInformer.exe_QiParseCommandLinePart
test rax, rax
je 0x140019af6
lea rcx, [rax - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400192d1
call fcn.14013fb00
mov r9d, dword ds:[rbx]
mov rdx, qword [rsp + 0x30]
shr r9, 1
cmp rdx, r9
jae 0x14001930a
mov rax, qword [rbx + 8]
lea r8, [rax + rdx*2]
nop dword [rax]
cmp word [r8], 0x20
jne 0x140019305
inc rdx
add r8, 2
cmp rdx, r9
jb 0x1400192f0
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sym.SystemInformer.exe_QiParseCommandLinePart
mov rsi, rax
test rax, rax
je 0x140019af6
mov rcx, rax
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov r12, qword ds:[rsi]
lea rdi, [rsi + 8]
shr r12, 1
mov rbx, r15
je 0x14001935e
mov rax, qword [rdi]
movzx ecx, word [rax + rbx*2]
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
mov rcx, qword [rdi]
mov word [rcx + rbx*2], ax
inc rbx
cmp rbx, r12
jb 0x140019342
lea rax, str._PROCESSID:
mov qword ds:[rbp - 0x51], 0x16
xor r8d, r8d
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x51]
mov rcx, rsi
call sym.SystemInformer.exe_QiFindStringInStringRef
cmp rax, 0xffffffffffffffff
je 0x140019af6
mov ecx, dword [rsi]
mov rdx, qword [0x1402c4fb8]
shr rcx, 1
sub rcx, rax
add rax, 0xb
lea rsi, [rcx*2 - 0x16]
mov rcx, qword [rdi]
lea rdi, [rcx + rax*2]
lea rcx, [rsi + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov rbx, rax
mov qword [rax], rsi
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rsi], r15w
test rdi, rdi
je 0x1400193e5
mov rcx, qword ds:[rax + 8]
mov r8, rsi
mov rdx, rdi
call fcn.1402074d0
mov rcx, rbx
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov r12, rax
movzx ecx, word [rax]
mov word [rbp - 0x71], cx
add cx, 2
cmp qword [rax], 0xfffe
mov word [rbp - 0x6f], cx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x69], rcx
ja 0x140019af6
lea rdx, ds:[rbp - 1]
lea rcx, [rbp - 0x71]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
test eax, eax
js 0x140019af6
movups xmm0, xmmword [rbp - 1]
lea r8, str.CLSID_
mov qword [r14 + 0x10], r15
mov rdx, r8
mov qword [r14 + 0x18], r15
and rdx, 0xfffffffffffffff1
mov rcx, r8
xorps xmm1, xmm1
movups xmmword [r14], xmm0
mov r13, qword [r12 + 8]
and ecx, 0xf
je 0x140019479
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
je 0x140019475
mov edx, ecx
shr rdx, 1
jmp 0x1400194b3
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x1400194a5
nop dword [rax]
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x140019490
sub rdx, r8
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
add rdx, rdx
mov rsi, r13
and rsi, 0xfffffffffffffff1
mov qword [rsp + 0x30], rdx
mov ecx, r13d
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400194ea
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rsi]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
je 0x1400194e6
mov esi, ecx
shr rsi, 1
jmp 0x140019523
add rsi, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rsi]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x140019515
nop word [rax + rax]
add rsi, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rsi]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x140019500
sub rsi, r13
mov eax, ecx
sar rsi, 1
shr rax, 1
add rsi, rax
add rsi, rsi
lea rbx, [rsi + rdx]
mov rdx, qword [0x1402c4fb8]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov r8, qword ds:[rsp + 0x30]
lea rdx, str.CLSID_
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
mov rcx, qword [rax + 8]
call fcn.1402074d0
mov rcx, qword [rdi + 8]
mov r8, rsi
add rcx, qword [rsp + 0x30]
mov rdx, r13
call fcn.1402074d0
mov rcx, rdi
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov r9, rax
mov dword [rsp + 0x20], r15d
mov edx, 0x20019
lea rcx, [rbp - 0x11]
mov r8, 0xfffffffffffffff9
call sym.SystemInformer.exe_QiOpenKey
test eax, eax
js 0x14001968d
mov rcx, qword [rbp - 0x11]
xor edx, edx
call sym.SystemInformer.exe_QiQueryRegistryString
mov rcx, rax
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov qword [r14 + 0x10], rax
mov rcx, qword [0x1402bb470]
mov word [rbp - 0x61], cx
lea eax, [rcx + 2]
mov word [rbp - 0x5f], ax
mov rax, qword [str.InprocServer32]
mov qword [rbp - 0x59], rax
cmp rcx, 0xfffe
ja 0x140019678
mov rcx, qword [rbp - 0x11]
lea rax, [rbp - 0x79]
lea r9, [rbp - 0x41]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x61]
call fcn.140167940
test eax, eax
js 0x140019678
lea r8, [rbp - 0x41]
mov edx, 0x20019
lea rcx, [rbp - 9]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp - 0x79]
mov ebx, eax
test rcx, rcx
je 0x140019638
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140019678
mov rcx, qword [rbp - 9]
xor edx, edx
call sym.SystemInformer.exe_QiQueryRegistryString
mov rcx, rax
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov rcx, rax
mov qword [r14 + 0x18], rax
call sym.SystemInformer.exe_QiExpandEnvironmentStrings
mov rcx, rax
call sym.SystemInformer.exe_QiAutoDereferenceObject
test rax, rax
je 0x14001966e
mov qword [r14 + 0x18], rax
mov rcx, qword [rbp - 9]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword ds:[rbp - 0x11]
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
jmp 0x140019af8
mov r12, qword [r12 + 8]
lea r8, str.AppID_
mov rdx, r8
mov rcx, r8
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400196c8
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
je 0x1400196c4
mov edx, ecx
shr rdx, 1
jmp 0x140019703
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x1400196f5
nop dword [rax + rax]
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x1400196e0
sub rdx, r8
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
mov rsi, r12
lea r13, [rdx + rdx]
and rsi, 0xfffffffffffffff1
mov ecx, r12d
xorps xmm1, xmm1
and ecx, 0xf
je 0x140019736
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rsi]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
je 0x140019732
mov esi, ecx
shr rsi, 1
jmp 0x140019773
add rsi, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rsi]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x140019765
nop word [rax + rax]
add rsi, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rsi]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x140019750
sub rsi, r12
mov eax, ecx
sar rsi, 1
shr rax, 1
add rsi, rax
mov rdx, qword [0x1402c4fb8]
add rsi, rsi
lea rbx, [rsi + r13]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov r8, r13
lea rdx, str.AppID_
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
mov rcx, qword [rax + 8]
call fcn.1402074d0
mov rcx, qword ds:[rdi + 8]
mov r8, rsi
add rcx, r13
mov rdx, r12
call fcn.1402074d0
mov rcx, rdi
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov r9, rax
mov dword [rsp + 0x20], r15d
mov edx, 0x20019
lea rcx, [rbp - 0x11]
mov r8, 0xfffffffffffffff9
call sym.SystemInformer.exe_QiOpenKey
test eax, eax
js 0x1400199bc
mov rcx, qword [rbp - 0x11]
xor edx, edx
call sym.SystemInformer.exe_QiQueryRegistryString
mov rcx, rax
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov rcx, qword [rbp - 0x11]
mov qword [r14 + 0x10], rax
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
jmp 0x140019af8
xor r15d, r15d
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x30], r15
call sym.SystemInformer.exe_QiParseCommandLinePart
test rax, rax
je 0x140019af6
lea rcx, [rax - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140019850
call fcn.14013fb00
mov r8, qword ds:[rbx]
mov rcx, qword [rsp + 0x30]
shr r8, 1
cmp rcx, r8
jae 0x14001988a
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*2]
nop dword [rax]
cmp word [rdx], 0x20
jne 0x140019885
inc rcx
add rdx, 2
cmp rcx, r8
jb 0x140019870
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sym.SystemInformer.exe_QiParseCommandLinePart
mov rbx, rax
test rax, rax
je 0x140019af6
mov rcx, rax
call sym.SystemInformer.exe_QiAutoDereferenceObject
movups xmm6, xmmword ds:[rbx]
mov edx, 0x2c
xor r8d, r8d
mov rcx, rbx
call sym.SystemInformer.exe_QiFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
je 0x140019af6
lea rdi, [rax + rax]
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rbx, xmm6
sub rbx, rdi
movq r12, xmm0
sub rbx, 2
lea r13, [r12 + 2]
add r13, rdi
test rdi, rdi
jne 0x140019904
call sym.SystemInformer.exe_QiReferenceEmptyString
mov rsi, rax
jmp 0x14001993b
mov rdx, qword [0x1402c4fb8]
lea rcx, [rdi + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov rsi, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rsi + 8], rax
mov word [rax + rdi], r15w
test r12, r12
je 0x14001993b
mov rcx, qword [rsi + 8]
mov r8, rdi
mov rdx, r12
call fcn.1402074d0
mov rcx, rsi
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov rsi, rax
test rbx, rbx
jne 0x140019957
call sym.SystemInformer.exe_QiReferenceEmptyString
mov rdi, rax
jmp 0x14001998e
mov rdx, qword [0x1402c4fb8]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov rdi, rax
mov qword [rax], rbx
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + rbx], r15w
test r13, r13
je 0x14001998e
mov rcx, qword [rdi + 8]
mov r8, rbx
mov rdx, r13
call fcn.1402074d0
mov rcx, rdi
call sym.SystemInformer.exe_QiAutoDereferenceObject
mov rcx, rsi
mov rbx, rax
call sym.SystemInformer.exe_QiDetermineDosPathNameType
cmp eax, 5
jne 0x1400199b5
mov rcx, rsi
call fcn.140136be0
mov rsi, rax
mov qword [r14], rsi
mov qword [r14 + 8], rbx
mov al, 1
jmp 0x140019af8
mov r9d, 1
mov qword [rsp + 0x28], r14
lea rax, [0x1400191e0]
xor r15d, r15d
mov qword [r8], r15
lea rdx, [0x1402bb490]
mov r8d, r9d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call sym.SystemInformer.exe_QiParseCommandLine
mov rdi, qword ds:[r14]
test rdi, rdi
je 0x140019af6
cmp dword [0x1402baf40], 0xffffffff
mov eax, dword [0x1402c7eac]
jae 0x140019a33
cmp eax, 0x40
jae 0x140019a33
lfence
mov rcx, qword gs:[0x30]
mov rbx, qword [rcx + rax*8 + 0x1480]
jmp 0x140019a3e
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov eax, dword [rbx]
cmp eax, 0x40
jae 0x140019a53
mov qword [rbx + rax*8 + 8], rdi
mov al, 1
inc dword [rbx]
jmp 0x140019af8
mov rcx, qword [rbx + 0x210]
test rcx, rcx
jne 0x140019a89
lea edx, [rcx + 4]
mov dword [rbx + 0x20c], 0x40
mov rcx, qword [0x1402c5110]
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 0x140019ae2
add eax, eax
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
test rcx, rcx
jne 0x140019ac8
mov rcx, qword [0x1402c5110]
mov r8, r9
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x140019ad8
mov r8, rcx
mov rcx, qword [0x1402c5110]
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 0x140019af8
xor al, al
mov rcx, qword ds:[rbp + 0xf]
xor rcx, rsp
call fcn.1401e0100
mov rbx, qword [rsp + 0x128]
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret