Function at 0x1401b6818
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xc8
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
lea rcx, [rbp - 0x61]
mov rdx, r8
mov qword [rbp - 0x61], r15
mov r14b, r9b
mov rsi, r8
call fcn.1401b7844
mov dword [rbp - 0x69], eax
test eax, eax
jne 0x1401b69c3
cmp qword [rbx + 0x18], 8
mov rcx, rbx
movzx eax, r14b
lea r9d, [rax*2 + 1]
mov rax, qword [rbx + 0x10]
jb 0x1401b6882
mov rcx, qword [rbx]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1401b688f
mov rdx, qword [rdi]
lea eax, [rax*2 + 2]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov dword [rbp - 0x69], eax
test eax, eax
je 0x1401b69d6
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b69c0
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_set_registry_key
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x69]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x31], 0x36
mov qword [rbp - 0x21], 4
jb 0x1401b68f7
mov rdi, qword [rdi]
or rdx, 0xffffffffffffffff
lea rcx, [0x1402cb810]
mov r8, rcx
mov rax, r15
test rdi, rdi
je 0x1401b691d
mov r8, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1401b6913
cmp qword [rsi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x11], eax
mov qword [rbp - 0x19], r8
mov dword [rbp - 0xd], r15d
jb 0x1401b6939
mov rsi, qword [rsi]
mov r8, rcx
mov rax, r15
test rsi, rsi
je 0x1401b6954
mov r8, rsi
mov rax, rdx
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1401b694a
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 1], eax
mov qword [rbp - 9], r8
mov dword [rbp + 3], r15d
jb 0x1401b6970
mov rbx, qword [rbx]
mov rax, r15
test rbx, rbx
je 0x1401b6988
mov rcx, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401b697e
lea eax, [rax*2 + 2]
mov qword [rbp + 7], rcx
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], r15d
lea rax, [rbp - 0x59]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034ceb2]
xor r8d, r8d
mov dword [rsp + 0x20], 7
mov rcx, r10
call fcn.140001078
mov eax, dword [rbp - 0x69]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b6ad2
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401b6acf
cmp qword [rdi + 0x18], 8
lea rax, str.Write_registry_value
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], 0x2a
jb 0x1401b6a06
mov rdi, qword [rdi]
or rdx, 0xffffffffffffffff
lea rcx, [0x1402cb810]
mov r8, rcx
mov rax, r15
test rdi, rdi
je 0x1401b6a2c
mov r8, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1401b6a22
cmp qword [rsi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x21], eax
mov qword [rbp - 0x29], r8
mov dword [rbp - 0x1d], r15d
jb 0x1401b6a48
mov rsi, qword [rsi]
mov r8, rcx
mov rax, r15
test rsi, rsi
je 0x1401b6a63
mov r8, rsi
mov rax, rdx
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1401b6a59
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x11], eax
mov qword [rbp - 0x19], r8
mov dword [rbp - 0xd], r15d
jb 0x1401b6a7f
mov rbx, qword [rbx]
mov rax, r15
test rbx, rbx
je 0x1401b6a97
mov rcx, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401b6a8d
lea eax, [rax*2 + 2]
mov qword [rbp - 9], rcx
mov dword [rbp - 1], eax
mov dword [rbp + 3], r15d
lea rax, [rbp - 0x59]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034ce71]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001078
mov ebx, r15d
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x1401b6ae1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14027a710
add rsp, 0xc8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret