Function at 0x14001c9e8
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, [0x14004ce38]
mov sil, dl
mov qword [rbp - 0x30], r12
lea rdx, [rbp - 0x30]
mov dil, cl
call fcn.14001c304
mov rax, qword [rbp - 0x30]
lea rcx, [0x14000a1bc]
mov r15d, 0xffffffff
cmp qword [rax + 8], rcx
lea rcx, [rbp - 0x30]
jne 0x14001ca3d
mov edx, r15d
call qword [rax + 0x18]
jmp 0x14001ca40
call qword [rax + 8]
and qword [rbp - 0x18], 0
lea rax, [0x14004bec8]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x10], 0x200
call fcn.140019704
lea rax, str.HKCUSoftwareBraveSoftwareUpdate_
test dil, dil
lea rdx, str.HKLMSoftwareBraveSoftwareUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14000a564
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, [0x14004f760]
test eax, eax
jne 0x14001cabd
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14001cbdf
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.14000a808
test eax, eax
jns 0x14001caef
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001cb4d
jmp 0x14001cb48
mov rax, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x40]
cmp rax, r15
ja 0x14001cb40
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 0x14001cb40
mov rcx, qword [rbp - 0x18]
lea rdx, [0x14004f760]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x14001cb4d
mov rcx, rbx
call fcn.140020968
test sil, sil
je 0x14001cbdf
call fcn.1400014b8
mov rcx, rax
test rax, rax
je 0x14001cc5e
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.14000a9e8
lea rcx, str.__legacy
call fcn.140030cec
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.14000ac6c
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001cbdf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov cl, dil
call fcn.14001cc6c
mov rcx, qword [rbp - 0x18]
mov ebx, eax
lea rax, [0x14004bec8]
mov qword [rbp - 0x20], rax
test rcx, rcx
je 0x14001cc0f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x18], 0
mov dword [rbp - 0x10], 0x200
mov rcx, qword [rbp - 0x30]
lea rax, [0x14000a1e4]
mov rdx, qword [rcx + 0x10]
cmp rdx, rax
jne 0x14001cc2f
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14001cc35
lea rcx, [rbp - 0x30]
call rdx
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x30], r12
test rcx, rcx
je 0x14001cc48
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