Function at 0x1400a7810
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa18]
sub rsp, 0xaf0
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403b88b0]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
cmp dword [0x1403dbab4], 0
jne 0x1400a7b86
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x1e0]
call fcn.1402841a0
mov dword [rsp + 0x68], 0x200
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], r14d
mov qword [rbp - 0x70], r14
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x80]
call fcn.1400146e0
lea r13d, [r14 + 1]
mov rbx, qword [rbp - 0x80]
test eax, eax
jne 0x1400a7b4a
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400a7b39
mov esi, r14d
lea r15, str.Asus_SonicStudio3Setup
lea r12, str.Asus_SonicRadar3Setup
nop word [rax + rax]
mov dword [rsp + 0x6c], 0x200
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x6c]
lea r8, [rbp + 0x5e0]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400a7b2d
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x1400a7bb6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r9, [rbp + 0x5e0]
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea rdx, [0x14032f5c8]
lea rcx, [rsp + 0x78]
call fcn.14000dd70
mov qword [rbp - 0x48], r14
mov dword [rbp - 0x40], r14d
mov qword [rbp - 0x38], r14
mov r9d, 0x20019
mov rbx, qword [rsp + 0x78]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x48]
call fcn.1400146e0
test eax, eax
jne 0x1400a7afd
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x20]
call fcn.1402841a0
mov dword [rsp + 0x64], 0x200
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.DisplayName
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a7aea
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x1400a7aea
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x1400a7a6f
test al, 1
jne 0x1400a7aea
shr rax, 1
cmp word [rbp + rax*2 - 0x22], 0
je 0x1400a7a74
jmp 0x1400a7aea
mov word [rbp - 0x20], r14w
lea rdx, [rbp - 0x20]
mov rax, 0xffffffffffffffff
nop
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r15 + rax*2 + 2]
jne 0x1400a7aa2
add rax, 2
cmp rax, 0x17
je 0x1400a7af4
movzx ecx, word [rdx + rax*2]
cmp cx, word [r15 + rax*2]
je 0x1400a7a80
lea r8, [rbp - 0x20]
mov rcx, r14
nop dword [rax]
movzx edx, word [r8 + rcx*2]
movzx eax, word [r12 + rcx*2]
sub edx, eax
jne 0x1400a7ad8
movzx edx, word [r8 + rcx*2 + 2]
movzx eax, word [r12 + rcx*2 + 2]
sub edx, eax
jne 0x1400a7ad8
add rcx, 2
cmp rcx, 0x16
jne 0x1400a7ab0
mov eax, dword [0x1403dbaac]
test edx, edx
cmove eax, r13d
mov dword [0x1403dbaac], eax
test rdi, rdi
je 0x1400a7b0d
mov rcx, rdi
jmp 0x1400a7b06
mov dword [0x1403dbab0], r13d
jmp 0x1400a7aea
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400a7b0d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a7b29
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x80]
inc esi
cmp esi, dword [rsp + 0x60]
jb 0x1400a7940
test rbx, rbx
je 0x1400a7b4a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r14
mov rax, qword [0x1403db8c8]
inc dword [rax + 0x1d60]
test dword [rax + 0x94], 0x800
mov eax, dword [0x1403dbab0]
cmovne eax, r14d
mov dword [0x1403dbab0], eax
mov dword [0x1403dbab4], r13d
test rbx, rbx
je 0x1400a7b86
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.140281bf0
lea r11, [rsp + 0xaf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000dc70
int3