Function at 0x14004f080
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7e8]
sub rsp, 0x8c0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401bee90]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r13, rcx
mov qword [rbp - 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 1]
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x14004f124
mov dword [rsp + 0x48], r12d
mov r14, qword [rsp + 0x78]
mov qword [rsp + 0x40], r14
jmp 0x14004f38c
mov qword [rbp - 0x78], r12
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14014fe40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004f165
mov dword [rsp + 0x48], r12d
mov r14, qword [rbp - 0x78]
mov qword [rsp + 0x40], r14
jmp 0x14004f38c
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, str.MozillaMozilla_Firefox
test rdx, 0xffffffffffff0000
jne 0x14004f1b0
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004f1bb
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400026e0
jmp 0x14004f1bb
lea rcx, [rsp + 0x68]
call fcn.140003550
nop
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
lea r15, [0x14014fe10]
test r15, 0xffffffffffff0000
jne 0x14004f20b
movzx ebx, r15w
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004f27c
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400026e0
jmp 0x14004f27c
mov r14d, dword [rbx - 0x10]
mov rdi, r15
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x15
or eax, ecx
jge 0x14004f23e
mov edx, 0x15
lea rcx, [rsp + 0x58]
call fcn.1400024e0
mov rbx, qword [rsp + 0x58]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 0x2a
mov rcx, rbx
add rdx, rdx
cmp rdi, r14
ja 0x14004f25e
lea r8, [rbx + rdi*2]
call fcn.1400cd0d4
jmp 0x14004f266
mov r8, r15
call fcn.1400cd294
cmp dword [rbx - 0xc], 0x15
jl 0x14004f6a1
mov dword [rbx - 0x10], 0x15
mov word [rbx + 0x2a], r12w
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.14000f540
nop
mov qword [rbp - 0x80], r12
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x20], rcx
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 0x14004f2cd
mov dword [rsp + 0x48], r12d
mov ebx, r12d
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f2e6
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 0x14004f300
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f319
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
je 0x14004f387
mov r9d, dword [0x1401c6d80]
lea r8d, [r9 + 1]
mov ecx, r8d
imul ecx, r9d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 5
cmove r9d, r8d
mov dword [0x1401c6d80], r9d
mov rcx, r13
call fcn.14004fbb0
mov dword [rsp + 0x38], 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004f37a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
mov rax, r13
jmp 0x14004f6ac
mov r14, qword [rsp + 0x40]
mov word [rbp - 0x50], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x4e]
call fcn.1400d1cf0
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r8, [0x14014fef8]
test r8, 0xffffffffffff0000
jne 0x14004f3f7
movzx edi, r8w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004f46c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400026e0
mov rbx, qword [rsp + 0x30]
jmp 0x14004f46c
mov r15d, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 3
or eax, ecx
jge 0x14004f431
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.1400024e0
mov rbx, qword [rsp + 0x30]
lea r8, [0x14014fef8]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 6
mov rcx, rbx
add rdx, rdx
cmp rdi, r15
ja 0x14004f451
lea r8, [rbx + rdi*2]
call fcn.1400cd0d4
jmp 0x14004f456
call fcn.1400cd294
cmp dword [rbx - 0xc], 3
jl 0x14004f696
mov dword [rbx - 0x10], 3
mov word [rbx + 6], r12w
mov dword [rsp + 0x60], 0x800
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004f5dc
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x14004f5dc
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14004f4d6
test al, 1
jne 0x14004f5dc
shr rax, 1
cmp word [rbp + rax*2 - 0x52], 0
je 0x14004f4db
jmp 0x14004f5dc
mov word [rbp - 0x50], r12w
lea rax, [rbp - 0x50]
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004f4e2
test edi, edi
jne 0x14004f551
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004f5dc
cmp dword [rdx + 0x10], 0
jge 0x14004f525
cmp dword [rbx - 0xc], 0
jge 0x14004f518
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x14004f5dc
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f535
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 r14, qword [rsp + 0x40]
jmp 0x14004f5dc
mov r12d, dword [rbx - 0x10]
lea r15, [rbp - 0x50]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x14004f56e
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 0x14004f590
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400024e0
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 0x14004f5b4
lea r8, [rbx + r15*2]
call fcn.1400cd0d4
jmp 0x14004f5bd
lea r8, [rbp - 0x50]
call fcn.1400cd294
cmp edi, dword [rbx - 0xc]
jg 0x14004f5d1
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
jmp 0x14004f5dc
mov ecx, 0x80070057
call fcn.140001920
int3
test r14, r14
je 0x14004f5ef
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
cmp dword [rbx - 0x10], 0
je 0x14004f669
mov rcx, r12
lea rdx, [0x14014fe88]
nop word [rax + rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x14004f629
cmp rcx, 4
jne 0x14004f610
mov eax, r12d
jmp 0x14004f62e
sbb eax, eax
or eax, 1
test eax, eax
je 0x14004f669
lea rcx, [rbx - 0x18]
call fcn.140002540
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x38], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14004f365
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004f365
mov rcx, r13
call fcn.14004fbb0
mov dword [rsp + 0x38], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f365
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004f365
mov ecx, 0x80070057
call fcn.140001920
nop
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400cc8b0
lea r11, [rsp + 0x8c0]
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