Function at 0x14004cc20
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 [0x1401b5e90]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r13, rcx
mov qword [rbp - 0x60], rcx
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x50], r14
mov r8d, dword [0x1401bdd80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
or r15, 0xffffffffffffffff
cmp ecx, 4
jne 0x14004ccec
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, 0x2f4
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400cb128
mov rcx, rax
call fcn.1400cc208
mov qword [rsp + 0x78], r14
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004cd30
mov dword [rsp + 0x48], r14d
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x40], rsi
jmp 0x14004cf5b
mov qword [rbp - 0x78], r14
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 0x14004cd71
mov dword [rsp + 0x48], r14d
mov rsi, qword [rbp - 0x78]
mov qword [rsp + 0x40], rsi
jmp 0x14004cf5b
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, str.MozillaMozilla_Firefox
test rdx, 0xffffffffffff0000
jne 0x14004cdbc
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004cdc7
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140002690
jmp 0x14004cdc7
lea rcx, [rsp + 0x68]
call fcn.140003600
nop
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, str.SoftwareWow6432Node_
test rdx, 0xffffffffffff0000
jne 0x14004ce12
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004ce23
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140002690
jmp 0x14004ce23
mov r8d, 0x15
lea rcx, [rsp + 0x60]
call fcn.1400023a0
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.14000feb0
nop
mov qword [rbp - 0x80], r14
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 0x14004ce74
mov dword [rsp + 0x48], r14d
mov ebx, r14d
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 0x14004ce8d
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 0x14004cea7
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 0x14004cec0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
je 0x14004ced9
mov rcx, r13
call fcn.14004d730
mov dword [rsp + 0x38], 1
jmp 0x14004d222
call fcn.14004a7f0
test al, al
jne 0x14004cf56
mov ecx, dword [0x1401bdd80]
test ecx, ecx
je 0x14004cf56
nop dword [rax]
mov eax, ecx
and eax, 0x80000001
jge 0x14004cf00
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14004cf15
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [0x1401bdd80], eax
jmp 0x14004cf22
lea ecx, [rcx*2 + 1]
mov dword [0x1401bdd80], ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov edx, ecx
sub edx, eax
je 0x14004cf44
sub edx, 2
je 0x14004cf47
dec edx
je 0x14004cf49
jmp 0x14004cf52
add ecx, 2
inc ecx
add ecx, 2
mov dword [0x1401bdd80], ecx
test ecx, ecx
jne 0x14004cef0
mov rsi, qword [rsp + 0x40]
mov word [rbp - 0x50], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x4e]
call fcn.1400d0f20
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r12, [0x14014bc30]
test r12, 0xffffffffffff0000
jne 0x14004cfbd
movzx edi, r12w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004cfd5
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002690
jmp 0x14004cfd0
mov r8d, 3
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.1400023a0
mov rbx, qword [rsp + 0x30]
mov r8d, dword [0x1401bdd80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 4
jne 0x14004d00c
dec r8d
mov dword [0x1401bdd80], r8d
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, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004d181
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x14004d181
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x14004d076
test al, 1
jne 0x14004d181
shr rax, 1
cmp word [rbp + rax*2 - 0x52], 0
je 0x14004d07b
jmp 0x14004d181
mov word [rbp - 0x50], r14w
lea rax, [rbp - 0x50]
mov rdi, r15
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004d082
test edi, edi
jne 0x14004d0f1
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004d181
cmp dword [rdx + 0x10], 0
jge 0x14004d0c5
cmp dword [rbx - 0xc], 0
jge 0x14004d0b8
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x14004d181
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d0d5
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 + 0x40]
jmp 0x14004d181
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x50]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x14004d10e
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 0x14004d130
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002490
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x14004d154
lea r8, [rbx + r14*2]
call fcn.1400cc30c
jmp 0x14004d15d
lea r8, [rbp - 0x50]
call fcn.1400cc4cc
cmp edi, dword [rbx - 0xc]
jg 0x14004d176
mov dword [rbx - 0x10], edi
xor r14d, r14d
mov word [r12 + rbx], r14w
lea r12, [0x14014bc30]
jmp 0x14004d181
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x14004d194
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
cmp dword [rbx - 0x10], 0
je 0x14004d1fd
mov rcx, r14
nop word [rax + rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [r12 + rcx*2 - 2]
jne 0x14004d1ca
cmp rcx, 4
jne 0x14004d1b0
mov eax, r14d
jmp 0x14004d1cf
sbb eax, eax
or eax, 1
test eax, eax
je 0x14004d1fd
lea rcx, [rbx - 0x18]
call fcn.1400024f0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x38], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14004d222
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x14004d21b
mov rcx, r13
call fcn.14004d730
mov dword [rsp + 0x38], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d222
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 0x14004d237
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
mov rax, r13
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400cbae0
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