Function at 0x140063520
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, r8
mov rbx, rdx
movzx eax, r9b
mov dword [rsp + 0x80], eax
cmp qword [rdx + 0x18], 8
jb 0x140063561
mov rdx, qword [rdx]
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
je 0x14006367c
lea rcx, [rsp + 0x58]
call fcn.1400e4560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400635b9
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_a_mbam3_updaterexe_srcmbupdatr_registry.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
mov rcx, rax
mov edx, 0xc2
call fcn.140026f80
mov rcx, rax
lea rdx, [0x1403b8034]
call fcn.14002fb80
mov rcx, rax
lea rdx, str.Failed_to_create_key
call fcn.14002fb80
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14006361f
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14003fb60
lea rdx, [0x1403b8034]
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
mov edx, esi
call fcn.140026f80
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rsp + 0x58]
call fcn.14000c340
xor al, al
jmp 0x1400637bf
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140063689
mov rdx, qword [rdi]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x1400637bd
lea rcx, [rsp + 0x58]
call fcn.1400e4560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400636d5
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_a_mbam3_updaterexe_srcmbupdatr_registry.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
mov rcx, rax
mov edx, 0xc8
call fcn.140026f80
mov rcx, rax
lea rdx, [0x1403b8034]
call fcn.14002fb80
mov rcx, rax
lea rdx, str.Failed_to_set_value
call fcn.14002fb80
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14006373b
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14003fb60
lea rdx, [0x1403c4220]
mov rcx, rax
call fcn.14002fb80
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x140063763
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.14003fb60
lea rdx, [0x1403b8034]
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
mov edx, esi
call fcn.140026f80
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rsp + 0x58]
call fcn.14000c340
xor al, al
jmp 0x1400637bf
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140282c10
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret