Function at 0x1400e5d10
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 [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, qword [rcx]
cmp rbx, qword [rcx + 8]
je 0x1400e5da1
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]
mov edx, 0
cmp qword [rbx + 0x10], rsi
je 0x1400e5d7c
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1400e5d7c
mov rdx, qword [rbx]
mov rcx, qword [r13]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
xor r8d, r8d
call r14
test eax, eax
jne 0x1400e5e3c
add rbx, 0x40
cmp rbx, qword [rdi + 8]
jne 0x1400e5d4d
lea rcx, [rsp + 0x38]
call fcn.1400594d0
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax]
mov r14b, 1
cmp rbx, rax
je 0x1400e5fb7
lea r15, [rsp + 0x38]
lea r12, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
mov r8, r12
jb 0x1400e5dd5
mov r8, qword [r12]
mov rdx, qword [r13]
mov rcx, r15
mov r9d, 0x20006
call fcn.1400595f0
test eax, eax
jne 0x1400e5ebb
lea rcx, [rbx + 0x40]
mov rdx, r15
call fcn.1400e5d10
test al, al
je 0x1400e5f39
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x1400e5e22
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400e5e2e
cmp rbx, qword [rax + 0x10]
mov rbx, rax
je 0x1400e5e0d
jmp 0x1400e5e2e
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1400e5e22
mov rbx, rax
cmp qword [rdi + 0x18], rax
jne 0x1400e5dc3
jmp 0x1400e5fb7
mov ebp, eax
mov ecx, 2
call fcn.14003be50
test al, al
je 0x1400e5eb3
lea rdx, str..._.._chrome_installer_util_registry_key_backup.cc
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov r8d, 0xf4
mov r9d, 2
call fcn.14003bf00
lea rcx, [rsp + 0x58]
lea rdx, str.Failed_writing_value__
call fcn.140002b70
cmp qword [rbx + 0x18], 7
jbe 0x1400e5e87
mov rbx, qword [rbx]
mov rcx, rax
mov rdx, rbx
call fcn.14003cf40
lea rdx, str.___result:
mov rcx, rax
call fcn.140002b70
mov rcx, rax
mov edx, ebp
call fcn.140005ed0
mov rcx, rsi
call fcn.14003c3a0
xor r14d, r14d
jmp 0x1400e5fc1
mov ebp, eax
mov ecx, 2
call fcn.14003be50
test al, al
je 0x1400e5fb4
lea rdx, str..._.._chrome_installer_util_registry_key_backup.cc
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov r8d, 0x102
mov r9d, 2
call fcn.14003bf00
lea rcx, [rsp + 0x58]
lea rdx, str.Failed_creating_subkey__
call fcn.140002b70
cmp qword [rbx + 0x38], 7
jbe 0x1400e5f0b
mov r12, qword [rbx + 0x20]
mov rcx, rax
mov rdx, r12
call fcn.14003cf40
lea rdx, str.___result:
mov rcx, rax
call fcn.140002b70
mov rcx, rax
mov edx, ebp
call fcn.140005ed0
mov rcx, rsi
call fcn.14003c3a0
jmp 0x1400e5fb4
mov ecx, 2
call fcn.14003be50
test al, al
je 0x1400e5fb4
lea rdx, str..._.._chrome_installer_util_registry_key_backup.cc
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov r8d, 0x107
mov r9d, 2
call fcn.14003bf00
lea rcx, [rsp + 0x58]
lea rdx, str.Failed_writing_subkey__
call fcn.140002b70
cmp qword [rbx + 0x38], 7
jbe 0x1400e5f83
mov r12, qword [rbx + 0x20]
mov rcx, rax
mov rdx, r12
call fcn.14003cf40
lea rdx, str.___result:
mov rcx, rax
call fcn.140002b70
xor r14d, r14d
mov rcx, rax
xor edx, edx
call fcn.140005ed0
mov rcx, rsi
call fcn.14003c3a0
jmp 0x1400e5fb7
xor r14d, r14d
lea rcx, [rsp + 0x38]
call fcn.140059730
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14014b5e0
mov eax, r14d
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret