Function at 0x14001ad40
Capabilities:
Get thread local storage value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x200
mov qword [rbp + 0xe8], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov r13d, r9d
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov ecx, 2
call fcn.1400a82f0
mov qword [rbp - 0x40], rax
xor r14d, r14d
mov word [rax], r14w
lea ecx, [r14 + 2]
call fcn.1400a82f0
mov qword [rbp], rax
mov word [rax], r14w
lea ecx, [r14 + 2]
call fcn.1400a82f0
mov qword [rbp + 0x38], rax
mov word [rax], r14w
lea ecx, [r14 + 2]
call fcn.1400a82f0
mov qword [rbp + 0x30], rax
mov word [rax], r14w
lea ecx, [r14 + 2]
call fcn.1400a82f0
mov qword [rbp + 8], rax
mov word [rax], r14w
lea ecx, [r14 + 2]
call fcn.1400a82f0
mov qword [rbp + 0x20], rax
mov word [rax], r14w
mov dword [rbp - 0x20], r14d
cmp r13d, 0xffffffff
jne 0x14001afb9
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 8], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x18], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x28], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x30], 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 - 0x80], rax
lea rcx, [0x1400d1428]
test rsi, rsi
cmovne rcx, rsi
call fcn.1400a8238
mov qword [rbp - 0x78], rax
lea rcx, [0x1400d1428]
call fcn.1400a8238
mov qword [rbp - 0x70], rax
lea rcx, [0x1400d1428]
test rsi, rsi
cmovne rcx, rsi
call fcn.1400a8238
mov qword [rbp - 0x68], rax
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x78]
mov rdx, rdi
lea rcx, [rbp + 0x28]
call fcn.140009060
mov rbx, rax
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x68]
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.140009060
nop
mov dword [rsp + 0x80], r13d
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r14
lea rcx, [rbp - 8]
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x58], r14
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor r9d, r9d
or r8d, r13d
xor edx, edx
mov rcx, r12
call fcn.140004870
mov r13d, eax
mov rcx, qword [rbp + 0x18]
call fcn.1400a82b0
nop
mov rcx, qword [rbp + 0x28]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x68]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x70]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x78]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x80]
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 - 0x30]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x28]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 0x18]
call fcn.1400a82b0
nop
mov rcx, qword [rbp - 8]
call fcn.1400a82b0
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1400075c0
test eax, eax
jne 0x14001b9eb
mov edi, r14d
mov dword [rbp + 0x148], r14d
lea ecx, [rax + 2]
call fcn.1400a82f0
mov qword [rbp - 0x80], rax
mov word [rax], r14w
mov ecx, 2
call fcn.1400a82f0
mov qword [rbp - 0x78], rax
mov word [rax], r14w
mov ecx, 2
call fcn.1400a82f0
mov qword [rbp - 0x68], rax
mov word [rax], r14w
mov ecx, 2
call fcn.1400a82f0
mov qword [rbp - 0x60], rax
mov word [rax], r14w
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r14
lea r8, [rbp - 0x78]
xor edx, edx
mov rcx, qword [rbp + 0x10]
call fcn.1400136a0
test eax, eax
jne 0x14001b97e
nop
mov rbx, qword [rbp + 0x20]
mov rcx, qword [rbp - 0x78]
call fcn.1400a8238
mov qword [rbp + 0x20], rax
mov rcx, rbx
call fcn.1400a82b0
mov rbx, qword [rbp - 0x78]
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.1400075c0
test eax, eax
jne 0x14001b0e3
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LoadBehavior
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp - 0x20], 1
seta r15b
lea r8, str.CLSID
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0xa0]
call fcn.140022b00
nop
mov rbx, qword [rax]
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call fcn.1400075c0
test eax, eax
invalid
xchg esp, eax