Function at 0x1400972b0
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r13, rdx
mov rdi, rcx
mov rbx, qword [rcx]
cmp rbx, qword [rcx + 8]
je 0x140097343
xor esi, esi
mov r14, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
mov ebp, ecx
sub ebp, eax
cmp rax, rcx
cmove rax, rsi
mov r9d, dword [rbx + 0x38]
cmp qword [rbx + 0x10], rsi
mov edx, 0
je 0x14009731c
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x14009731c
mov rdx, qword [rbx]
mov rcx, qword [r13]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
xor r8d, r8d
call r14
mov ebp, eax
test eax, eax
jne 0x1400973ca
add rbx, 0x40
cmp rbx, qword [rdi + 8]
jne 0x1400972ed
lea rcx, [rsp + 0x40]
call fcn.14003ab80
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax]
mov qword [rsp + 0x38], rbx
cmp rbx, rax
je 0x1400973c2
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x38]
lea r12, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
mov r8, r12
jb 0x14009737a
mov r8, qword [r12]
mov rdx, qword [r13]
mov r9d, 0x20006
mov rcx, r14
call fcn.14003aca0
mov ebp, eax
test eax, eax
jne 0x140097446
mov rcx, qword [rsp + 0x38]
add rcx, 0x40
mov rdx, r14
call fcn.1400972b0
test al, al
je 0x1400974b5
mov rcx, r15
call fcn.1400986b0
mov rbx, qword [rsp + 0x38]
cmp rbx, qword [rdi + 0x18]
jne 0x140097368
mov sil, 1
jmp 0x14009752d
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009743f
lea rdx, str..._.._chrome_installer_util_registry_key_backup.cc
lea rsi, [rsp + 0x58]
mov r8d, 0xf4
mov r9d, 2
mov rcx, rsi
call fcn.14002c3a0
lea rcx, [rsp + 0x60]
lea rdx, str.Failed_writing_value__
call fcn.140002bb0
cmp qword [rbx + 0x18], 7
jbe 0x140097413
mov rbx, qword [rbx]
mov rcx, rax
mov rdx, rbx
call fcn.14002da70
lea rdx, str.___result:
mov rcx, rax
call fcn.140002bb0
mov rcx, rax
mov edx, ebp
call fcn.140011d90
mov rcx, rsi
call fcn.14002c830
xor esi, esi
jmp 0x140097537
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009752b
lea rdx, str..._.._chrome_installer_util_registry_key_backup.cc
lea rsi, [rsp + 0x58]
mov r8d, 0x102
mov r9d, 2
mov rcx, rsi
call fcn.14002c3a0
lea rcx, [rsp + 0x60]
lea rdx, str.Failed_creating_subkey__
call fcn.140002bb0
cmp qword [rbx + 0x38], 7
jbe 0x140097494
mov r12, qword [rbx + 0x20]
mov rcx, rax
mov rdx, r12
call fcn.14002da70
lea rdx, str.___result:
mov rcx, rax
call fcn.140002bb0
mov rcx, rax
mov edx, ebp
jmp 0x14009751e
mov ecx, 2
call fcn.14002c2f0
test al, al
je 0x14009752b
lea rdx, str..._.._chrome_installer_util_registry_key_backup.cc
lea rsi, [rsp + 0x58]
mov r8d, 0x107
mov r9d, 2
mov rcx, rsi
call fcn.14002c3a0
lea rcx, [rsp + 0x60]
lea rdx, str.Failed_writing_subkey__
call fcn.140002bb0
cmp qword [rbx + 0x38], 7
jbe 0x1400974ff
mov r12, qword [rbx + 0x20]
mov rcx, rax
mov rdx, r12
call fcn.14002da70
lea rdx, str.___result:
mov rcx, rax
call fcn.140002bb0
xor edx, edx
mov rcx, rax
call fcn.140011d90
mov rcx, rsi
call fcn.14002c830
xor esi, esi
lea rcx, [rsp + 0x40]
call fcn.14003ade0
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14011a370
mov eax, esi
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret