Function at 0x140061930
Capabilities:
Delete registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
mov eax, 0x18a8
call fcn.1400ea040
sub rsp, rax
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x1890], rax
mov qword [rsp + 0x28], r8
mov rbp, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdx
mov rdi, r8
mov r12, rdx
lea rdx, str.CRegistryIF
lea r9, str.lpszPrnName_s__lpszUninstKey_s
lea r8, str.RemoveLinkedApp
call fcn.140080c70
xor esi, esi
test rdi, rdi
je 0x140061c4e
lea rax, [rsp + 0x850]
mov qword [rsp + 0x18a0], rbx
mov ebx, 0x410
lea rcx, [rsp + 0x850]
mov r8d, esi
sub rdi, rax
mov rdx, rbx
nop
nop
nop
lea rax, [rdx + 0x7ffffbee]
test rax, rax
je 0x1400619e4
movzx eax, word [rdi + rcx]
test ax, ax
je 0x1400619e4
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400619c0
jmp 0x1400619e9
test rdx, rdx
jne 0x1400619f3
sub rcx, 2
mov r8d, 0x8007007a
test r8d, r8d
mov word [rcx], si
jne 0x140061b21
lea r8, [rsp + 0x850]
lea rax, [rsp + 0x1070]
mov rdx, rbx
lea rcx, [rsp + 0x1070]
mov r9d, esi
sub r8, rax
lea rax, [rdx + 0x7ffffbee]
test rax, rax
je 0x140061a45
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140061a45
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140061a20
jmp 0x140061a4a
test rdx, rdx
jne 0x140061a54
sub rcx, 2
mov r9d, 0x8007007a
test r9d, r9d
mov word [rcx], si
jne 0x140061b21
lea rdx, str.PrinterDrivers
lea rcx, [rsp + 0x1070]
call fcn.14002ae40
lea rdx, [rsp + 0x1070]
lea rax, [rsp + 0x850]
sub rdx, rax
lea rcx, [rsp + 0x850]
mov r8d, esi
lea rax, [rbx + 0x7ffffbee]
test rax, rax
je 0x140061ab6
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140061ab6
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140061a92
jmp 0x140061abb
test rbx, rbx
jne 0x140061ac5
sub rcx, 2
mov r8d, 0x8007007a
test r8d, r8d
mov eax, esi
mov word [rcx], si
sete al
test eax, eax
je 0x140061b21
lea r8, [rsp + 0x850]
lea rax, [rsp + 0x50]
mov edx, 0x400
sub r8, rax
lea rcx, [rsp + 0x50]
nop
lea rax, [rdx + 0x7ffffbfe]
test rax, rax
je 0x140061b15
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140061b15
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140061af0
jmp 0x140061b1a
test rdx, rdx
jne 0x140061b1e
sub rcx, 2
mov word [rcx], si
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x50]
mov r9d, 0x400
mov r8, r12
call fcn.140012f30
mov rcx, qword [rbp]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x30], r11
lea rax, [rsp + 0x50]
lea r9, str.hKey_x__lpszSubKey_s__phSubKey_x
mov qword [rsp + 0x28], rax
lea r8, str.OpenSubKey
lea rdx, str.CRegistryIF
mov qword [rsp + 0x20], 0xffffffff80000002
call fcn.140081070
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140061bad
mov rax, qword [rsp + 0x48]
mov ebx, 1
mov qword [rsp + 0x40], rax
mov rcx, qword [rbp]
lea r9, [0x1400fb428]
lea r8, str.OpenSubKey
lea rdx, str.CRegistryIF
mov dword [rsp + 0x20], ebx
call fcn.140081270
test ebx, ebx
je 0x140061c46
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rbp]
lea rdi, str.LinkedAppName
lea r9, str.hKey_x__lpszEntry_s
lea r8, str.DeleteEntry
lea rdx, str.CRegistryIF
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call fcn.140081070
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp]
lea r9, [0x1400fb428]
test eax, eax
lea r8, str.DeleteEntry
lea rdx, str.CRegistryIF
sete sil
mov dword [rsp + 0x20], esi
call fcn.140081270
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x18a0]
mov rcx, qword [rbp]
lea r9, [0x1400fb428]
lea r8, str.RemoveLinkedApp
lea rdx, str.CRegistryIF
mov dword [rsp + 0x20], esi
call fcn.140080e70
mov eax, esi
mov rcx, qword [rsp + 0x1890]
xor rcx, rsp
call fcn.1400cd6e0
add rsp, 0x18a8
pop r12
pop rdi
pop rsi
pop rbp
ret