Function at 0x1402e4fd8
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r13, r8
mov rbx, rdx
mov rsi, rcx
xor edi, edi
cmp qword [rcx], rdi
je 0x1402e51ec
cmp qword [rdx], rdi
je 0x1402e51ec
mov r12, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32LastVisitedPidlMRU
lea rcx, [rbp + 0x7f]
call fcn.14000cb18
nop
call fcn.1400046d0
mov r8, qword [rax]
lea edx, [rdi + 6]
mov rcx, rax
call qword [r8 + 0x50]
test al, al
je 0x1402e5058
lea r8d, [rdi + 0x4a]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32LastVisitedMRU
lea rcx, [rbp + 0x7f]
call fcn.14000c9f8
mov rax, qword [rbx]
cmp byte [rax + 0x18], dil
jne 0x1402e50da
mov rcx, qword [rsi]
cmp qword [rcx + 0x90], rdi
je 0x1402e50da
mov rax, qword [rax]
cmp dword [rax - 0x10], edi
je 0x1402e50da
mov rcx, qword [rcx + 0x90]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x60]
test eax, eax
jne 0x1402e50da
mov r12, 0xffffffff80000003
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x59]
call fcn.14000c4d8
nop
mov r8, qword [rbx]
mov rbx, qword [rbp - 0x59]
mov r9, rbx
mov r8, qword [r8]
lea rdx, [0x14035f058]
lea rcx, [rbp + 0x7f]
call fcn.14000d9c8
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402e50da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x39], edi
mov qword [rbp - 0x31], rdi
or eax, 0xffffffff
mov dword [rbp - 0x29], eax
mov dword [rbp - 0x25], eax
mov dword [rbp - 0x21], edi
lea rax, vtable.Piriform::Registry::CEnumRegKey.0
mov qword [rbp - 0x49], rax
lea rax, vtable.Piriform::Registry::CEnumRegKey.1.0
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
mov byte [rbp + 0xf], 1
mov qword [rbp + 0x17], rdi
mov r9d, VariantTimeToDosDateTime
mov r8, qword [rbp + 0x7f]
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.1400114d4
test eax, eax
jne 0x1402e51c1
lea rcx, [rbp - 0x49]
call fcn.140211a18
mov rsi, rax
mov r12, rdi
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, rdx
sar rcx, 3
test rcx, rcx
je 0x1402e51c1
mov dword [rbp + 0x67], edi
lea r8, [rbp + 0x67]
mov rdx, qword [rdx + r12*8]
lea rcx, [rbp - 0x49]
call fcn.140223da8
mov rbx, rax
test rax, rax
je 0x1402e5187
mov rdx, r13
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x1402e51a7
mov rcx, rbx
call fcn.1400bee7c
inc r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rdx
sar rax, 3
cmp r12, rax
jae 0x1402e51c1
jmp 0x1402e515b
mov rdx, qword [rsi]
mov rdx, qword [rdx + r12*8]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, rbx
call fcn.1400bee7c
nop
lea rcx, [rbp - 0x49]
call fcn.140211a98
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402e51f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1402e51f1
mov edi, 0xd
mov eax, edi
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret