Function at 0x14009f590
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x58
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov rbx, rcx
mov r8d, 2
mov rdx, rcx
lea rcx, [rbp + 0x38]
call fcn.14009ed40
nop
xor edi, edi
mov rax, qword [rbp + 0x38]
xor esi, esi
mov ecx, dword [rax + 0xc]
sub ecx, dword [rax + 8]
test ecx, ecx
jle 0x14009f7bc
nop word [rax + rax]
movsxd rcx, dword [rax + 8]
add rcx, rsi
mov rax, qword [rax + rcx*8 + 0x18]
mov qword [rbp + 0x30], rax
lock inc dword [rax]
mov qword [rbp + 0x40], 0
lea rcx, [rbp + 0x30]
call fcn.140012e50
mov rdx, rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009f663
mov rbx, qword [rbp + 0x40]
test rbx, rbx
je 0x14009f65f
mov rcx, rbx
call fcn.14009f590
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x30]
call fcn.140012e50
mov rdx, rax
mov rbx, qword [rbp + 0x28]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14009f691
jmp 0x14009f663
mov rbx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x30]
lock dec dword [rax]
jne 0x14009f675
mov rcx, qword [rbp + 0x30]
call fcn.140012a00
inc edi
inc rsi
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax + 0xc]
sub ecx, dword [rax + 8]
cmp edi, ecx
jge 0x14009f7bc
jmp 0x14009f5e0
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.14009cf30
nop
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.140012020
mov rdi, rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x30]
call fcn.140012020
mov rbx, rax
mov rcx, qword [rdi]
mov edx, dword [rcx]
cmp edx, 1
jne 0x14009f6d3
mov rdx, qword [rdi]
lea rcx, [rdx + 0x18]
cmp qword [rdx + 0x10], rcx
je 0x14009f6e1
mov rcx, qword [rdi]
mov edx, dword [rcx + 8]
mov rcx, rdi
call fcn.14000cc90
mov rax, qword [rdi]
mov rdi, qword [rax + 0x10]
mov rax, qword [rbx]
mov ecx, dword [rax]
cmp ecx, 1
jne 0x14009f6ff
mov rcx, qword [rbx]
lea rax, [rcx + 0x18]
cmp qword [rcx + 0x10], rax
je 0x14009f70d
mov rax, qword [rbx]
mov edx, dword [rax + 8]
mov rcx, rbx
call fcn.14000cc90
mov rax, qword [rbx]
mov r8, rdi
mov rdx, qword [rax + 0x10]
lea rcx, [0x1415a6d50]
call fcn.14001b2c0
nop
mov rax, qword [rbp - 0x28]
lock dec dword [rax]
jne 0x14009f737
mov rcx, qword [rbp - 0x28]
call fcn.14000c4e0
nop
mov rax, qword [rbp - 0x20]
lock dec dword [rax]
jne 0x14009f74a
mov rcx, qword [rbp - 0x20]
call fcn.14000c4e0
nop
mov rax, qword [rbp - 0x18]
lock dec dword [rax]
jne 0x14009f75d
mov rcx, qword [rbp - 0x18]
call fcn.140012a00
nop
mov rax, qword [rbp + 0x30]
lock dec dword [rax]
jne 0x14009f770
mov rcx, qword [rbp + 0x30]
call fcn.140012a00
nop
mov rax, qword [rbp + 0x38]
test rax, rax
je 0x14009f807
lock dec dword [rax]
jne 0x14009f807
mov rdi, qword [rbp + 0x38]
movsxd rax, dword [rdi + 0xc]
lea rbx, [rdi + rax*8 + 0x18]
movsxd rax, dword [rdi + 8]
lea rsi, [rdi + rax*8 + 0x18]
cmp rsi, rbx
je 0x14009f7f9
sub rbx, 8
mov rcx, qword [rbx]
lock dec dword [rcx]
jne 0x14009f7b5
mov rcx, qword [rbx]
call fcn.140012a00
cmp rbx, rsi
jne 0x14009f7a1
jmp 0x14009f7f9
lock dec dword [rax]
jne 0x14009f807
mov rdi, qword [rbp + 0x38]
movsxd rax, dword [rdi + 0xc]
lea rbx, [rdi + rax*8 + 0x18]
movsxd rax, dword [rdi + 8]
lea rsi, [rdi + rax*8 + 0x18]
cmp rsi, rbx
je 0x14009f7f9
nop dword [rax]
sub rbx, 8
mov rcx, qword [rbx]
lock dec dword [rcx]
jne 0x14009f7f4
mov rcx, qword [rbx]
call fcn.140012a00
cmp rbx, rsi
jne 0x14009f7e0
mov eax, dword [rdi]
test eax, eax
jne 0x14009f807
mov rcx, rdi
call fcn.14000c4e0
add rsp, 0x58
pop rdi
pop rsi
pop rbx
pop rbp
ret