Function at 0x140016c40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x308]
sub rsp, 0x418
mov qword [rbp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r15d, r9d
mov r14, r8
mov r13, rdx
mov rsi, rcx
mov qword [rbp + 0xb8], rcx
mov ecx, 2
call fcn.1400a82f0
mov qword [rbp - 0x58], rax
xor edi, edi
mov word [rax], di
lea ecx, [rdi + 2]
call fcn.1400a82f0
mov qword [rbp - 0x28], rax
mov word [rax], di
lea ecx, [rdi + 2]
call fcn.1400a82f0
mov qword [rbp + 8], rax
mov word [rax], di
lea ecx, [rdi + 2]
call fcn.1400a82f0
mov qword [rbp], rax
mov word [rax], di
lea ecx, [rdi + 2]
call fcn.1400a82f0
mov qword [rbp - 0x18], rax
mov word [rax], di
cmp r15d, 0xffffffff
jne 0x140016eaa
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x30], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x40], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x50], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x38], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x48], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x80], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x70], rax
lea rcx, [0x1400d1428]
test r14, r14
cmovne rcx, r14
call fcn.1400a8238
mov qword [rbp - 0x78], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x68], rax
lea rcx, [0x1400d1428]
test r14, r14
cmovne rcx, r14
call fcn.1400a8238
mov qword [rbp - 0x60], rax
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x78]
mov rdx, r13
lea rcx, [rbp - 0x10]
call fcn.140009060
mov rbx, rax
lea r9, [rbp - 0x68]
lea r8, [rbp - 0x60]
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140009060
nop
movzx ecx, byte [rbp + 0x370]
mov dword [rsp + 0x80], r15d
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x58], rdi
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor r9d, r9d
or r8d, r15d
xor edx, edx
mov rcx, rsi
call fcn.140004870
mov r15d, eax
mov rcx, qword [rbp - 0x20]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x10]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x60]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x68]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x78]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x70]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x80]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x48]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x38]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x50]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x40]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x30]
call fcn.1400a82b0
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rbp - 8]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, r14
mov rcx, r13
call fcn.1400075c0
test eax, eax
jne 0x1400177eb
mov r12d, edi
lea ecx, [rax + 2]
call fcn.1400a82f0
mov qword [rbp - 0x78], rax
mov word [rax], di
mov ecx, 2
call fcn.1400a82f0
mov qword [rbp - 0x60], rax
mov word [rax], di
mov ecx, 2
call fcn.1400a82f0
mov qword [rbp - 0x80], rax
mov word [rax], di
mov ecx, 2
call fcn.1400a82f0
mov qword [rbp - 0x70], rax
mov word [rax], di
lea r8, [rbp - 0x78]
xor edx, edx
mov rcx, qword [rbp - 8]
call fcn.1400136a0
test eax, eax
jne 0x1400177b9
nop dword [rax]
mov rbx, qword [rbp - 0x78]
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 8]
call fcn.1400075c0
test eax, eax
jne 0x140017733
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MenuText
mov rcx, qword [rbp - 0x68]
call fcn.1400138b0
test eax, eax
je 0x140016fc2
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ButtonText
mov rcx, qword [rbp - 0x68]
call fcn.1400138b0
test eax, eax
jne 0x140017728
mov rcx, qword [rbp - 0x58]
cmp word [rcx], 0x40
jne 0x1400170ac
call fcn.1400a8238
mov rsi, rax
mov qword [rbp + 0xd0], rax
mov edx, 0x2c
mov rcx, rax
call fcn.1400a9720
test rax, rax
je 0x140017013
mov edx, 0x2c
mov rcx, rsi
call fcn.1400a9720
xor ecx, ecx
mov word [rax], cx
lea rcx, [rax + 2]
call fcn.1400ab1a4
cdq
mov edi, eax
xor edi, edx
sub edi, edx
lea rdx, [rsi + 2]
lea rcx, [rbp + 0xc0]
call fcn.140013270
mov rcx, qword [rax]
call fcn.1400a8238
mov rbx, rax
mov rcx, rsi
call fcn.1400a82b0
mov rcx, qword [rbp + 0xc0]
call fcn.1400a82b0
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x14001709b
mov r9d, 0x104
lea r8, [rbp + 0xe0]
mov edx, edi
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140017091
mov rdi, qword [rbp - 0x58]
lea rcx, [rbp + 0xe0]
call fcn.1400a8238
mov qword [rbp - 0x58], rax
mov rcx, rdi
call fcn.1400a82b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, rbx
call fcn.1400a82b0
mov rsi, qword [rbp + 0xb8]
xor edi, edi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Exec
mov rcx, qword [rbp - 0x68]
call fcn.1400138b0
test eax, eax
je 0x14001726f
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Script
mov rcx, qword [rbp - 0x68]
call fcn.1400138b0
test eax, eax
je 0x140017218
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ClsidExtension
mov rcx, qword [rbp - 0x68]
call fcn.1400138b0
mov rcx, qword [rbp - 0x68]
test eax, eax
jne 0x14001772c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rbp - 0x80]
cmp eax, 0x200
lea rcx, str.Wow6432Node_
je 0x140017150
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x80], rax
mov rcx, rbx
call fcn.1400a82b0
lea r8, [rbp - 0x60]
lea rdx, str.CLSID_
lea rcx, [rbp + 0x70]
call fcn.1400161f0
lea r8, [0x1400d2970]
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.140022b00
xor r9d, r9d
mov r8d, 0x7fffffff
mov rdx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.140002620
mov rcx, qword [rbp + 0x80]
call fcn.1400a82b0
mov rcx, qword [rbp + 0x70]
call fcn.1400a82b0
mov rbx, qword [rbp - 0x80]
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call fcn.1400075c0
test eax, eax
jne 0x140017733
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400d1428]
mov rcx, qword [rbp - 0x68]
call fcn.1400138b0
test eax, eax
je 0x14001726f
jmp 0x140017728
mov r8d, 6
lea rdx, str.res:__
mov rcx, qword [rbp - 0x80]
call fcn.1400a9d30
test eax, eax
jne 0x14001723c
mov rbx, qword [rbp - 0x80]
lea rcx, [rbx + 0xc]
jmp 0x14001725e
mov r8d, 7
lea rdx, str.file:__
mov rcx, qword [rbp - 0x80]
call fcn.1400a9d30
test eax, eax
jne 0x14001726f
mov rbx, qword [rbp - 0x80]
lea rcx, [rbx + 0xe]
call fcn.1400a8238
mov qword [rbp - 0x80], rax
mov rcx, rbx
call fcn.1400a82b0
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 2
call fcn.1400a82f0
mov qword [rbp + 0x50], rax
mov word [rax], di
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], rdi
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp - 0x80]
call fcn.140008100
mov rbx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x80]
call fcn.1400a8238
mov qword [rbp - 0x18], rax
mov rcx, rbx
call fcn.1400a82b0
xor r9d, r9d
lea r8, [rbp + 0x50]
mov rdx, rsi
lea rcx, [rbp + 0x90]
call fcn.1400058f0
mov rbx, qword [rbp - 0x70]
mov rcx, qword [rax]
call fcn.1400a8238
mov qword [rbp - 0x70], rax
mov rcx, rbx
call fcn.1400a82b0
mov rcx, qword [rbp + 0x90]
call fcn.1400a82b0
lea r9, [rbp + 8]
lea r8, [rbp - 0x28]
mov rdx, qword [rbp - 0x70]
mov rcx, rsi
call fcn.1400058e0
mov edi, eax
lea rcx, [0x1400d1428]
test r14, r14
cmovne rcx, r14
call fcn.1400a8238
mov qword [rbp - 0x50], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x40], rax
lea rcx, [0x1400d1428]
test r14, r14
cmovne rcx, r14
call fcn.1400a8238
mov qword [rbp - 0x30], rax
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x50]
mov rdx, r13
lea rcx, [rbp + 0xa0]
call fcn.140009060
mov rbx, rax
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x30]
mov rdx, r13
lea rcx, [rbp + 0xa8]
call fcn.140009060
nop
lea rcx, [rbp + 0x88]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov r8, rax
lea rdx, [rbp - 0x58]
mov rcx, rsi
call fcn.140004500
movzx ebx, al
mov rcx, qword [rbp + 0xa8]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0xa0]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x30]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x40]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x50]
call fcn.1400a82b0
test bl, bl
je 0x1400176b6
cmp r15d, 0xffffffff
jne 0x1400175d0
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp + 0x20], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp + 0x18], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp + 0x38], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp + 0x10], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp + 0x40], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp + 0x48], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp + 0x30], rax
lea rcx, [0x1400d1428]
test r14, r14
cmovne rcx, r14
call fcn.1400a8238
mov qword [rbp + 0x28], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x48], rax
lea rcx, [0x1400d1428]
test r14, r14
cmovne rcx, r14
call fcn.1400a8238
mov qword [rbp - 0x38], rax
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x28]
mov rdx, r13
lea rcx, [rbp + 0x78]
call fcn.140009060
mov rbx, rax
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x38]
mov rdx, r13
lea rcx, [rbp + 0xb0]
call fcn.140009060
nop
movzx ecx, byte [rbp + 0x370]
mov dword [rsp + 0x80], r15d
xor r8d, r8d
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], r8
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x58], r8
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor r9d, r9d
or r8d, r15d
xor edx, edx
mov rcx, rsi
call fcn.140004870
mov r15d, eax
mov rcx, qword [rbp + 0xb0]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x78]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x38]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x48]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x28]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x30]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x48]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x40]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x10]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x38]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x18]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x20]
call fcn.1400a82b0
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x20], rax
lea rcx, [0x1400d1428]
test r14, r14
cmovne rcx, r14
call fcn.1400a8238
mov qword [rbp - 0x10], rax
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x10]
mov rdx, r13
lea rcx, [rbp + 0x98]
call fcn.140009060
nop
movzx ecx, byte [rbp + 0x370]
mov dword [rsp + 0x80], 0xffffffff
xor edx, edx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rdx
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rbp + 0x88]
mov qword [rsp + 0x58], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 8]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, r15d
mov edx, edi
mov rcx, rsi
call fcn.140004870
nop
mov rcx, qword [rbp + 0x98]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x10]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x20]
call fcn.1400a82b0
nop
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x1400176f3
mov rdi, qword [rbp + 0x60]
cmp rbx, rdi
je 0x1400176dd
mov rcx, qword [rbx]
call fcn.1400a82b0
invalid
invalid