Function at 0x14004e100
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 [0x1401bce90]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r12, rcx
mov qword [rbp - 0x60], rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x78], r15
lea rax, [rsp + 0x78]
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]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x14004e1a3
mov dword [rsp + 0x48], r15d
mov r14, qword [rsp + 0x78]
mov qword [rsp + 0x40], r14
jmp 0x14004e351
mov qword [rbp - 0x78], r15
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004e1e4
mov dword [rsp + 0x48], r15d
mov r14, qword [rbp - 0x78]
mov qword [rsp + 0x40], r14
jmp 0x14004e351
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, str.MozillaMozilla_Firefox
test rdx, 0xffffffffffff0000
jne 0x14004e22f
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004e23a
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400025a0
jmp 0x14004e23a
lea rcx, [rsp + 0x68]
call fcn.140003350
nop
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, str.SoftwareWow6432Node_
test rdx, 0xffffffffffff0000
jne 0x14004e285
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004e296
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400025a0
jmp 0x14004e296
mov r8d, 0x15
lea rcx, [rsp + 0x60]
call fcn.1400022b0
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.14000f690
nop
mov qword [rbp - 0x80], r15
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 0x14004e2e7
mov dword [rsp + 0x48], r15d
mov ebx, r15d
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 0x14004e300
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 0x14004e31a
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 0x14004e333
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
je 0x14004e34c
mov rcx, r12
call fcn.14004ead0
mov dword [rsp + 0x38], 1
jmp 0x14004e642
mov r14, qword [rsp + 0x40]
mov word [rbp - 0x50], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x4e]
call fcn.1400d3710
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r13, [0x140152530]
test r13, 0xffffffffffff0000
jne 0x14004e3b3
movzx edi, r13w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004e3cb
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400025a0
jmp 0x14004e3c6
mov r8d, 3
mov rdx, r13
lea rcx, [rsp + 0x30]
call fcn.1400022b0
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x58], 0x800
lea rax, [rsp + 0x58]
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 0x14004e541
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x14004e541
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x14004e435
test al, 1
jne 0x14004e541
shr rax, 1
cmp word [rbp + rax*2 - 0x52], 0
je 0x14004e43a
jmp 0x14004e541
mov word [rbp - 0x50], r15w
lea rax, [rbp - 0x50]
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004e441
test edi, edi
jne 0x14004e4b0
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004e541
cmp dword [rdx + 0x10], 0
jge 0x14004e484
cmp dword [rbx - 0xc], 0
jge 0x14004e477
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14004e541
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e494
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 0x14004e541
mov r13d, dword [rbx - 0x10]
lea r15, [rbp - 0x50]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x14004e4cd
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 0x14004e4ef
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400023a0
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x14004e513
lea r8, [rbx + r15*2]
call fcn.1400ceaf4
jmp 0x14004e51c
lea r8, [rbp - 0x50]
call fcn.1400cebf0
cmp edi, dword [rbx - 0xc]
jg 0x14004e536
mov dword [rbx - 0x10], edi
xor r15d, r15d
mov word [r13 + rbx], r15w
lea r13, [0x140152530]
jmp 0x14004e541
mov ecx, 0x80070057
call fcn.140001920
int3
test r14, r14
je 0x14004e554
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov r8d, dword [0x1401c4d60]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
cmp ecx, 3
jne 0x14004e5c0
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x141
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400cd918
mov rcx, rax
call fcn.1400cf37c
cmp dword [rbx - 0x10], 0
je 0x14004e61d
mov rcx, r15
nop dword [rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [r13 + rcx*2 - 2]
jne 0x14004e5ea
cmp rcx, 4
jne 0x14004e5d0
mov eax, r15d
jmp 0x14004e5ef
sbb eax, eax
or eax, 1
test eax, eax
je 0x14004e61d
lea rcx, [rbx - 0x18]
call fcn.140002400
add rax, 0x18
mov qword [r12], rax
mov dword [rsp + 0x38], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14004e642
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x14004e63b
mov rcx, r12
call fcn.14004ead0
mov dword [rsp + 0x38], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e642
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 0x14004e657
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov rax, r12
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400ce2d0
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