Function at 0x1400048a0
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 [0x14000a2a8]
xor rax, rsp
mov qword [rbp + 0x8d0], rax
xor r12d, r12d
mov rsi, rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x30], r12d
mov edi, r12d
mov r15, r8
mov r14, rdx
call fcn.1400059b8
lea rcx, str.c2r64.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, [rsp + 0x50]
mov qword [rbp + 0xc0], rax
call fcn.1400050a8
mov rax, qword [rsp + 0x58]
mov ebx, 0x20019
mov dword [rsp + 0x34], r12d
test rax, rax
je 0x140004921
call rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x140004943
mov ebx, 0x8000ffff
jmp 0x140004ac0
cmp dword [rsp + 0x34], r12d
mov eax, 0x20119
mov rdx, qword [str.SOFTWAREMicrosoftOffice15.0ClickToRun_appvMachineRegistryStoreIntegrationBackupSoftwareClasses.xml]
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 0x140004ac0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], r12
xor edx, edx
mov dword [rsp + 0x38], 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 + 0x38]
js 0x140004ac0
dec eax
cmp eax, 1
ja 0x140004939
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 0x1400049fe
mov ebx, 0x8007000e
jmp 0x140004ac0
mov r8d, dword [rsp + 0x30]
xor edx, edx
add r8, 2
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
call fcn.140004094
mov ebx, eax
test eax, eax
js 0x140004ac0
cmp word [rdi], r12w
je 0x140004939
mov r8d, dword [rsp + 0x30]
mov rcx, rdi
mov rdx, qword [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 0x140004a7b
mov r8, qword [str.SOFTWAREMicrosoftOffice15.0ClickToRun_appvMachineRegistryStoreIntegrationBackupSoftwareClassesxmlfile]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
jmp 0x140004aa1
mov r8, qword [str.SOFTWAREClasses_]
mov ebx, 0x400
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 + 0x34]
lea r9, [rbp + 0xd0]
mov r8, r15
mov dword [rsp + 0x20], eax
mov rdx, r14
mov rcx, rsi
call fcn.140005ad4
mov ebx, eax
mov rcx, rdi
call fcn.140003310
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140004ad8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x8d0]
xor rcx, rsp
call fcn.140006dd0
add rsp, 0x9e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret