Function at 0x1401c1b94
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov r12b, r8b
mov rdi, rdx
mov rsi, rcx
mov ebx, 0x57
xor r13d, r13d
cmp qword [rdx], r13
je 0x1401c2034
lea rcx, [rbp - 0x31]
call fcn.140239840
nop
mov rax, qword [rdi]
mov rdx, qword [rax + 0x38]
mov eax, r13d
test rdx, rdx
setne al
test eax, eax
jne 0x1401c1bfd
mov ecx, 0x80004005
call fcn.14000cbb8
int3
mov rcx, qword [rbp - 0x31]
call fcn.1400bedf4
test eax, eax
sete r9b
mov rdx, qword [rdi]
test byte [rdx + 4], 0x80
je 0x1401c1c29
mov al, r9b
neg al
sbb rcx, rcx
neg rcx
add rcx, 0xffffffff80000000
jmp 0x1401c1c3b
test byte [rdx + 4], 0x40
mov rcx, r13
mov rax, 0xffffffff80000002
cmovne rcx, rax
mov qword [rbp - 0x41], rcx
mov r8d, dword [rdx + 8]
mov edx, dword [rdx + 4]
lea rcx, [rbp - 0x49]
call fcn.1401c0f54
nop
mov r8d, 1
lea rdx, [0x140352420]
lea rcx, [rbp - 0x49]
call fcn.14000c0c4
mov r11, qword [rdi]
mov rdx, qword [r11 + 0x50]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x49]
call fcn.14000c0c4
or r14d, 0xffffffff
cmp qword [rsi + 8], r13
jne 0x1401c1d40
mov ecx, 0x98
call fcn.1400be454
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x1401c1cde
mov byte [rax], 1
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
mov dword [rax + 0x30], 0x3f
mov qword [rax + 0x38], r13
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], r13
mov qword [rax + 0x50], r13
lea rcx, [rax + 0x58]
call fcn.140047624
nop
lea rcx, [rbx + 0x78]
call fcn.140047624
nop
jmp 0x1401c1ce1
mov rbx, r13
mov rdx, rbx
lea rcx, [rbp + 0x1f]
call fcn.14007e0f0
mov rdx, qword [rax]
mov rcx, qword [rsi + 8]
mov qword [rax], rcx
mov qword [rsi + 8], rdx
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rax + 8]
mov qword [rsi + 0x10], rcx
mov qword [rax + 8], rdx
mov rbx, qword [rbp + 0x27]
test rbx, rbx
je 0x1401c1d40
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x1401c1d40
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x1401c1d40
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rax, qword [rsi + 8]
test rax, rax
je 0x1401c1dda
cmp qword [rax + 0x48], r13
jne 0x1401c1dda
mov ecx, 0x50
call fcn.1400be454
mov qword [rbp + 0x2f], rax
test rax, rax
je 0x1401c1d74
mov rcx, rax
call fcn.1402df3f8
jmp 0x1401c1d77
mov rax, r13
mov rbx, qword [rsi + 8]
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.1400059d0
mov rdx, qword [rax]
mov rcx, qword [rbx + 0x48]
mov qword [rax], rcx
mov qword [rbx + 0x48], rdx
mov rdx, qword [rbx + 0x50]
mov rcx, qword [rax + 8]
mov qword [rbx + 0x50], rcx
mov qword [rax + 8], rdx
mov rbx, qword [rbp + 0x17]
test rbx, rbx
je 0x1401c1dda
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x1401c1dda
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x1401c1dda
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 0x48]
mov rdx, qword [rdi]
mov rax, qword [rcx]
add rdx, 0x38
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x41]
call qword [rax + 0x78]
mov ebx, eax
test eax, eax
jne 0x1401c1ff3
mov rax, qword [rdi]
mov esi, dword [rax + 0x40]
or esi, 0xf003f
mov qword [rbp - 0x21], r13
mov dword [rbp - 0x19], r13d
mov qword [rbp - 0x11], r13
lea rax, vtable.Piriform::Registry::CRegKeyEx.0
mov qword [rbp - 0x29], rax
or eax, 0xffffffff
mov dword [rbp - 9], eax
mov dword [rbp - 5], eax
mov dword [rbp - 1], r13d
mov r9d, esi
mov r8, qword [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.1400114d4
mov ebx, eax
test eax, eax
jne 0x1401c1fe9
mov rax, qword [rdi]
test byte [rax + 8], 2
je 0x1401c1f79
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x7f], rax
lea r9, [rbp + 0x7f]
lea r8, [0x140365cdc]
lea rbx, [0x140330de8]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1402247e8
test eax, eax
jne 0x1401c1f13
test r12b, r12b
je 0x1401c1eb1
mov r8, rbx
lea rdx, str._CC_
lea rcx, [rbp + 0x7f]
call fcn.14000b658
jmp 0x1401c1f13
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x39], rax
mov r9, qword [rbp + 0x7f]
lea r8, str._CC_
lea rdx, [0x14034ea80]
lea rcx, [rbp - 0x39]
call fcn.14000d9c8
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x7f]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401c1f13
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rbp + 0x7f]
mov eax, r13d
test rsi, rsi
setne al
test eax, eax
jne 0x1401c1f29
lea ebx, [rax + 0xd]
jmp 0x1401c1f5b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rsi, qword [rbp + 0x7f]
lea rdx, [rsi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401c1fde
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1401c1fde
test byte [rax + 8], 1
je 0x1401c1fe2
test r12b, r12b
je 0x1401c1fa5
mov dword [rsp + 0x20], esi
lea r9, [rbp + 0x6f]
lea r8, str.LegacyDisable
mov rdx, qword [rbp - 0x49]
mov rcx, qword [rbp - 0x41]
call fcn.140224018
mov ebx, dword [rbp + 0x6f]
jmp 0x1401c1fde
lea rbx, [0x140330de8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.LegacyDisable
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jne 0x1401c1fe9
mov rax, qword [rdi]
mov byte [rax + 0x18], r12b
lea rcx, [rbp - 0x29]
call fcn.140224148
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401c2014
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401c2034
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret