Function at 0x14001dd84
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rbp + 0x400], rax
xor ebx, ebx
mov r14, r8
mov qword [rsp + 0x70], rbx
mov edi, ebx
mov dword [rsp + 0x60], ebx
mov rsi, rdx
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, 0x100
test eax, eax
je 0x14001ddea
cmp dword [rsp + 0x60], ebx
cmovne edi, ecx
lea rax, [rsp + 0x70]
or edi, 1
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftOffice16.0ClickToRunStorePackages
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001e025
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14001e01a
cmp dword [rsp + 0x60], ebx
jbe 0x14001e01a
mov edi, ebx
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x6c], 0x104
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x4e]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x6c]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x78], 0x4e
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x20]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x28], rax
mov edx, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001defd
cmp dword [rsp + 0x68], 1
jne 0x14001defd
mov r8d, dword [rsp + 0x6c]
lea rdx, [rbp - 0x20]
dec r8d
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x14001df0e
inc edi
cmp edi, dword [rsp + 0x60]
jae 0x14001e01a
jmp 0x14001de6d
mov eax, ebx
lea rcx, [rsi + 4]
cmp r14, 0xffffffff80000001
lea r8, [rbp - 0x20]
mov edx, 0x104
setne al
or r15, 0xffffffffffffffff
inc eax
mov r9, r15
mov dword [rsi], eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r14, [rsi + 0x20c]
mov r9, r15
mov rcx, r14
lea r8, [rbp - 0x70]
lea edx, [r15 + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov qword [rbp - 0x80], rbx
mov edi, ebx
mov dword [rsp + 0x64], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14001df81
cmp dword [rsp + 0x64], ebx
mov eax, 0x100
cmovne edi, eax
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x80]
or edi, 1
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001e01a
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rdx, str.JitV64
lea rax, [rbp + 0x1f0]
mov dword [rsp + 0x64], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e010
lea rcx, [rsi + 0x25a]
mov r9, r15
lea r8, [rbp + 0x1f0]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov bl, 1
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.14001f240
mov rbx, qword [rsp + 0x558]
add rsp, 0x510
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret