Function at 0x10001dd98
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x22e8
call fcn.100003a00
sub rsp, rax
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x1000390b0]
xor rax, rsp
mov qword [rsp + 0x22d0], rax
mov dword [rsp + 0x74], r9d
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor ecx, ecx
mov rbx, rcx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rcx
mov ecx, dword [rsp + 0x2330]
mov dword [rsp + 0xb0], ecx
mov rcx, rax
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jge 0x10001de1d
jmp 0x10001e6d2
cmp word [rsi], 0x7d
je 0x10001e6c2
mov eax, 1
mov dword [rsp + 0x70], eax
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
mov ebp, edi
cmp eax, edi
sete bpl
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x10001de66
cmp ebp, edi
je 0x10001df54
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
cmp dword [rsp + 0x74], edx
je 0x10001df52
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0xa8], rdx
mov rcx, rsi
movzx eax, word [rsi]
cmp ax, dx
je 0x10001ded0
cmp ax, 0x5c
je 0x10001dec7
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
xor edx, edx
cmp ax, dx
jne 0x10001deac
jmp 0x10001ded0
cmp rcx, rdx
jne 0x10001e5ca
lea rdi, str.AppID
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10001df14
add rdi, 8
lea rax, str.TypeLib
cmp rdi, rax
jl 0x10001ded7
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x98], rax
mov rdx, rsi
lea rcx, [rsp + 0x98]
call fcn.10001c6ac
xor edi, edi
cmp ebp, edi
je 0x10001df54
mov rdx, rsi
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
mov rdx, rsi
mov rcx, rbp
call fcn.10001d814
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
jmp 0x10001e25b
xor edi, edi
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
jne 0x10001df8a
mov dword [rsp + 0x70], edi
mov rdx, rsi
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
jmp 0x10001df91
mov rbp, qword [rsp + 0x68]
jmp 0x10001df93
xor edi, edi
lea rdx, [0x10002a6c8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
jne 0x10001e0cc
lea rdx, [rsp + 0x2d0]
mov rcx, rbp
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
mov rdx, rsi
mov rcx, rbp
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
cmp word [rsi], 0x3d
jne 0x10001e62b
cmp dword [rsp + 0x74], edx
je 0x10001e037
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0xa8], rdx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x98], rax
mov r9, rsi
lea r8, [rsp + 0x2d0]
lea rdx, [rsp + 0x98]
mov rcx, rbp
call fcn.10001d364
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e5e2
jmp 0x10001e25b
cmp dword [rsp + 0x2330], edx
jne 0x10001e0b0
cmp dword [rsp + 0x70], edx
je 0x10001e0b0
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
cmp eax, edi
jne 0x10001e61b
mov rbp, qword [rsp + 0x60]
lea rdx, [rsp + 0x2d0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x10001e096
cmp eax, 2
jne 0x10001e5f7
cmp rbp, rdi
je 0x10001e0ab
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
jmp 0x10001e0b0
mov rbp, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, rbp
call fcn.10001d814
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
jmp 0x10001e5b6
mov rcx, rsi
movzx eax, word [rsi]
cmp ax, di
je 0x10001e0f9
cmp ax, 0x5c
je 0x10001e0f0
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
cmp ax, di
jne 0x10001e0d7
jmp 0x10001e0f9
cmp rcx, rdi
jne 0x10001e643
cmp dword [rsp + 0x74], edi
je 0x10001e2bc
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x10001e159
mov eax, ecx
cmp rbx, rcx
je 0x10001e144
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x80], rbx
cmp eax, ecx
je 0x10001e214
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x10001e1a6
mov eax, ecx
cmp rbx, rcx
je 0x10001e195
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x80], rbx
cmp eax, ecx
je 0x10001e214
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edi, edi
cmp eax, edi
jne 0x10001e662
mov eax, edi
cmp rbx, rdi
je 0x10001e1ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x80], rbx
cmp eax, edi
jne 0x10001e662
mov rdx, rsi
mov rcx, rbp
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
cmp word [rsi], 0x3d
jne 0x10001e25b
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.10001d364
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e658
mov rbx, qword [rsp + 0x80]
cmp word [rsi], 0x7b
jne 0x10001e5b6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x10001e5b4
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x74]
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.10001dd98
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
mov rdx, rsi
mov rcx, rbp
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
jmp 0x10001e5b6
mov edi, dword [rsp + 0x2330]
xor eax, eax
cmp edi, eax
jne 0x10001e31a
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
xor eax, eax
cmp ebp, eax
jne 0x10001e31f
mov ebp, eax
cmp rbx, rax
je 0x10001e30b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x80], rbx
jmp 0x10001e31f
mov ebp, 2
cmp ebp, eax
mov eax, 1
cmovne edi, eax
mov dword [rsp + 0x2330], edi
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call sub.msvcrt.dll_wcsncpy_s
xor ecx, ecx
cmp eax, ecx
je 0x10001e373
cmp eax, 0xc
je 0x10001e695
cmp eax, 0x16
je 0x10001e68a
cmp eax, 0x22
je 0x10001e68a
cmp eax, 0x50
jne 0x10001e67f
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.10001d814
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
cmp word [rsi], 0x7b
jne 0x10001e40d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 1
cmp eax, ecx
jne 0x10001e40b
mov eax, dword [rsp + 0x2330]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbx
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.10001dd98
mov edi, eax
xor edx, edx
cmp eax, edx
jge 0x10001e3f0
cmp dword [rsp + 0x2330], edx
je 0x10001e6c2
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.10001d1d8
mov edi, eax
xor edx, edx
cmp eax, edx
jl 0x10001e6c2
jmp 0x10001e40d
xor edx, edx
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x2330], eax
cmp ebp, 2
je 0x10001e5b6
cmp ebp, edx
je 0x10001e435
cmp eax, edx
je 0x10001e6a0
jmp 0x10001e5b6
cmp eax, edx
je 0x10001e4f3
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, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
cmp eax, edx
jne 0x10001e4f3
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
cmp eax, edx
je 0x10001e4f3
lea rbp, str.AppID
mov rdx, qword [rbp]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
cmp eax, edx
je 0x10001e5b6
add rbp, 8
lea rax, str.TypeLib
cmp rbp, rax
jl 0x10001e499
cmp dword [rsp + 0x70], edx
je 0x10001e5b6
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x80]
call fcn.10001c6ac
mov rbx, qword [rsp + 0x80]
xor edx, edx
jmp 0x10001e5b6
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, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
cmp eax, edx
je 0x10001e53f
mov ebp, edx
jmp 0x10001e549
mov ebp, edx
cmp dword [rsp + 0x60], edx
seta bpl
cmp rbx, rdx
je 0x10001e56c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov rbx, rdx
mov qword [rsp + 0x80], rdx
cmp eax, edx
jne 0x10001e6ad
cmp dword [rsp + 0x70], edx
je 0x10001e5b6
cmp ebp, edx
jne 0x10001e5b6
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0xa8], rdx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.10001c5fc
xor edx, edx
cmp eax, edx
jne 0x10001e6b7
jmp 0x10001e5b6
xor edx, edx
cmp word [rsi], 0x7d
je 0x10001e6c2
mov eax, 1
jmp 0x10001de2c
cmp rbx, rdx
je 0x10001e5d8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x10001e6d2
cmp rbx, rdx
je 0x10001e5f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10001e6d2
mov ecx, eax
call fcn.10001c4c8
mov edi, eax
xor edx, edx
cmp rbp, rdx
je 0x10001e6c2
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
jmp 0x10001e6c2
mov ecx, eax
call fcn.10001c4c8
mov edi, eax
xor edx, edx
jmp 0x10001e6c2
cmp rbx, rdx
je 0x10001e639
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x10001e6d2
cmp rbx, rdi
je 0x10001e651
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x10001e6d2
mov rbx, qword [rsp + 0x80]
jmp 0x10001e6c2
mov ecx, eax
call fcn.10001c4c8
mov edi, eax
xor eax, eax
cmp rbx, rax
je 0x10001e67b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10001e6d2
mov ecx, 0x80004005
call fcn.10001c498
int3
mov ecx, 0x80070057
call fcn.10001c498
int3
mov ecx, 0x8007000e
call fcn.10001c498
int3
mov ecx, ebp
call fcn.10001c4c8
mov edi, eax
xor edx, edx
jmp 0x10001e6c2
mov ecx, eax
call fcn.10001c4c8
nop
jmp 0x10001e6d2
mov ecx, eax
call fcn.10001c4c8
mov edi, eax
xor edx, edx
cmp rbx, rdx
je 0x10001e6d0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x22d0]
xor rcx, rsp
call fcn.100001c80
add rsp, 0x22e8
pop rdi
pop rsi
pop rbp
pop rbx
ret