Function at 0x1400066e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x8e0]
sub rsp, 0x9e0
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x8d0], rax
mov rsi, rcx
xor r12d, r12d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x30], r12d
mov r15, r8
mov r14, rdx
call fcn.14000486c
mov rax, qword [rsp + 0x58]
mov ebx, 0x20019
mov dword [rsp + 0x38], r12d
test rax, rax
je 0x140006745
call qword [0x140009308]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x140006767
mov ebx, 0x8000ffff
jmp 0x140006938
cmp dword [rsp + 0x38], r12d
lea rdx, str.SOFTWAREMicrosoftOfficeClickToRun_appvMachineRegistryStoreIntegrationBackupSoftwareClasses.xml
mov eax, 0x20119
mov rcx, 0xffffffff80000002
cmovne ebx, eax
lea rax, [rsp + 0x40]
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006938
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], r12
xor edx, edx
mov dword [rsp + 0x34], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, r12d
test ebx, ebx
cmovns eax, dword [rsp + 0x34]
js 0x140006938
dec eax
mov ecx, r12d
cmp eax, 1
setbe cl
test ecx, ecx
je 0x14000675d
mov edx, dword [rsp + 0x30]
xor ecx, ecx
add rdx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x14000682a
mov ebx, 0x8007000e
jmp 0x140006938
mov r8d, dword [rsp + 0x30]
xor edx, edx
add r8, 2
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov dword [rsp + 0x34], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x30]
mov ecx, 0x8000ffff
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000692f
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x1400068a2
cmp edx, 2
jae 0x140006899
mov ebx, ecx
jmp 0x1400068a2
cmp word [rdx + rdi - 2], r12w
cmovne ebx, ecx
test ebx, ebx
js 0x14000692f
cmp word [rdi], r12w
jne 0x1400068b4
mov ebx, ecx
jmp 0x14000692f
mov r8, rdx
mov rcx, rdi
lea rdx, str.xmlfile
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
or r9, 0xffffffffffffffff
lea rcx, [rbp + 0xd0]
test eax, eax
jne 0x1400068ea
lea r8, str.SOFTWAREMicrosoftOfficeClickToRun_appvMachineRegistryStoreIntegrationBackupSoftwareClassesxmlfile
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
jmp 0x140006910
mov ebx, 0x400
lea r8, str.SOFTWAREClasses_
mov edx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r8, rdi
lea rcx, [rbp + 0xd0]
mov edx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov eax, dword [rsp + 0x38]
lea r9, [rbp + 0xd0]
mov r8, r15
mov dword [rsp + 0x20], eax
mov rdx, r14
mov rcx, rsi
call fcn.140005710
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140006948
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x8d0]
xor rcx, rsp
call fcn.1400070a0
add rsp, 0x9e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret