Function at 0x14004a500
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa08]
sub rsp, 0xae0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401ace90]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
mov r13, rcx
mov qword [rbp - 0x70], rcx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov esi, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x48], r15
mov qword [rbp - 0x80], r15
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14004a59f
mov dword [rsp + 0x40], r15d
mov ebx, r15d
mov rsi, qword [rbp - 0x80]
mov qword [rsp + 0x38], rsi
mov r11d, dword [0x1401b4d80]
mov ecx, r11d
imul ecx, r11d
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 6
jne 0x14004a602
mov r8d, r15d
lea r9, [rbp - 0x60]
mov r10d, r11d
nop word [rax + rax]
lea ecx, [r11 + r8]
mov eax, r10d
cdq
idiv ecx
mov dword [r9], edx
inc r8d
dec r10d
lea r9, [r9 + 4]
movsxd rax, r8d
cmp rax, 0x8a
jb 0x14004a5e0
or r14, 0xffffffffffffffff
test ebx, ebx
je 0x14004a7ee
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 2]
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004a669
mov eax, r15d
test rsi, rsi
je 0x14004a652
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x38], rsi
test eax, eax
je 0x14004a7ee
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, str.MozillaMozilla_Firefox
test rdx, 0xffffffffffff0000
jne 0x14004a6b4
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004a6bf
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400026c0
jmp 0x14004a6bf
lea rcx, [rsp + 0x60]
call fcn.140003500
nop
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, str.SoftwareWow6432Node_
test rdx, 0xffffffffffff0000
jne 0x14004a70a
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004a71b
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400026c0
jmp 0x14004a71b
mov r8d, 0x15
lea rcx, [rsp + 0x58]
call fcn.1400023d0
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x78]
call fcn.14000f640
nop
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14004a784
mov ebx, r15d
test rsi, rsi
je 0x14004a775
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a79d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a7b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a7d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
je 0x14004a7e9
mov rcx, r13
call fcn.14004af60
mov dword [rsp + 0x50], 1
jmp 0x14004aa92
mov rsi, qword [rsp + 0x38]
mov word [rbp + 0x1d0], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x1d2]
call fcn.1400cd020
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r12, [0x140143140]
test r12, 0xffffffffffff0000
jne 0x14004a856
movzx edi, r12w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004a86e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400026c0
jmp 0x14004a869
mov r8d, 3
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.1400023d0
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x54], 0x800
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004a9f5
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x14004a9f5
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x14004a8de
test al, 1
jne 0x14004a9f5
shr rax, 1
cmp word [rbp + rax*2 + 0x1ce], 0
je 0x14004a8e6
jmp 0x14004a9f5
mov word [rbp + 0x1d0], r15w
lea rax, [rbp + 0x1d0]
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004a8f0
test edi, edi
jne 0x14004a95f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004a9f5
cmp dword [rdx + 0x10], 0
jge 0x14004a933
cmp dword [rbx - 0xc], 0
jge 0x14004a926
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14004a9f5
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a943
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
mov rsi, qword [rsp + 0x38]
jmp 0x14004a9f5
mov r12d, dword [rbx - 0x10]
lea r15, [rbp + 0x1d0]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x14004a97f
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004a9a1
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400024c0
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x14004a9c5
lea r8, [rbx + r15*2]
call fcn.1400c8404
jmp 0x14004a9d1
lea r8, [rbp + 0x1d0]
call fcn.1400c8500
cmp edi, dword [rbx - 0xc]
jg 0x14004a9ea
mov dword [rbx - 0x10], edi
xor r15d, r15d
mov word [r12 + rbx], r15w
lea r12, [0x140143140]
jmp 0x14004a9f5
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x14004aa08
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
cmp dword [rbx - 0x10], 0
je 0x14004aa6d
mov rcx, r15
nop word [rax + rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [r12 + rcx*2 - 2]
jne 0x14004aa3a
cmp rcx, 4
jne 0x14004aa20
mov eax, r15d
jmp 0x14004aa3f
sbb eax, eax
or eax, 1
test eax, eax
je 0x14004aa6d
lea rcx, [rbx - 0x18]
call fcn.140002520
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x50], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14004aa92
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x14004aa8b
mov rcx, r13
call fcn.14004af60
mov dword [rsp + 0x50], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004aa92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14004aaa7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov rax, r13
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.1400c7be0
lea r11, [rsp + 0xae0]
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