Function at 0x1401d712c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
lea r8, [0x140347380]
xor esi, esi
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x71], rsi
mov rdi, rdx
call fcn.14005d2c0
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401d7177
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14005e1e8
xorps xmm0, xmm0
lea rcx, [rbp - 0x49]
movdqu xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x59], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
call fcn.14004e0f0
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x69]
call fcn.1401d7eec
mov dword [rbp - 0x79], eax
test eax, eax
je 0x1401d727a
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401d7264
cmp qword [rbp - 0x51], 8
lea rax, str.Could_not_open_the_registry_key
mov qword [rbp - 9], rax
lea rdx, [0x140344690]
lea rax, [rbp - 0x79]
mov qword [rbp - 1], 0x40
mov qword [rbp + 7], rax
mov rcx, rsi
lea rax, [rbp - 0x69]
mov qword [rbp + 0xf], 4
cmovae rax, qword [rbp - 0x69]
test rax, rax
je 0x1401d722d
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x1401d7224
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403de062]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov eax, dword [rbp - 0x79]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401d7434
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov dword [rbp - 0x75], eax
test eax, eax
je 0x1401d7374
cmp eax, 0xc0000034
je 0x1401d7374
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401d7368
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_delete_registry_subkey
mov qword [rbp - 9], rax
lea rax, [rbp - 0x75]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x42
mov qword [rbp + 0xf], 4
jb 0x1401d72da
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x140344690]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x1401d72ff
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401d72f6
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1f], eax
mov qword [rbp + 0x17], r8
mov dword [rbp + 0x23], esi
jb 0x1401d731a
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x1401d7331
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401d7328
lea eax, [rax*2 + 2]
mov qword [rbp + 0x27], rdx
mov dword [rbp + 0x2f], eax
mov dword [rbp + 0x33], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403ddfc1]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
mov ebx, dword [rbp - 0x75]
bts ebx, 0x1c
jmp 0x1401d7434
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401d7432
cmp qword [rbx + 0x18], 8
lea rax, str.Deleted_registry_subkey
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x30
jb 0x1401d73a4
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x140344690]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x1401d73c9
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401d73c0
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0xf], eax
mov qword [rbp + 7], r8
mov dword [rbp + 0x13], esi
jb 0x1401d73e4
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x1401d73fb
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401d73f2
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403ddfff]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov ebx, esi
lea rcx, [rbp - 0x69]
call fcn.14004e0f0
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x1401d744c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret