Function at 0x14007c928
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [0x1400c9140]
xor esi, esi
and qword [rax + 8], rsi
mov r13, r9
mov r12, r8
mov ebp, edx
mov rbx, qword [r15 + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
inc dword [rbx + 0x2c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [rbx + 0x28], eax
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x14007c9d8
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x14007c9d6
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x14007c9b4
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x14007c9d8
cmp rax, rcx
je 0x14007c9d8
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x14007c9d8
test edx, edx
je 0x14007c9cf
mov rax, qword [rax + 0x10]
jmp 0x14007c9b9
mov rsi, rax
xor edi, edi
jmp 0x14007c9d8
mov edi, eax
test edi, edi
jne 0x14007caba
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14007cf7c
mov edi, eax
test eax, eax
js 0x14007cac4
mov r14, qword [rsp + 0x70]
mov rcx, r13
mov rbp, qword [r14 + 0x28]
mov rdx, rbp
call fcn.140003650
xor r13d, r13d
mov edi, eax
test eax, eax
js 0x14007ca8c
mov qword [rsp + 0x70], r13
lea r8, [0x1400aa988]
mov rax, qword [rsi + 0x30]
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.14000b810
mov ecx, eax
call fcn.1400083f0
mov edi, eax
test eax, eax
js 0x14007ca8c
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400c9130]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp dword [r14 + 0x24], r13d
jne 0x14007cac4
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov dword [r12], edx
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov rcx, r14
call qword [0x1400a83f0]
jmp 0x14007cac4
test edi, edi
mov eax, 0x80004005
cmovns edi, eax
test rsi, rsi
je 0x14007cae7
mov rax, qword [rsi]
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov edx, 1
mov rcx, rsi
call qword [0x1400a83f0]
test edi, edi
jns 0x14007cb1c
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14007cb1c
test byte [rcx + 0x44], 0x20
je 0x14007cb1c
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aab50]
mov edx, 0xd
mov r9d, edi
call fcn.14001c23c
add dword [rbx + 0x2c], 0xffffffff
mov eax, dword [rbx + 0x2c]
jne 0x14007cb29
and dword [rbx + 0x28], 0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret