Function at 0x14001cfb4
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x28], 0
lea r12, [0x14004ceb0]
mov sil, dl
mov qword [rbp - 0x30], r12
lea rdx, [rbp - 0x30]
mov dil, cl
call fcn.14001c8d0
mov rax, qword [rbp - 0x30]
lea rcx, [0x14000aae8]
mov r15d, 0xffffffff
cmp qword [rax + 8], rcx
lea rcx, [rbp - 0x30]
jne 0x14001d009
mov edx, r15d
call qword [rax + 0x18]
jmp 0x14001d00c
call qword [rax + 8]
and qword [rbp - 0x18], 0
lea rax, [0x14004bee8]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x10], 0x200
call fcn.140019cd0
lea rax, str.HKCUSoftwareBraveSoftwareUpdate_
test dil, dil
lea rdx, str.HKLMSoftwareBraveSoftwareUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14000ae90
mov rcx, qword [rbp - 0x18]
lea rdx, str.old_uid
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [0x14004f770]
test eax, eax
jne 0x14001d089
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14001d1ab
and qword [rbp + 0x48], 0
lea rax, [rbp + 0x48]
and dword [rbp + 0x30], 0
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.14000b134
test eax, eax
jns 0x14001d0bb
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001d119
jmp 0x14001d114
mov rax, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x40]
cmp rax, r15
ja 0x14001d10c
mov r9d, dword [rbp + 0x30]
lea rdx, str.old_uid
mov rcx, qword [rbp - 0x18]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
test edx, edx
js 0x14001d10c
mov rcx, qword [rbp - 0x18]
lea rdx, [0x14004f770]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x14001d119
mov rcx, rbx
call fcn.140020f38
test sil, sil
je 0x14001d1ab
call fcn.1400014b8
mov rcx, rax
test rax, rax
je 0x14001d22a
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea r8, [rbp + 0x40]
lea rdx, str.old_uid
mov qword [rbp + 0x40], rax
lea rcx, [rbp - 0x20]
call fcn.14000b314
lea rcx, str.__legacy
call fcn.1400312bc
mov r8d, eax
lea rdx, str.__legacy
lea rcx, [rbp + 0x40]
call fcn.140005ac0
mov rbx, qword [rbp + 0x40]
lea rdx, str.old_uid
mov r8, rbx
lea rcx, [rbp - 0x20]
mov r9d, 1
call fcn.14000b598
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001d1ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov cl, dil
call fcn.14001d238
mov rcx, qword [rbp - 0x18]
mov ebx, eax
lea rax, [0x14004bee8]
mov qword [rbp - 0x20], rax
test rcx, rcx
je 0x14001d1db
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x18], 0
mov dword [rbp - 0x10], 0x200
mov rcx, qword [rbp - 0x30]
lea rax, [0x14000ab10]
mov rdx, qword [rcx + 0x10]
cmp rdx, rax
jne 0x14001d1fb
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14001d201
lea rcx, [rbp - 0x30]
call rdx
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x30], r12
test rcx, rcx
je 0x14001d214
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001834
int3