Function at 0x14004cfc4
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x2238]
mov eax, 0x2338
call fcn.1400b5d40
sub rsp, rax
mov qword [rbp], 0xfffffffffffffffe
mov rax, qword [0x140184e90]
xor rax, rsp
mov qword [rbp + 0x2220], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x78], r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov qword [rbp - 0x80], rsi
mov dword [rbp - 0x78], esi
mov qword [rbp - 0x70], rsi
mov ecx, dword [rbp + 0x2280]
mov dword [rbp - 0x50], ecx
mov rcx, rax
call fcn.14004c2bc
mov ebx, eax
test eax, eax
js 0x14004d722
cmp word [rdi], 0x7d
je 0x14004d722
mov eax, 1
mov dword [rsp + 0x74], eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov esi, ebx
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14004d07d
test esi, esi
je 0x14004d171
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14004c2bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004d722
cmp dword [rsp + 0x70], edx
je 0x14004d16f
mov qword [rbp - 0x68], rdx
mov dword [rbp - 0x60], edx
mov qword [rbp - 0x58], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14004d0c7
cmp ax, 0x5c
je 0x14004d0ce
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x14004d0b3
jmp 0x14004d0d7
test rcx, rcx
jne 0x14004d699
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14004d129
add rbx, 8
lea rax, [0x14011b150]
cmp rbx, rax
jl 0x14004d0de
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x68], rax
xor ebx, ebx
mov dword [rbp - 0x60], ebx
mov qword [rbp - 0x58], rbx
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.140017788
mov qword [rbp - 0x68], rbx
mov dword [rbp - 0x60], ebx
mov qword [rbp - 0x58], rbx
jmp 0x14004d12b
xor ebx, ebx
test esi, esi
je 0x14004d16a
mov rdx, rdi
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call fcn.14004c2bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004d69e
mov rdx, rdi
mov rcx, rsi
call fcn.14004c920
mov ebx, eax
xor edx, edx
mov dword [rbp - 0x60], edx
test eax, eax
js 0x14004d722
jmp 0x14004d638
mov dword [rbp - 0x60], ebx
jmp 0x14004d171
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rsi, qword [rsp + 0x68]
test eax, eax
jne 0x14004d1a3
mov dword [rsp + 0x74], ebx
mov rdx, rdi
mov rcx, rsi
call fcn.14004c2bc
mov ebx, eax
test eax, eax
js 0x14004d722
lea rdx, [0x14011acf8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x14004d2c8
lea rdx, [rbp + 0x220]
mov rcx, rsi
call fcn.14004c2bc
mov ebx, eax
test eax, eax
js 0x14004d722
mov rdx, rdi
mov rcx, rsi
call fcn.14004c2bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004d722
cmp word [rdi], 0x3d
jne 0x14004d6dd
cmp dword [rsp + 0x70], edx
je 0x14004d245
mov qword [rbp - 0x48], rdx
mov dword [rbp - 0x40], edx
mov qword [rbp - 0x38], rdx
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], edx
mov qword [rbp - 0x38], rdx
mov r9, rdi
lea r8, [rbp + 0x220]
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.14004c444
mov ebx, eax
xor edx, edx
mov qword [rbp - 0x48], rdx
mov dword [rbp - 0x40], edx
mov qword [rbp - 0x38], rdx
mov dword [rbp - 0x40], edx
jmp 0x14004d15d
cmp dword [rbp + 0x2280], edx
jne 0x14004d2b8
cmp dword [rsp + 0x74], edx
je 0x14004d2b8
mov qword [rbp - 0x18], rdx
mov dword [rbp - 0x10], edx
mov qword [rbp - 8], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x18]
call fcn.140017618
xor ebx, ebx
test eax, eax
jne 0x14004d6b8
lea rdx, [rbp + 0x220]
mov rsi, qword [rbp - 0x18]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14004d6a3
test rsi, rsi
je 0x14004d2b0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], ebx
mov rsi, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, rsi
call fcn.14004c920
jmp 0x14004d690
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14004d2e4
cmp ax, 0x5c
je 0x14004d2eb
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x14004d2d0
jmp 0x14004d2f4
test rcx, rcx
jne 0x14004d6dd
cmp dword [rsp + 0x70], edx
je 0x14004d396
mov r9d, 0x2001f
mov r8, rdi
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017618
test eax, eax
je 0x14004d35a
mov r9d, 0x20019
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017618
xor ecx, ecx
test eax, eax
je 0x14004d35a
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017558
test eax, eax
jne 0x14004d719
mov rdx, rdi
mov rcx, rsi
call fcn.14004c2bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004d722
cmp word [rdi], 0x3d
jne 0x14004d638
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.14004c444
mov ebx, eax
xor edx, edx
jmp 0x14004d15d
mov ebx, dword [rbp + 0x2280]
test ebx, ebx
jne 0x14004d3bb
mov r9d, 0x20019
mov r8, rdi
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.140017618
mov esi, eax
jmp 0x14004d3c0
mov esi, 2
test esi, esi
mov eax, 1
cmovne ebx, eax
mov dword [rbp + 0x2280], ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x10]
call fcn.1400b5a8c
test eax, eax
je 0x14004d40d
cmp eax, 0xc
je 0x14004d6fa
cmp eax, 0x16
je 0x14004d6ef
cmp eax, 0x22
je 0x14004d6ef
cmp eax, 0x50
jne 0x14004d6e4
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14004c2bc
mov ebx, eax
test eax, eax
js 0x14004d722
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14004c920
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004d722
cmp word [rdi], 0x7b
jne 0x14004d4a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14004d447
cmp rax, 1
jne 0x14004d4a1
mov eax, dword [rbp + 0x2280]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rbp - 0x80]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14004cfc4
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x14004d488
cmp dword [rbp + 0x2280], edx
je 0x14004d722
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.14004c2bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004d722
mov eax, dword [rbp - 0x50]
mov dword [rbp + 0x2280], eax
cmp esi, 2
je 0x14004d034
test esi, esi
je 0x14004d4c4
test eax, eax
je 0x14004d705
jmp 0x14004d034
test eax, eax
je 0x14004d56c
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 - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x14004d56c
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
test eax, eax
je 0x14004d56c
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x14004d034
add rsi, 8
lea rax, [0x14011b150]
cmp rsi, rax
jl 0x14004d529
cmp dword [rsp + 0x74], edx
je 0x14004d034
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x80]
call fcn.140017788
jmp 0x14004d034
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 - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x14004d5bf
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14004d5d6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x78], edx
test eax, eax
jne 0x14004d719
cmp dword [rsp + 0x74], edx
je 0x14004d034
test esi, esi
jne 0x14004d034
mov qword [rbp - 0x30], rdx
mov dword [rbp - 0x28], edx
mov qword [rbp - 0x20], rdx
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], edx
mov qword [rbp - 0x20], rdx
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.1400174c4
xor edx, edx
mov qword [rbp - 0x30], rdx
mov dword [rbp - 0x28], edx
mov qword [rbp - 0x20], rdx
test eax, eax
jne 0x14004d709
mov dword [rbp - 0x28], edx
mov rsi, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x70]
test ecx, ecx
je 0x14004d034
cmp word [rdi], 0x7b
jne 0x14004d034
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14004d652
cmp rax, 1
jne 0x14004d034
mov dword [rsp + 0x20], edx
mov r9d, ecx
mov r8, qword [rbp - 0x80]
mov rdx, rdi
mov rcx, rsi
call fcn.14004cfc4
mov ebx, eax
test eax, eax
js 0x14004d722
mov rdx, rdi
mov rcx, rsi
call fcn.14004c2bc
mov ebx, eax
test eax, eax
jmp 0x14004d02e
mov dword [rbp - 0x60], edx
jmp 0x14004d6dd
mov dword [rbp - 0x60], edx
jmp 0x14004d722
mov ecx, eax
call fcn.14004b820
mov ebx, eax
xor edx, edx
test rsi, rsi
je 0x14004d6d8
mov rcx, rsi
jmp 0x14004d6cc
mov ecx, eax
call fcn.14004b820
mov ebx, eax
mov rcx, qword [rbp - 0x18]
xor edx, edx
test rcx, rcx
je 0x14004d6d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov qword [rbp - 0x18], rdx
mov dword [rbp - 0x10], edx
jmp 0x14004d722
mov ebx, 0x80020009
jmp 0x14004d722
mov ecx, 0x80004005
call fcn.140001874
int3
mov ecx, 0x80070057
call fcn.140001874
int3
mov ecx, 0x8007000e
call fcn.140001874
int3
mov ecx, esi
jmp 0x14004d71b
mov ecx, eax
call fcn.14004b820
mov ebx, eax
xor eax, eax
mov dword [rbp - 0x28], eax
jmp 0x14004d722
mov ecx, eax
call fcn.14004b820
mov ebx, eax
mov rax, qword [rbp - 0x80]
xor edi, edi
test rax, rax
je 0x14004d73a
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x78], edi
mov eax, ebx
mov rcx, qword [rbp + 0x2220]
xor rcx, rsp
call fcn.1400b0c90
add rsp, 0x2338
pop rdi
pop rsi
pop rbx
pop rbp
ret