Function at 0x1401b754c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor esi, esi
mov rbx, rdx
cmp qword [rdx + 0x18], 8
mov rdi, rcx
mov qword [rbp - 0x31], rsi
jb 0x1401b7584
mov rdx, qword [rdx]
lea rax, [rbp - 0x31]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov dword [rbp - 0x39], eax
test eax, eax
je 0x1401b7649
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b773c
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_open_the_registry_key
mov qword [rbp - 9], rax
lea rax, [rbp - 0x39]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x40
mov qword [rbp + 0xf], 4
jb 0x1401b75ee
mov rbx, qword [rbx]
lea rdx, [0x1402cb810]
mov rcx, rsi
test rbx, rbx
je 0x1401b760d
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x1401b7604
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, [0x14034c9a0]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
jmp 0x1401b773c
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1401b7656
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov dword [rbp - 0x39], eax
test eax, 0xfffffffd
je 0x1401b7752
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b773c
cmp qword [rdi + 0x18], 8
lea rax, str.Failed_to_delete_registry_value
mov qword [rbp - 9], rax
lea rax, [rbp - 0x39]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x40
mov qword [rbp + 0xf], 4
jb 0x1401b76ae
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x1402cb810]
mov r8, rdx
mov rax, rsi
test rdi, rdi
je 0x1401b76d3
mov r8, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401b76ca
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1f], eax
mov qword [rbp + 0x17], r8
mov dword [rbp + 0x23], esi
jb 0x1401b76ee
mov rbx, qword [rbx]
mov rax, rsi
test rbx, rbx
je 0x1401b7705
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401b76fc
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, [0x14034ca05]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001078
mov eax, dword [rbp - 0x39]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b7812
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401b7810
cmp qword [rdi + 0x18], 8
lea rax, str.Delete_registry_value
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x2c
jb 0x1401b7782
mov rdi, qword [rdi]
or rcx, 0xffffffffffffffff
lea rdx, [0x1402cb810]
mov r8, rdx
mov rax, rsi
test rdi, rdi
je 0x1401b77a7
mov r8, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401b779e
cmp qword [rbx + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0xf], eax
mov qword [rbp + 7], r8
mov dword [rbp + 0x13], esi
jb 0x1401b77c2
mov rbx, qword [rbx]
mov rax, rsi
test rbx, rbx
je 0x1401b77d9
mov rdx, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401b77d0
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, [0x14034cae2]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
mov ebx, esi
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1401b7821
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.14027a710
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret