Function at 0x1400168c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3a8]
sub rsp, 0x480
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400625e0]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x5c], r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov r12d, 1
mov r9d, r12d
lea r8, str.SoftwareMozillaMozilla_Firefox
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.1400028e0
test eax, eax
je 0x14001698a
mov r9d, r12d
lea r8, str.SoftwareMozillaMozilla_Firefox
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.1400028e0
test eax, eax
je 0x14001698a
mov r9d, r12d
lea r8, str.SoftwareWow6432NodeMozillaMozilla_Firefox
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.1400028e0
test eax, eax
je 0x14001698a
mov rcx, r14
call fcn.1400163a0
jmp 0x140016bde
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0x71]
call fcn.14002b2f0
lea rcx, [0x1400622e0]
mov rax, qword [0x1400622e0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r13, [0x140046800]
test r13, 0xffffffffffff0000
jne 0x1400169ef
movzx edi, r13w
xor edx, edx
mov ecx, edi
call fcn.1400017a0
test rax, rax
je 0x140016a07
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002140
jmp 0x140016a02
mov r8d, 3
mov rdx, r13
lea rcx, [rsp + 0x30]
call fcn.140002fd0
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x38], 0x400
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x140016b6d
mov eax, dword [rsp + 0x58]
dec eax
cmp eax, 1
ja 0x140016b6d
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140016a6c
cmp byte [rsp + rax + 0x6f], 0
je 0x140016a71
jmp 0x140016b6d
mov byte [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov rdi, rsi
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140016a80
test edi, edi
jne 0x140016ae8
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140016b6d
cmp dword [rdx + 0x10], 0
jge 0x140016ac1
cmp dword [rbx - 0xc], 0
jge 0x140016ab5
mov ecx, 0x80070057
call fcn.140001850
int3
mov dword [rbx - 0x10], r15d
mov byte [rbx], 0
jmp 0x140016b6d
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140016ad1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140016b6d
mov r13d, dword [rbx - 0x10]
lea r15, [rsp + 0x70]
sub r15, rbx
test edi, edi
jns 0x140016b03
mov ecx, 0x80070057
call fcn.140001850
int3
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r12d
jge 0x140016b22
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400029e0
mov rbx, qword [rsp + 0x30]
movsxd r12, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, r12
cmp r15, r13
ja 0x140016b3f
lea r8, [r15 + rbx]
call fcn.1400296b4
jmp 0x140016b49
lea r8, [rsp + 0x70]
call fcn.140029610
cmp edi, dword [rbx - 0xc]
jg 0x140016b62
mov dword [rbx - 0x10], edi
mov byte [r12 + rbx], 0
xor r15d, r15d
lea r13, [0x140046800]
jmp 0x140016b6d
mov ecx, 0x80070057
call fcn.140001850
int3
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140016b85
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
cmp dword [rbx - 0x10], 0
je 0x140016bc0
mov rdx, r13
mov rcx, rbx
call fcn.140029d78
test eax, eax
je 0x140016bc0
lea rcx, [rbx - 0x18]
call fcn.140001870
add rax, 0x18
mov qword [r14], rax
lock add dword [rbx - 8], 0xffffffff
jg 0x140016bde
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x140016bd7
mov rcx, r14
call fcn.1400163a0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140016bde
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140016bee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r14
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14002b2c0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret