Function at 0x14001c854
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, [0x140046c10]
mov sil, dl
mov qword [rbp - 0x30], r12
lea rdx, [rbp - 0x30]
mov dil, cl
call fcn.14001c258
mov rax, qword [rbp - 0x30]
lea rcx, [0x14000ad80]
mov r15d, 0xffffffff
cmp qword [rax + 8], rcx
lea rcx, [rbp - 0x30]
jne 0x14001c8a9
mov edx, r15d
call qword [rax + 0x18]
jmp 0x14001c8ac
call qword [rax + 8]
and qword [rbp - 0x18], 0
lea rax, [0x140045c28]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x10], 0x200
call fcn.14001a10c
lea rax, str.HKCUSoftwareBraveSoftwareUpdate_
test dil, dil
lea rdx, str.HKLMSoftwareBraveSoftwareUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14000b130
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, [0x140049578]
test eax, eax
jne 0x14001c929
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14001ca4b
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.14000b3d8
test eax, eax
jns 0x14001c95b
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001c9b9
jmp 0x14001c9b4
mov rax, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x40]
cmp rax, r15
ja 0x14001c9ac
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 0x14001c9ac
mov rcx, qword [rbp - 0x18]
lea rdx, [0x140049578]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x14001c9b9
mov rcx, rbx
call fcn.140020374
test sil, sil
je 0x14001ca4b
call fcn.1400014ec
mov rcx, rax
test rax, rax
je 0x14001caca
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.14000b5b8
lea rcx, str.__legacy
call fcn.140030300
mov r8d, eax
lea rdx, str.__legacy
lea rcx, [rbp + 0x40]
call fcn.140005710
mov rbx, qword [rbp + 0x40]
lea rdx, str.old_uid
mov r8, rbx
lea rcx, [rbp - 0x20]
mov r9d, 1
call fcn.14000b82c
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001ca4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov cl, dil
call fcn.14001cad8
mov rcx, qword [rbp - 0x18]
mov ebx, eax
lea rax, [0x140045c28]
mov qword [rbp - 0x20], rax
test rcx, rcx
je 0x14001ca7b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x18], 0
mov dword [rbp - 0x10], 0x200
mov rcx, qword [rbp - 0x30]
lea rax, [0x14000adb0]
mov rdx, qword [rcx + 0x10]
cmp rdx, rax
jne 0x14001ca9b
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14001caa1
lea rcx, [rbp - 0x30]
call rdx
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x30], r12
test rcx, rcx
je 0x14001cab4
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.1400013e0
int3