Function at 0x1401d4d80
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov r12b, r8b
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx], 0
jne 0x1401d4dba
mov ebx, 0x57
jmp 0x1401d502a
mov qword [rbp - 0x50], 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExtSettings
lea rcx, [rbp + 0x38]
call fcn.14000cb18
nop
cmp qword [rsi + 0x98], 0
jne 0x1401d4e59
mov ecx, 0x50
call fcn.1400be454
mov qword [rbp + 0x28], rax
test rax, rax
je 0x1401d4df9
mov rcx, rax
call fcn.1402df3f8
nop
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1400059d0
mov r11, rax
mov rcx, qword [rax]
mov rax, qword [rsi + 0x98]
mov qword [r11], rax
mov qword [rsi + 0x98], rcx
mov rcx, qword [rsi + 0xa0]
mov rax, qword [r11 + 8]
mov qword [rsi + 0xa0], rax
mov qword [r11 + 8], rcx
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x1401d4e59
lock dec dword [rbx + 8]
jne 0x1401d4e59
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lock dec dword [rbx + 0xc]
jne 0x1401d4e59
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, qword [rsi + 0x98]
mov rdx, qword [rdi]
mov rax, qword [rcx]
add rdx, 0x38
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x50]
call qword [rax + 0x78]
mov ebx, eax
test eax, eax
jne 0x1401d500b
and qword [rbp - 0x28], 0
and dword [rbp - 0x20], eax
and qword [rbp - 0x18], 0
lea rax, vtable.Piriform::Registry::CRegKeyEx.0
mov qword [rbp - 0x30], rax
or eax, 0xffffffff
mov dword [rbp - 0x10], eax
mov dword [rbp - 0xc], eax
and dword [rbp - 8], ebx
mov rax, qword [rdi]
mov esi, dword [rax + 0x40]
or esi, 0x1000b
mov r9d, esi
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.1400114d4
mov ebx, eax
cmp eax, 2
jne 0x1401d4efe
mov r9d, esi
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.140010dd0
mov ebx, eax
test eax, eax
jne 0x1401d5001
mov r9d, esi
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.1400114d4
mov ebx, eax
test ebx, ebx
jne 0x1401d5001
test r12b, r12b
je 0x1401d4f44
mov rax, qword [rdi]
mov rdx, qword [rax + 0x50]
lea rcx, [rbp - 0x28]
call fcn.1400116e8
mov ebx, eax
test eax, eax
jne 0x1401d4f2d
mov rax, qword [rdi]
mov byte [rax + 0x18], 1
jmp 0x1401d5001
cmp eax, 2
jne 0x1401d5001
mov rax, qword [rdi]
mov byte [rax + 0x18], 1
xor ebx, ebx
jmp 0x1401d5001
mov r8, qword [rdi]
mov r8, qword [r8 + 0x50]
lea rdx, [0x140368998]
lea rcx, [rbp + 0x38]
call fcn.14000d638
mov r9d, esi
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.140010dd0
mov ebx, eax
test eax, eax
jne 0x1401d5001
mov r9d, esi
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.1400114d4
mov ebx, eax
test eax, eax
jne 0x1401d5001
mov dword [rbp + 0x28], 1
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Flags
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea rsi, [0x14034fa44]
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
lea rdx, str.Version
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11, qword [rdi]
mov byte [r11 + 0x18], 0
lea rcx, [rbp - 0x30]
call fcn.140224148
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401d502a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret