Function at 0x1400bc246
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 r13, rdx
mov rdi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, qword [rcx]
cmp rbx, qword [rcx + 8]
je 0x1400bc2d9
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 0x1400bc2b2
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1400bc2b2
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 0x1400bc360
add rbx, 0x40
cmp rbx, qword [rdi + 8]
jne 0x1400bc283
lea rcx, [rsp + 0x40]
call fcn.1400494d0
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax]
mov qword [rsp + 0x38], rbx
cmp rbx, rax
je 0x1400bc358
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x38]
lea r12, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
mov r8, r12
jb 0x1400bc310
mov r8, qword [r12]
mov rdx, qword [r13]
mov r9d, 0x20006
mov rcx, r14
call fcn.1400495f0
mov ebp, eax
test eax, eax
jne 0x1400bc3dc
mov rcx, qword [rsp + 0x38]
add rcx, 0x40
mov rdx, r14
call fcn.1400bc246
test al, al
je 0x1400bc44b
mov rcx, r15
call fcn.14002046c
mov rbx, qword [rsp + 0x38]
cmp rbx, qword [rdi + 0x18]
jne 0x1400bc2fe
mov sil, 1
jmp 0x1400bc4c3
mov ecx, 2
call fcn.140037700
test al, al
je 0x1400bc3d5
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.1400377b0
lea rcx, [rsp + 0x60]
lea rdx, str.Failed_writing_value__
call fcn.140002c8d
cmp qword [rbx + 0x18], 7
jbe 0x1400bc3a9
mov rbx, qword [rbx]
mov rcx, rax
mov rdx, rbx
call fcn.140038e50
lea rdx, str.___result:
mov rcx, rax
call fcn.140002c8d
mov rcx, rax
mov edx, ebp
call fcn.140005ee8
mov rcx, rsi
call fcn.140037c30
xor esi, esi
jmp 0x1400bc4cd
mov ecx, 2
call fcn.140037700
test al, al
je 0x1400bc4c1
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.1400377b0
lea rcx, [rsp + 0x60]
lea rdx, str.Failed_creating_subkey__
call fcn.140002c8d
cmp qword [rbx + 0x38], 7
jbe 0x1400bc42a
mov r12, qword [rbx + 0x20]
mov rcx, rax
mov rdx, r12
call fcn.140038e50
lea rdx, str.___result:
mov rcx, rax
call fcn.140002c8d
mov rcx, rax
mov edx, ebp
jmp 0x1400bc4b4
mov ecx, 2
call fcn.140037700
test al, al
je 0x1400bc4c1
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.1400377b0
lea rcx, [rsp + 0x60]
lea rdx, str.Failed_writing_subkey__
call fcn.140002c8d
cmp qword [rbx + 0x38], 7
jbe 0x1400bc495
mov r12, qword [rbx + 0x20]
mov rcx, rax
mov rdx, r12
call fcn.140038e50
lea rdx, str.___result:
mov rcx, rax
call fcn.140002c8d
xor edx, edx
mov rcx, rax
call fcn.140005ee8
mov rcx, rsi
call fcn.140037c30
xor esi, esi
lea rcx, [rsp + 0x40]
call fcn.140049730
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14011a890
mov eax, esi
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret