Function at 0x14004f7a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov qword [rsp + 0xe8], rbx
mov r14, r8
mov r15, rdx
mov rdi, rcx
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x19], rbx
call fcn.14004d860
test al, al
je 0x14004f976
cmp qword [0x1401d8d48], 0xffffffff80000002
je 0x14004f976
mov r8b, 1
mov rdx, rdi
lea rcx, [rbp + 0x1f]
call fcn.14004f1a0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or esi, 0xffffffff
cmp rcx, rbx
je 0x14004f868
cmp dword [rbx + 0x10], 0
jl 0x14004f85a
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004f85a
call fcn.1400028c0
mov rdi, rax
lock add dword [rbx + 0x10], esi
jg 0x14004f850
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x19], rax
jmp 0x14004f868
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x19]
call fcn.140002770
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f880
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [0x1401d8d48]
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x19]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004f8e4
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 7]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004f8ee
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [0x1401d8d48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004f91c
xor dil, dil
jmp 0x14004faec
mov rax, qword [r14]
mov rdx, qword [r15]
mov rcx, qword [rbp - 1]
cmp dword [rax - 0x10], 0
jne 0x14004f936
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x14004f96d
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14004f96d
mov rdx, qword [r14]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 1]
jmp 0x14004fae0
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp + 0x27]
call fcn.14004f1a0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or esi, 0xffffffff
cmp rcx, rbx
je 0x14004f9da
cmp dword [rbx + 0x10], 0
jl 0x14004f9cc
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004f9cc
call fcn.1400028c0
mov rdi, rax
lock add dword [rbx + 0x10], esi
jg 0x14004f9c2
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x19], rax
jmp 0x14004f9da
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x19]
call fcn.140002770
nop
mov rdx, qword [rbp + 0x27]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f9f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [0x1401d8d48]
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x19]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004fa56
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 9]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004fa60
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [0x1401d8d48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004fa8b
xor dil, dil
jmp 0x14004faec
mov rax, qword [r14]
mov rdx, qword [r15]
mov rcx, qword [rbp - 0x11]
cmp dword [rax - 0x10], 0
jne 0x14004faa5
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x14004fadc
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14004fadc
mov rdx, qword [r14]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete dil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
jg 0x14004fb03
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret