Function at 0x14004a580
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1a8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbx, qword [rcx]
cmp rbx, qword [rcx + 8]
je 0x14004a614
xor r14d, r14d
mov r15, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x18]
cmp rax, rcx
mov r8, rcx
cmove r8, r14
cmp byte [rbx + 0x17], 0
js 0x14004a5db
mov rdx, rbx
cmove rdx, r14
jmp 0x14004a5e9
cmp qword [rbx + 8], 0
je 0x14004a5e7
mov rdx, qword [rbx]
jmp 0x14004a5e9
xor edx, edx
sub eax, ecx
mov r9d, dword [rbx + 0x30]
mov rcx, qword [rsi + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call r15
test eax, eax
jne 0x14004a6a5
add rbx, 0x38
cmp rbx, qword [rdi + 8]
jne 0x14004a5ba
movaps xmm0, xmmword [0x1401e7440]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.14008b410
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x38], rax
add rdi, 0x20
cmp rax, rdi
je 0x14004a69d
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x38]
lea rbx, [rax + 0x20]
cmp byte [rax + 0x37], 0
mov r8, rbx
jns 0x14004a658
mov r8, qword [rbx]
mov rdx, qword [rsi + 8]
mov rcx, r14
mov r9d, 0x20006
call fcn.14008a970
test eax, eax
jne 0x14004a725
mov rcx, qword [rsp + 0x38]
add rcx, 0x38
mov rdx, r14
call fcn.14004a580
test al, al
je 0x14004a797
mov rcx, r15
call fcn.14004b388
mov rax, qword [rsp + 0x38]
cmp rax, rdi
jne 0x14004a648
mov sil, 1
jmp 0x14004a810
mov ebp, eax
mov ecx, 2
call fcn.1400ad460
test al, al
je 0x14004a71e
lea rdx, str.....chromeinstallerutil_registry_key_backup.cc
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov r8d, 0xf5
mov r9d, 2
call fcn.1400ad510
lea rcx, [rsp + 0x78]
lea rdx, str.Failed_writing_value__
mov r8d, 0x16
call fcn.14002e9c2
mov rcx, rax
mov rdx, rbx
call fcn.1400ae5c0
lea rdx, str.___result:
mov r8d, ntohl
mov rcx, rax
call fcn.14002e9c2
mov rcx, rax
mov edx, ebp
call fcn.1400256d2
mov rcx, rsi
call fcn.1400ad9f0
xor esi, esi
jmp 0x14004a81a
mov ebp, eax
mov ecx, 2
call fcn.1400ad460
test al, al
je 0x14004a80e
lea rdx, str.....chromeinstallerutil_registry_key_backup.cc
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov r8d, 0x103
mov r9d, 2
call fcn.1400ad510
lea rcx, [rsp + 0x78]
lea rdx, str.Failed_creating_subkey__
mov r8d, 0x18
call fcn.14002e9c2
mov rcx, rax
mov rdx, rbx
call fcn.1400ae5c0
lea rdx, str.___result:
mov r8d, ntohl
mov rcx, rax
call fcn.14002e9c2
mov rcx, rax
mov edx, ebp
jmp 0x14004a801
mov ecx, 2
call fcn.1400ad460
test al, al
je 0x14004a80e
lea rdx, str.....chromeinstallerutil_registry_key_backup.cc
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov r8d, 0x108
mov r9d, 2
call fcn.1400ad510
lea rcx, [rsp + 0x78]
lea rdx, str.Failed_writing_subkey__
mov r8d, 0x17
call fcn.14002e9c2
mov rcx, rax
mov rdx, rbx
call fcn.1400ae5c0
lea rdx, str.___result:
mov r8d, ntohl
mov rcx, rax
call fcn.14002e9c2
mov rcx, rax
xor edx, edx
call fcn.1400256d2
mov rcx, rsi
call fcn.1400ad9f0
xor esi, esi
lea rcx, [rsp + 0x40]
call fcn.14008b520
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14019eb90
mov eax, esi
add rsp, 0x1a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret