Function at 0x14004f6e0
Capabilities:
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 - 0x80], 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 + 0x9e0], rax
mov r14, rcx
mov qword [rbp - 0x78], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004fa13
mov dword [rsp + 0x68], r15d
mov r13, qword [rsp + 0x58]
mov qword [rsp + 0x60], r13
mov word [rbp + 0x1e0], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x1e2]
call fcn.1400d1cf0
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x34], 0x800
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [0x14014e00c]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004f82d
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
jbe 0x14004f801
lea edi, [r15 + 0xd]
jmp 0x14004f82d
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14004f822
test al, 1
jne 0x14004f81b
shr rax, 1
cmp word [rbp + rax*2 + 0x1de], 0
je 0x14004f82a
mov edi, 0xd
jmp 0x14004f82d
mov word [rbp + 0x1e0], r15w
mov edi, r15d
mov eax, dword [0x1401c6d80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
or rsi, 0xffffffffffffffff
cmp ecx, 0xf
jne 0x14004f896
movabs rax, 0x445968715a7a47
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x78]
mov rcx, rsi
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004f871
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400cbef8
mov rcx, rax
call fcn.1400cd9ec
test edi, edi
jne 0x14004f9ae
lea rax, [rbp + 0x1e0]
mov rdi, rsi
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004f8b0
test edi, edi
jne 0x14004f91f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004f9ae
cmp dword [rdx + 0x10], 0
jge 0x14004f8f3
cmp dword [rbx - 0xc], 0
jge 0x14004f8e6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14004f9ae
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f903
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 + 0x48], rbx
mov r13, qword [rsp + 0x58]
jmp 0x14004f9ae
mov r12d, dword [rbx - 0x10]
lea r15, [rbp + 0x1e0]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x14004f93f
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 0x14004f961
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1400024e0
mov rbx, qword [rsp + 0x48]
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 0x14004f985
lea r8, [rbx + r15*2]
call fcn.1400cd0d4
jmp 0x14004f991
lea r8, [rbp + 0x1e0]
call fcn.1400cd294
cmp edi, dword [rbx - 0xc]
jg 0x14004f9a3
mov dword [rbx - 0x10], edi
xor r15d, r15d
mov word [r12 + rbx], r15w
jmp 0x14004f9ae
mov ecx, 0x80070057
call fcn.140001920
int3
test r13, r13
je 0x14004f9c1
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r15d
lea rcx, [rbx - 0x18]
call fcn.140002540
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14004f9f5
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14004fb76
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r15
jmp 0x14004fb76
lea rcx, [rsp + 0x38]
call fcn.14002ba30
nop
mov rax, qword [rsp + 0x38]
mov edx, dword [rax - 0x10]
test edx, edx
je 0x14004fb01
lea ecx, [rdx - 1]
test ecx, ecx
js 0x14004faf6
cmp ecx, edx
jg 0x14004faf6
movsxd rcx, ecx
cmp word [rax + rcx*2], 0x5c
je 0x14004fa62
mov r8d, 1
lea rdx, [0x14014e0ac]
lea rcx, [rsp + 0x38]
call fcn.140010000
lea r8, str.Mozilla_Firefox_firefox.exe
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.14001b610
nop
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, r15d
cmp rax, 0xffffffffffffffff
setne cl
test ecx, ecx
je 0x14004fadb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.140002540
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fad6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14004fb5c
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fb01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004fb01
mov ecx, 0x80070057
call fcn.140001920
int3
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
lea rdx, [0x14014e03c]
test rdx, 0xffffffffffff0000
jne 0x14004fb48
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004fb54
mov r8d, ebx
mov rdx, rax
mov rcx, r14
call fcn.1400026e0
jmp 0x14004fb54
xor r8d, r8d
mov rcx, r14
call fcn.1400023f0
nop
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fb76
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov dword [rsp + 0x68], r15d
mov rax, r14
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.1400cc8b0
lea r11, [rsp + 0xaf0]
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