Function at 0x1401d5180
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov r13, r9
mov rsi, r8
mov rdi, rdx
mov r12, rcx
and dword [rbp + 0x77], 0
and qword [rdx], 0
and qword [rdx + 8], 0
mov dword [rbp + 0x77], 1
mov rdx, qword [r8]
test rdx, rdx
je 0x1401d5429
test byte [rdx + 4], 0x80
je 0x1401d5429
test dword [rdx + 4], 0x100
jne 0x1401d51f6
test dword [rdx + 4], 0x200
je 0x1401d5429
cmp byte [rdx + 0x18], 0
je 0x1401d5429
mov ecx, dword [rdx + 4]
call fcn.14021eb6c
mov qword [rbp - 0x31], rax
mov edx, dword [rdx + 4]
lea rcx, [rbp - 0x39]
call fcn.14021ef2c
nop
or r15d, 0xffffffff
cmp qword [r12 + 0x98], 0
jne 0x1401d52b6
lea ecx, [r15 + 0x51]
call fcn.1400be454
mov qword [rbp - 0x29], rax
test rax, rax
je 0x1401d5247
mov rcx, rax
call fcn.1402df3f8
nop
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.1400059d0
mov rdx, qword [rax]
mov rcx, qword [r12 + 0x98]
mov qword [rax], rcx
mov qword [r12 + 0x98], rdx
mov rdx, qword [r12 + 0xa0]
mov rcx, qword [rax + 8]
mov qword [r12 + 0xa0], rcx
mov qword [rax + 8], rdx
mov rbx, qword [rbp + 0x17]
test rbx, rbx
je 0x1401d52b6
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1401d52b6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1401d52b6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, qword [r12 + 0x98]
mov rax, qword [rcx]
lea r9, [rbp - 0x39]
lea r8, [rbp - 0x31]
mov rdx, r13
call qword [rax + 0x78]
test eax, eax
jne 0x1401d5409
mov rax, qword [rsi]
mov r9d, dword [rax + 0x40]
or r9d, 0x20006
and qword [rbp - 0x19], 0
and dword [rbp - 0x11], 0
and qword [rbp - 9], 0
lea rax, vtable.Piriform::Registry::CRegKeyEx.0
mov qword [rbp - 0x21], rax
or eax, 0xffffffff
mov dword [rbp - 1], eax
mov dword [rbp + 3], eax
and dword [rbp + 7], 0
mov r8, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x19]
call fcn.1400114d4
test eax, eax
jne 0x1401d53ff
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
mov r12, qword [rax + 0x50]
xor eax, eax
test rbx, rbx
setne al
test eax, eax
je 0x1401d53ff
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
mov rdx, r12
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1401d53ff
mov ecx, 0x88
call fcn.1400be454
mov qword [rbp - 0x29], rax
test rax, rax
je 0x1401d5392
mov rdx, qword [rsi]
mov rcx, rax
call fcn.14007e82c
nop
mov rdx, rax
lea rcx, [rbp + 0x1f]
call fcn.14007e2b4
mov rdx, qword [rax]
mov rcx, qword [rdi]
mov qword [rax], rcx
mov qword [rdi], rdx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov qword [rax + 8], rdx
mov rbx, qword [rbp + 0x27]
test rbx, rbx
je 0x1401d53ef
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1401d53ef
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1401d53ef
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, qword [rdi]
add rcx, 0x38
mov rdx, r13
call fcn.14000c244
nop
lea rcx, [rbp - 0x21]
call fcn.140224148
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1401d5429
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret