Function at 0x180089898
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.1800a0350
sub rsp, rax
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x1801933d0]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x78], r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor ecx, ecx
mov esi, ecx
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x60], ecx
mov qword [rbp - 0x58], rcx
mov rcx, rax
call fcn.1800865d0
mov ebx, eax
test eax, eax
js 0x180089f8b
cmp word [rdi], 0x7d
je 0x180089f87
mov eax, 1
mov dword [rsp + 0x74], eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
mov ebx, ecx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, [0x18014eb80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18008994d
test ebx, ebx
je 0x180089a25
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1800865d0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x180089f87
cmp dword [rsp + 0x70], edx
je 0x180089a25
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x78], edx
mov qword [rbp - 0x70], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x180089995
cmp ax, 0x5c
je 0x18008999c
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180089983
jmp 0x1800899a5
test rcx, rcx
jne 0x180089f4b
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
je 0x1800899ec
add rbx, 8
lea rax, [0x18012b380]
cmp rbx, rax
jl 0x1800899ac
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], ecx
mov qword [rbp - 0x70], rcx
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1800890e8
xor ecx, ecx
cmp dword [rsp + 0x60], ecx
je 0x180089a25
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1800865d0
mov ebx, eax
test eax, eax
js 0x180089f87
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.18008ac64
mov ebx, eax
test ebx, ebx
js 0x180089f87
jmp 0x180089c43
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
jne 0x180089a56
mov dword [rsp + 0x74], ecx
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1800865d0
mov ebx, eax
test eax, eax
js 0x180089f87
lea rdx, [0x18014eb78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x180089b64
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x68]
call fcn.1800865d0
mov ebx, eax
test eax, eax
js 0x180089f87
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1800865d0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x180089f87
cmp word [rdi], 0x3d
jne 0x180089f4b
cmp dword [rsp + 0x70], edx
je 0x180089ae3
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], edx
mov qword [rbp - 0x70], rdx
mov r9, rdi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x68]
call fcn.1800825a4
mov ebx, eax
jmp 0x180089a18
cmp dword [rbp + 0x2230], edx
jne 0x180089b48
cmp dword [rsp + 0x74], edx
je 0x180089b48
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x78], edx
mov qword [rbp - 0x70], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.180088504
test eax, eax
jne 0x180089f31
lea rdx, [rbp + 0x1d0]
mov rsi, qword [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x180089f1e
test rsi, rsi
je 0x180089b48
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.18008ac64
mov ebx, eax
test eax, eax
js 0x180089f87
jmp 0x180089f0f
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x180089b80
cmp ax, 0x5c
je 0x180089b87
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x180089b6c
jmp 0x180089b90
test rcx, rcx
jne 0x180089f52
cmp dword [rsp + 0x70], edx
je 0x180089c9b
mov r9d, 0x2001f
mov r8, rdi
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.180088504
xor esi, esi
test eax, eax
je 0x180089c03
mov r9d, 0x20019
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.180088504
test eax, eax
je 0x180089c03
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.180083b2c
test eax, eax
jne 0x180089f7e
mov rdx, rdi
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call fcn.1800865d0
mov ebx, eax
test eax, eax
js 0x180089f87
cmp word [rdi], 0x3d
jne 0x180089c3f
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.1800825a4
mov ebx, eax
test eax, eax
js 0x180089f87
mov rsi, qword [rbp - 0x68]
cmp word [rdi], 0x7b
jne 0x180089f0f
mov rcx, rdi
call fcn.1800d352c
mov ecx, 1
cmp rax, rcx
jne 0x180089f0f
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x70]
mov r8, rsi
mov rdx, rdi
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call fcn.180089898
mov ebx, eax
test eax, eax
js 0x180089f87
mov rdx, rdi
mov rcx, rsi
call fcn.1800865d0
jmp 0x180089b55
mov ebx, dword [rbp + 0x2230]
test ebx, ebx
jne 0x180089cc0
mov r9d, 0x20019
mov r8, rdi
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.180088504
mov esi, eax
jmp 0x180089cc5
mov esi, 2
mov eax, ebx
test esi, esi
mov ecx, 1
cmovne eax, ecx
mov dword [rsp + 0x60], eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.1800d4a54
test eax, eax
je 0x180089d12
cmp eax, 0xc
je 0x180089f6f
cmp eax, 0x16
je 0x180089f64
cmp eax, 0x22
je 0x180089f64
cmp eax, 0x50
jne 0x180089f59
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1800865d0
mov ebx, eax
test eax, eax
js 0x180089f87
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.18008ac64
mov ebx, eax
xor edx, edx
test eax, eax
js 0x180089f87
cmp word [rdi], 0x7b
jne 0x180089da5
mov rcx, rdi
call fcn.1800d352c
mov ecx, 1
cmp rax, rcx
jne 0x180089da3
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp - 0x68]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180089898
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x180089d88
cmp dword [rsp + 0x60], edx
je 0x180089f87
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1800865d0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x180089f87
jmp 0x180089da5
xor edx, edx
cmp esi, 2
je 0x180089f0f
test esi, esi
je 0x180089dc3
cmp dword [rbp + 0x2230], edx
je 0x180089f7a
jmp 0x180089f0f
cmp dword [rbp + 0x2230], edx
je 0x180089e6f
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x180089e6f
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
test eax, eax
je 0x180089e6f
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x180089f0f
add rsi, 8
lea rax, [0x18012b380]
cmp rsi, rax
jl 0x180089e2c
cmp dword [rsp + 0x74], edx
je 0x180089f0f
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.1800890e8
jmp 0x180089f0f
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x180089ec2
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180089ed9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rbp - 0x68], rdx
mov dword [rbp - 0x60], edx
test eax, eax
jne 0x180089f7e
cmp dword [rsp + 0x74], edx
je 0x180089f0f
test esi, esi
jne 0x180089f0f
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], edx
mov qword [rbp - 0x70], rdx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.180083c1c
test eax, eax
jne 0x180089f7e
cmp word [rdi], 0x7d
je 0x180089f87
mov rsi, qword [rbp - 0x68]
jmp 0x18008990b
mov ecx, eax
call fcn.180082f28
mov ebx, eax
test rsi, rsi
je 0x180089f87
mov rcx, rsi
jmp 0x180089f43
mov ecx, eax
call fcn.180082f28
mov ebx, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x180089f87
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180089f87
mov ebx, 0x80020009
jmp 0x180089f8b
mov ebx, 0x80020009
jmp 0x180089f87
mov ecx, 0x80004005
call fcn.180057aec
int3
mov ecx, 0x80070057
call fcn.180057aec
int3
mov ecx, 0x8007000e
call fcn.180057aec
int3
mov ecx, esi
jmp 0x180089f80
mov ecx, eax
call fcn.180082f28
mov ebx, eax
mov rsi, qword [rbp - 0x68]
test rsi, rsi
je 0x180089f99
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.18009f760
add rsp, 0x22e8
pop rdi
pop rsi
pop rbx
pop rbp
ret