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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x37], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r14, r8
mov r15, rdx
mov rdi, rcx
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x7f], rbx
call fcn.1400485b0
test al, al
je 0x14004a2d9
cmp qword [0x1401c1d58], 0xffffffff80000002
je 0x14004a2d9
mov r8b, 1
mov rdx, rdi
lea rcx, [rbp + 0x27]
call fcn.140049bd0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or esi, 0xffffffff
cmp rcx, rbx
je 0x14004a1cb
cmp dword [rbx + 0x10], 0
jl 0x14004a1bd
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004a1bd
call fcn.140002540
mov rdi, rax
lock add dword [rbx + 0x10], esi
jg 0x14004a1b3
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 + 0x7f], rax
jmp 0x14004a1cb
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.1400023f0
nop
mov rdx, qword [rbp + 0x27]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a1e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [0x1401c1d58]
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp + 0x7f]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004a247
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 0x14004a251
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [0x1401c1d58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004a27f
xor dil, dil
jmp 0x14004a454
mov rax, qword [r14]
mov rdx, qword [r15]
mov rcx, qword [rbp - 9]
cmp dword [rax - 0x10], 0
jne 0x14004a299
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x14004a2d0
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 0x14004a2d0
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 - 9]
jmp 0x14004a448
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp + 0x2f]
call fcn.140049bd0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or esi, 0xffffffff
cmp rcx, rbx
je 0x14004a33d
cmp dword [rbx + 0x10], 0
jl 0x14004a32f
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004a32f
call fcn.140002540
mov rdi, rax
lock add dword [rbx + 0x10], esi
jg 0x14004a325
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 + 0x7f], rax
jmp 0x14004a33d
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.1400023f0
nop
mov rdx, qword [rbp + 0x2f]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004a355
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.1400482d0
mov rdi, qword [0x1401c1d58]
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp + 0x7f]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004a3be
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 1]
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 0x14004a3c8
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [0x1401c1d58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004a3f3
xor dil, dil
jmp 0x14004a454
mov rax, qword [r14]
mov rdx, qword [r15]
mov rcx, qword [rbp + 0xf]
cmp dword [rax - 0x10], 0
jne 0x14004a40d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x14004a444
lea rax, [rbp + 0x1f]
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 0x14004a444
mov rdx, qword [r14]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xf]
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 0x14004a46b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret