Function at 0x140099e00
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.1400995c0
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 0x14009a01f
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.14000b320
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 0x140099ed3
mov rbx, qword [rbp + 0x40]
test rbx, rbx
je 0x140099ecf
mov rcx, rbx
call fcn.140099e00
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x30]
call fcn.14000b320
mov rdx, rax
mov rbx, qword [rbp + 0x28]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140099f01
jmp 0x140099ed3
mov rbx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x30]
lock dec dword [rax]
jne 0x140099ee5
mov rcx, qword [rbp + 0x30]
call fcn.14000ade0
inc edi
inc rsi
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax + 0xc]
sub ecx, dword [rax + 8]
cmp edi, ecx
jge 0x14009a01f
jmp 0x140099e50
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.140097780
nop
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.140009fd0
mov rdi, rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x30]
call fcn.140009fd0
mov rbx, rax
mov rcx, qword [rdi]
mov edx, dword [rcx]
cmp edx, 1
jne 0x140099f43
mov rdx, qword [rdi]
lea rcx, [rdx + 0x18]
cmp qword [rdx + 0x10], rcx
je 0x140099f51
mov rcx, qword [rdi]
mov edx, dword [rcx + 8]
mov rcx, rdi
call fcn.140005410
mov rax, qword [rdi]
mov rdi, qword [rax + 0x10]
mov rax, qword [rbx]
mov ecx, dword [rax]
cmp ecx, 1
jne 0x140099f6f
mov rcx, qword [rbx]
lea rax, [rcx + 0x18]
cmp qword [rcx + 0x10], rax
je 0x140099f7d
mov rax, qword [rbx]
mov edx, dword [rax + 8]
mov rcx, rbx
call fcn.140005410
mov rax, qword [rbx]
mov r8, rdi
mov rdx, qword [rax + 0x10]
lea rcx, [0x140d9a620]
call fcn.140015780
nop
mov rax, qword [rbp - 0x28]
lock dec dword [rax]
jne 0x140099fa7
mov rcx, qword [rbp - 0x28]
call fcn.140004d80
nop
mov rax, qword [rbp - 0x20]
lock dec dword [rax]
jne 0x140099fba
mov rcx, qword [rbp - 0x20]
call fcn.140004d80
nop
mov rax, qword [rbp - 0x18]
lock dec dword [rax]
jne 0x140099fcd
mov rcx, qword [rbp - 0x18]
call fcn.14000ade0
nop
mov rax, qword [rbp + 0x30]
lock dec dword [rax]
jne 0x140099fe0
mov rcx, qword [rbp + 0x30]
call fcn.14000ade0
nop
mov rax, qword [rbp + 0x38]
lock dec dword [rax]
jne 0x14009a061
mov rsi, qword [rbp + 0x38]
movsxd rax, dword [rsi + 0xc]
lea rbx, [rsi + rax*8 + 0x18]
movsxd rax, dword [rsi + 8]
lea rdi, [rsi + rax*8 + 0x18]
cmp rdi, rbx
je 0x14009a059
sub rbx, 8
mov rdx, qword [rbx]
lock dec dword [rdx]
jne 0x14009a018
mov rcx, qword [rbx]
call fcn.14000ade0
cmp rbx, rdi
jne 0x14009a004
jmp 0x14009a059
lock dec dword [rax]
jne 0x14009a061
mov rsi, qword [rbp + 0x38]
movsxd rax, dword [rsi + 0xc]
lea rbx, [rsi + rax*8 + 0x18]
movsxd rax, dword [rsi + 8]
lea rdi, [rsi + rax*8 + 0x18]
cmp rdi, rbx
je 0x14009a059
nop
sub rbx, 8
mov rdx, qword [rbx]
lock dec dword [rdx]
jne 0x14009a054
mov rcx, qword [rbx]
call fcn.14000ade0
cmp rbx, rdi
jne 0x14009a040
mov rcx, rsi
call fcn.140004d80
add rsp, 0x58
pop rdi
pop rsi
pop rbx
pop rbp
ret