Function at 0x14001f198
Capabilities:
Delete registry key
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r12d, r12d
lea rax, [rbp + 0x50]
mov qword [rsp + 0x40], r12
lea rdx, str.SoftwareMicrosoftNotepadAutosave
mov qword [rsp + 0x38], rax
mov r14, rcx
mov qword [rsp + 0x30], r12
mov ebx, 0xf003f
mov dword [rbp + 0x48], r12d
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r12d
mov qword [rbp + 0x50], r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14001f205
mov dil, r12b
jmp 0x14001f458
mov rdx, qword [r14 + 0x10]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], r12
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r12d
mov qword [rbp - 0x18], r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14001f24b
mov dil, r12b
jmp 0x14001f443
call fcn.140009f3c
or rsi, 0xffffffffffffffff
mov r15b, al
lea edi, [rsi + 2]
test al, al
je 0x14001f2a9
mov r9, qword [r14 + 0x10]
lea rdx, str._s_s.autosave
mov r8, qword [r14 + 8]
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x58], r12
call fcn.14001fb70
test eax, eax
jns 0x14001f299
mov rcx, qword [rbp + 0x58]
mov qword [rbp - 0x20], r12
test rcx, rcx
je 0x14001f2a1
call qword [0x140026d98]
nop dword [rax + rax]
jmp 0x14001f2a1
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x20]
mov ebx, edi
jmp 0x14001f2c1
mov r8, rsi
lea rdx, [0x140027b60]
lea rcx, [rbp - 0x10]
call fcn.14000e2e4
mov ebx, 2
mov rcx, qword [rax]
mov qword [rbp + 0x48], rcx
mov qword [rax], r12
test bl, 2
je 0x14001f2e8
mov rcx, qword [rbp - 0x10]
and ebx, 0xfffffffd
test rcx, rcx
je 0x14001f2e8
call qword [0x140026d98]
nop dword [rax + rax]
test dil, bl
je 0x14001f302
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14001f302
call qword [0x140026d98]
nop dword [rax + rax]
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x14001f243
mov rbx, rsi
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14001f312
lea r8, [rbx + 3]
xor edx, edx
lea rcx, [rbp + 0x58]
call fcn.14000e2e4
mov rax, qword [rbp + 0x48]
lea rdx, [rbx + 3]
mov rbx, qword [rbp + 0x58]
lea r8, str._i__s
mov r9d, dword [0x1400315e4]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400018a0
test eax, eax
js 0x14001f417
inc rsi
cmp word [rbx + rsi*2], r12w
jne 0x14001f35a
mov rdx, qword [0x1400320e0]
lea eax, [rsi*2 + 1]
mov rcx, qword [rbp - 0x18]
test rdx, rdx
mov dword [rsp + 0x28], eax
mov r9d, edi
cmove rdx, qword [0x140030658]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001f417
test r15b, r15b
je 0x14001f41a
mov rcx, qword [r14 + 8]
xor edx, edx
call qword [0x140026a58]
nop dword [rax + rax]
test eax, eax
jne 0x14001f3ce
call qword [0x140026ac0]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x14001f417
mov r15d, dword [0x1400315e0]
lea rdx, [rbp + 0x48]
mov rsi, qword [0x140031500]
xor r9d, r9d
mov r8b, dil
mov dword [0x1400315e0], 2
call fcn.14000e808
test al, al
jne 0x14001f480
mov rdx, qword [r14 + 0x10]
xor r9d, r9d
mov rcx, qword [rbp + 0x50]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov dil, r12b
test rbx, rbx
je 0x14001f42e
mov rcx, rbx
call qword [0x140026d98]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14001f443
call qword [0x140026d98]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14001f458
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14001f46d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov al, dil
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [0x140031500], rsi
mov dword [0x1400315e0], r15d
jmp 0x14001f41a