Function at 0x14007d578
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 [0x1400ca120]
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 0x14007d628
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x14007d626
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x14007d604
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x14007d628
cmp rax, rcx
je 0x14007d628
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x14007d628
test edx, edx
je 0x14007d61f
mov rax, qword [rax + 0x10]
jmp 0x14007d609
mov rsi, rax
xor edi, edi
jmp 0x14007d628
mov edi, eax
test edi, edi
jne 0x14007d70a
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14007dbac
mov edi, eax
test eax, eax
js 0x14007d714
mov r14, qword [rsp + 0x70]
mov rcx, r13
mov rbp, qword [r14 + 0x28]
mov rdx, rbp
call fcn.14000acd0
xor r13d, r13d
mov edi, eax
test eax, eax
js 0x14007d6dc
mov qword [rsp + 0x70], r13
lea r8, [0x1400abaa8]
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.140003440
mov ecx, eax
call fcn.140006a40
mov edi, eax
test eax, eax
js 0x14007d6dc
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 [0x1400ca110]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp dword [r14 + 0x24], r13d
jne 0x14007d714
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 [0x1400a9400]
jmp 0x14007d714
test edi, edi
mov eax, 0x80004005
cmovns edi, eax
test rsi, rsi
je 0x14007d737
mov rax, qword [rsi]
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov edx, 1
mov rcx, rsi
call qword [0x1400a9400]
test edi, edi
jns 0x14007d76c
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x14007d76c
test byte [rcx + 0x44], 0x20
je 0x14007d76c
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400abb40]
mov edx, 0xd
mov r9d, edi
call fcn.140016ccc
add dword [rbx + 0x2c], 0xffffffff
mov eax, dword [rbx + 0x2c]
jne 0x14007d779
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