Function at 0x140132636
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, qword [rcx]
cmp rbx, qword [rcx + 8]
je 0x1401326d7
xor r14d, r14d
mov r15, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x20]
cmp rax, rcx
mov rbp, rcx
cmove rbp, r14
mov r9d, dword [rbx + 0x30]
movzx esi, byte [rbx + 0x17]
test sil, sil
js 0x140132698
mov rdx, rsi
jmp 0x14013269c
mov rdx, qword [rbx + 8]
sub eax, ecx
test rdx, rdx
je 0x1401326b0
mov rdx, rbx
test sil, sil
jns 0x1401326b2
mov rdx, qword [rbx]
jmp 0x1401326b2
xor edx, edx
mov rcx, qword [r13]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
xor r8d, r8d
call r15
test eax, eax
jne 0x14013277b
add rbx, 0x38
cmp rbx, qword [rdi + 8]
jne 0x140132674
lea rcx, [rsp + 0x30]
call fcn.140080110
mov rbx, qword [rdi + 0x18]
add rdi, 0x20
mov r14b, 1
cmp rdi, rbx
je 0x14013291e
lea r15, [rsp + 0x30]
lea r12, [rbx + 0x20]
cmp byte [rbx + 0x37], 0
js 0x140132709
mov r8, r12
jmp 0x14013270d
mov r8, qword [r12]
mov rdx, qword [r13]
mov rcx, r15
mov r9d, 0x20006
call fcn.140080230
test eax, eax
jne 0x140132805
lea rcx, [rbx + 0x38]
mov rdx, r15
call fcn.140132636
test al, al
je 0x140132893
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140132751
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140132744
jmp 0x14013276e
mov rax, qword [rbx + 0x10]
cmp qword [rax], rbx
je 0x14013276e
add rbx, 0x10
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
lea rbx, [rcx + 0x10]
cmp qword [rax], rcx
jne 0x14013275e
mov rbx, rax
cmp rdi, rax
jne 0x1401326fa
jmp 0x14013291e
mov ebp, eax
mov ecx, 2
call fcn.140060b40
test al, al
je 0x1401327fd
lea rdx, str..._.._chrome_installer_util_registry_key_backup.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0xf4
mov r9d, 2
call fcn.140060c10
lea rcx, [rsp + 0x50]
lea rdx, str.Failed_writing_value__
mov r8d, 0x16
call fcn.140007184
cmp byte [rbx + 0x17], 0
jns 0x1401327cb
mov rbx, qword [rbx]
mov rcx, rax
mov rdx, rbx
call fcn.140061a30
lea rdx, str.___result:
mov r8d, 0xb
mov rcx, rax
call fcn.140007184
mov rcx, rax
mov edx, ebp
call fcn.1400222d6
mov rcx, rsi
call fcn.140061070
xor r14d, r14d
jmp 0x140132928
mov ebp, eax
mov ecx, 2
call fcn.140060b40
test al, al
je 0x14013291b
lea rdx, str..._.._chrome_installer_util_registry_key_backup.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x102
mov r9d, 2
call fcn.140060c10
lea rcx, [rsp + 0x50]
lea rdx, str.Failed_creating_subkey__
mov r8d, 0x18
call fcn.140007184
cmp byte [r12 + 0x17], 0
jns 0x14013285c
mov r12, qword [r12]
mov rcx, rax
mov rdx, r12
call fcn.140061a30
lea rdx, str.___result:
mov r8d, 0xb
mov rcx, rax
call fcn.140007184
mov rcx, rax
mov edx, ebp
call fcn.1400222d6
mov rcx, rsi
call fcn.140061070
jmp 0x14013291b
mov ecx, 2
call fcn.140060b40
test al, al
je 0x14013291b
lea rdx, str..._.._chrome_installer_util_registry_key_backup.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x107
mov r9d, 2
call fcn.140060c10
lea rcx, [rsp + 0x50]
lea rdx, str.Failed_writing_subkey__
mov r8d, 0x17
call fcn.140007184
cmp byte [r12 + 0x17], 0
jns 0x1401328e4
mov r12, qword [r12]
mov rcx, rax
mov rdx, r12
call fcn.140061a30
lea rdx, str.___result:
mov r8d, 0xb
mov rcx, rax
call fcn.140007184
xor r14d, r14d
mov rcx, rax
xor edx, edx
call fcn.1400222d6
mov rcx, rsi
call fcn.140061070
jmp 0x14013291e
xor r14d, r14d
lea rcx, [rsp + 0x30]
call fcn.140080370
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401ca2e0
mov eax, r14d
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret