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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xcb0]
sub rsp, 0xdb0
mov rax, qword [0x1400736a0]
xor rax, rsp
mov qword [rbp + 0xca0], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
lea rdx, str.winmgmts
mov rcx, rdi
call fcn.140037ddc
xor r15d, r15d
test eax, eax
je 0x14000cd3a
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140002130
nop
mov word [rsp + 0x70], r15w
mov word [rbp + 0x280], r15w
mov rax, qword [rsp + 0x40]
cmp dword [rax - 0x10], r15d
jne 0x14000c836
lea rdx, [rax - 0x18]
or ebx, 0xffffffff
jmp 0x14000cd24
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 r13, 0xffffffff80000000
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x14000c8dd
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x480]
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 0x14000c8cd
cmp dword [rsp + 0x34], 1
jne 0x14000c8cd
lea r8, [rbp + 0x480]
lea edx, [rbx + 0x41]
lea rcx, [rbp + 0x280]
call fcn.14003cb7c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000ca9d
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140002130
nop
lea rdx, str.CurVer
lea rcx, [rsp + 0x50]
call fcn.14000d22c
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ca7e
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x480]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ca7e
cmp dword [rsp + 0x34], 1
jne 0x14000ca7e
lea rdx, [rbp + 0x480]
lea rcx, [rsp + 0x48]
call fcn.140002130
nop
mov rax, qword [rsp + 0x48]
cmp dword [rax - 0x10], r15d
jne 0x14000c9cb
lea rdx, [rax - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000c9a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000cd1b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14000cd1b
lea rdx, str.CLSID
lea rcx, [rsp + 0x48]
call fcn.14000d22c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ca5e
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x480]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ca52
cmp dword [rsp + 0x34], 1
jne 0x14000ca52
lea r8, [rbp + 0x480]
lea edx, [rax + 0x40]
lea rcx, [rbp + 0x280]
call fcn.14003cb7c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000ca7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000ca9d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.CLSID_
mov edi, 0x80
mov edx, edi
lea rcx, [rbp + 0x180]
call fcn.14003cb7c
lea r8, [rbp + 0x280]
mov edx, edi
lea rcx, [rbp + 0x180]
call fcn.14003ce30
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, [rbp + 0x180]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cd1b
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, str.TypeLib
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cb7e
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x480]
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 0x14000cd0f
cmp dword [rsp + 0x34], 1
jne 0x14000cd0f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, r14
lea rdx, [rbp + 0x480]
mov rcx, rsi
call fcn.14000c3a8
jmp 0x14000cc3d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, str.InprocServer32
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x105
test eax, eax
jne 0x14000cc71
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
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 0x14000cc66
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14000cc66
cmp ecx, 2
jne 0x14000cc25
mov edi, 0x104
mov r8d, edi
lea rdx, [rbp + 0x880]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000cc25
lea r8, [rbp + 0x880]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14003cb7c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000cd68
mov edi, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x14000cc5f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
jmp 0x14000cd3c
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 + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cd1b
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
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 0x14000cd0f
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14000cd0f
cmp ecx, 2
jne 0x14000cc25
mov edi, 0x104
mov r8d, edi
lea rdx, [rbp + 0xa90]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000cc25
lea r8, [rbp + 0xa90]
jmp 0x14000cc18
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 0x14000cd3a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rbp + 0xca0]
xor rcx, rsp
call fcn.140031760
mov rbx, qword [rsp + 0xe08]
add rsp, 0xdb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret