Function at 0x14000f3dc
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xaa0]
sub rsp, 0xba0
mov rax, qword [0x1400736a0]
xor rax, rsp
mov qword [rbp + 0xa90], rax
mov rsi, r8
lea rcx, [rsp + 0x40]
call fcn.140002130
nop
xor r14d, r14d
mov word [rsp + 0x50], r14w
mov rax, qword [rsp + 0x40]
cmp dword [rax - 0x10], r14d
jne 0x14000f43d
lea rdx, [rax - 0x18]
or rbx, 0xffffffffffffffff
jmp 0x14000f7e7
lea rdx, str.CLSID
lea rcx, [rsp + 0x40]
call fcn.14000d22c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r12d, 0x20019
mov r9d, r12d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov r15, 0xffffffff80000000
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x80
test eax, eax
jne 0x14000f4db
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f4d0
cmp dword [rsp + 0x34], 1
jne 0x14000f4d0
lea r8, [rbp + 0x150]
lea edx, [rdi - 0x40]
lea rcx, [rsp + 0x50]
call fcn.14003cb7c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14000f4e7
test rax, rax
je 0x14000f7de
lea r8, str.CLSID_
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.14003cb7c
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.14003ce30
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, [rbp + 0x50]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000f588
lea r8, str.Wow6432NodeCLSID_
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.14003cb7c
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.14003ce30
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, [rbp + 0x50]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f7de
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, str.TypeLib
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f609
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f7d2
cmp dword [rsp + 0x34], 1
jne 0x14000f7d2
mov r9, rsi
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x150]
call fcn.14000ece4
jmp 0x14000f7c8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, str.InprocServer32
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, 0x104
test eax, eax
jne 0x14000f711
mov dword [rsp + 0x30], 0x105
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f706
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14000f706
cmp ecx, 2
jne 0x14000f6ba
mov r8d, r15d
lea rdx, [rbp + 0x670]
lea rcx, [rbp + 0x250]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000f6ba
lea r8, [rbp + 0x670]
mov edx, r15d
lea rcx, [rbp + 0x250]
call fcn.14003cb7c
mov r9, rsi
lea r8, [rbp + 0x250]
lea rdx, [rsp + 0x50]
call fcn.14000f070
mov edi, eax
test eax, eax
jle 0x14000f706
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x14000f6ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x14000f7ff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, str.LocalServer32
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f7de
mov dword [rsp + 0x30], 0x105
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x460]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f7d2
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14000f7d2
cmp ecx, 2
jne 0x14000f7b4
mov r8d, r15d
lea rdx, [rbp + 0x880]
lea rcx, [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000f7b4
lea r8, [rbp + 0x880]
mov rdx, r15
lea rcx, [rbp + 0x460]
call fcn.14003cb7c
mov r9, rsi
lea r8, [rbp + 0x460]
lea rdx, [rsp + 0x50]
call fcn.14000f070
test eax, eax
mov edi, eax
jg 0x14000f6d4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000f7fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rbp + 0xa90]
xor rcx, rsp
call fcn.140031760
lea r11, [rsp + 0xba0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret