Function at 0x18001f6e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180066180]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r13, rcx
xor r15d, r15d
mov dword [rbp - 0x78], r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov edi, 1
mov r9d, edi
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x18001f782
mov r14, qword [rsp + 0x68]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r15d
jmp 0x18001f90e
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18001f7c3
mov r14, qword [rsp + 0x70]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r15d
jmp 0x18001f90e
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, str.SoftwareWow6432Node_
test rdx, 0xffffffffffff0000
jne 0x18001f80e
movzx ebx, dx
mov ecx, ebx
call fcn.180002840
test rax, rax
je 0x18001f81f
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1800023e0
jmp 0x18001f81f
mov r8d, 0x15
lea rcx, [rsp + 0x58]
call fcn.180002020
nop
lea r8, str.MozillaMozilla_Firefox
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.180001c40
mov qword [rsp + 0x78], r15
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x18001f871
mov ebx, r15d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r15d
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001f88a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001f8a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
test ebx, ebx
je 0x18001f8f4
mov eax, dword [0x180069c80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0xb
jne 0x18001f8e7
call fcn.1800289f8
mov ecx, dword [0x180069c80]
cmp ecx, eax
jne 0x18001f8e7
dec ecx
mov dword [0x180069c80], ecx
mov rcx, r13
call fcn.180020030
jmp 0x18001fb50
call fcn.18001d950
test al, al
jne 0x18001f909
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x180069c80], eax
mov r14, qword [rsp + 0x40]
mov byte [rbp - 0x60], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp - 0x5f]
call fcn.18002c930
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r12, [0x180056ee0]
test r12, 0xffffffffffff0000
jne 0x18001f96f
movzx edi, r12w
mov ecx, edi
call fcn.180002840
test rax, rax
je 0x18001f987
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1800023e0
jmp 0x18001f982
mov r8d, 3
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.180002020
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x38], 0x400
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001fae3
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
ja 0x18001fae3
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x18001f9e5
cmp byte [rbp + rax - 0x61], 0
je 0x18001f9e9
jmp 0x18001fae3
mov byte [rbp - 0x60], 0
lea rax, [rbp - 0x60]
mov rdi, rsi
inc rdi
cmp byte [rax + rdi], 0
jne 0x18001f9f0
test edi, edi
jne 0x18001fa5d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x18001fae3
cmp dword [rdx + 0x10], 0
jge 0x18001fa31
cmp dword [rbx - 0xc], 0
jge 0x18001fa25
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov dword [rbx - 0x10], r15d
mov byte [rbx], 0
jmp 0x18001fae3
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001fa41
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r14, qword [rsp + 0x40]
jmp 0x18001fae3
mov r12d, dword [rbx - 0x10]
lea r15, [rbp - 0x60]
sub r15, rbx
test edi, edi
jns 0x18001fa77
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x18001fa99
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.180002c50
mov rbx, qword [rsp + 0x30]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp r15, r12
movsxd r12, edi
mov r9, r12
ja 0x18001fab6
lea r8, [r15 + rbx]
call fcn.180029ae8
jmp 0x18001fabf
lea r8, [rbp - 0x60]
call fcn.180028f24
cmp edi, dword [rbx - 0xc]
jg 0x18001fad8
mov dword [rbx - 0x10], edi
mov byte [r12 + rbx], 0
xor r15d, r15d
lea r12, [0x180056ee0]
jmp 0x18001fae3
mov ecx, 0x80070057
call fcn.180002bd0
int3
test r14, r14
je 0x18001faf6
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
cmp dword [rbx - 0x10], 0
je 0x18001fb32
mov rdx, r12
mov rcx, rbx
call fcn.180029c08
test eax, eax
je 0x18001fb32
lea rcx, [rbx - 0x18]
call fcn.180002110
add rax, 0x18
mov qword [r13], rax
lock add dword [rbx - 8], 0xffffffff
jg 0x18001fb50
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x18001fb49
mov rcx, r13
call fcn.180020030
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001fb50
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18001fb60
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r13
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1800289d0
lea r11, [rsp + 0x4b0]
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