Function at 0x1401c61ac
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc8
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
lea rcx, [rbp - 0x69]
mov rdx, r8
mov qword [rbp - 0x69], r15
mov r14b, r9b
mov rsi, r8
call fcn.1401c7304
mov dword [rbp - 0x71], eax
test eax, eax
jne 0x1401c635a
movzx eax, r14b
lea r9d, [rax*2 + 1]
mov eax, dword [rbx + 0x10]
add eax, eax
cmp byte [rbp + 0x7f], r15b
je 0x1401c6213
add eax, 2
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1401c6220
mov rcx, qword [rbx]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1401c622d
mov rdx, qword [rdi]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov dword [rbp - 0x71], eax
test eax, eax
je 0x1401c636d
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401c6357
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_set_registry_key
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x39], 0x36
mov qword [rbp - 0x29], 4
jb 0x1401c628e
mov rdi, qword [rdi]
or rdx, 0xffffffffffffffff
lea rcx, [0x14030cae0]
mov r8, rcx
mov rax, r15
test rdi, rdi
je 0x1401c62b4
mov r8, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1401c62aa
cmp qword [rsi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x21], r8
mov dword [rbp - 0x15], r15d
jb 0x1401c62d0
mov rsi, qword [rsi]
mov r8, rcx
mov rax, r15
test rsi, rsi
je 0x1401c62eb
mov r8, rsi
mov rax, rdx
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1401c62e1
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 9], eax
mov qword [rbp - 0x11], r8
mov dword [rbp - 5], r15d
jb 0x1401c6307
mov rbx, qword [rbx]
mov rax, r15
test rbx, rbx
je 0x1401c631f
mov rcx, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401c6315
lea eax, [rax*2 + 2]
mov qword [rbp - 1], rcx
mov dword [rbp + 7], eax
mov dword [rbp + 0xb], r15d
lea rax, [rbp - 0x61]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039bc1f]
xor r8d, r8d
mov dword [rsp + 0x20], 7
mov rcx, r10
call fcn.140001158
mov eax, dword [rbp - 0x71]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401c6469
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401c6466
cmp qword [rdi + 0x18], 8
lea rax, str.Write_registry_value
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], 0x2a
jb 0x1401c639d
mov rdi, qword [rdi]
or rdx, 0xffffffffffffffff
lea rcx, [0x14030cae0]
mov r8, rcx
mov rax, r15
test rdi, rdi
je 0x1401c63c3
mov r8, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1401c63b9
cmp qword [rsi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x31], r8
mov dword [rbp - 0x25], r15d
jb 0x1401c63df
mov rsi, qword [rsi]
mov r8, rcx
mov rax, r15
test rsi, rsi
je 0x1401c63fa
mov r8, rsi
mov rax, rdx
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1401c63f0
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x21], r8
mov dword [rbp - 0x15], r15d
jb 0x1401c6416
mov rbx, qword [rbx]
mov rax, r15
test rbx, rbx
je 0x1401c642e
mov rcx, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401c6424
lea eax, [rax*2 + 2]
mov qword [rbp - 0x11], rcx
mov dword [rbp - 9], eax
mov dword [rbp - 5], r15d
lea rax, [rbp - 0x61]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039bc67]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
mov ebx, r15d
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x1401c6478
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0xc8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret