Function at 0x140050af4
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21a8]
mov eax, 0x22a8
call fcn.140017cd0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400866a0]
xor rax, rsp
mov qword [rbp + 0x2190], rax
mov r15d, r9d
mov dword [rsp + 0x40], r9d
mov r13, r8
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
call fcn.14004f8f4
test eax, eax
mov ebx, eax
js 0x140051030
cmp word [rdi], 0x7d
je 0x140051030
mov eax, 1
mov r12d, eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
sete r14b
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x140050ba7
test r14d, r14d
je 0x140050c58
mov rdx, rdi
mov rcx, rsi
call fcn.14004f8f4
mov ebx, eax
test eax, eax
js 0x140051030
xor ebx, ebx
test r15d, r15d
je 0x140050c58
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
lea edx, [rbx + 0x5c]
mov rcx, rdi
call fcn.1400512e0
test rax, rax
jne 0x140051021
mov rdx, rdi
call fcn.14004ea38
test eax, eax
je 0x140050c0d
mov qword [rsp + 0x48], r13
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140050668
mov qword [rsp + 0x48], rbx
test r14d, r14d
je 0x140050c4e
mov rdx, rdi
mov rcx, rsi
call fcn.14004f8f4
mov ebx, eax
xor r14d, r14d
test eax, eax
js 0x14005101f
mov rdx, rdi
mov rcx, rsi
call fcn.140051218
mov ebx, eax
test eax, eax
lea rcx, [rsp + 0x48]
js 0x14005106d
call fcn.14004eb54
jmp 0x140050fcb
lea rcx, [rsp + 0x48]
call fcn.14004eb54
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
xor r14d, r14d
test eax, eax
jne 0x140050c87
mov r12d, r14d
mov rdx, rdi
mov rcx, rsi
call fcn.14004f8f4
mov ebx, eax
test eax, eax
js 0x140051030
lea rdx, [0x140070cb0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
jne 0x140050d80
lea rdx, [rbp + 0x190]
mov rcx, rsi
call fcn.14004f8f4
mov ebx, eax
test eax, eax
js 0x140051030
mov rdx, rdi
mov rcx, rsi
call fcn.14004f8f4
mov ebx, eax
test eax, eax
js 0x140051030
cmp word [rdi], 0x3d
jne 0x14005102b
test r15d, r15d
je 0x140050d0e
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x48], r13
mov r9, rdi
lea r8, [rbp + 0x190]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14004e450
mov ebx, eax
mov qword [rsp + 0x48], r14
jmp 0x140050c37
cmp dword [rbp + 0x2210], r14d
jne 0x140050d70
test r12d, r12d
je 0x140050d70
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x48]
call fcn.14004fa8c
test eax, eax
jne 0x14005105f
lea rdx, [rbp + 0x190]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14005105f
lea rcx, [rsp + 0x48]
call fcn.14004eb54
mov rdx, rdi
mov rcx, rsi
call fcn.140051218
jmp 0x140050b58
mov edx, 0x5c
mov rcx, rdi
call fcn.1400512e0
test rax, rax
jne 0x14005102b
test r15d, r15d
je 0x140050e2c
mov r9d, 0x2001f
mov r8, rdi
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.14004fa8c
test eax, eax
je 0x140050deb
mov r9d, 0x20019
mov r8, rdi
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.14004fa8c
test eax, eax
je 0x140050deb
mov r8, rdi
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.14004eb80
test eax, eax
jne 0x140051080
mov rdx, rdi
mov rcx, rsi
call fcn.14004f8f4
mov ebx, eax
test eax, eax
js 0x140051030
cmp word [rdi], 0x3d
jne 0x140050fcb
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14004e450
mov ebx, eax
test eax, eax
js 0x140051030
jmp 0x140050fcb
mov ebx, dword [rbp + 0x2210]
test ebx, ebx
jne 0x140050e51
mov r9d, 0x20019
mov r8, rdi
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.14004fa8c
mov r14d, eax
jmp 0x140050e57
mov r14d, 2
mov r15d, ebx
test r14d, r14d
mov eax, 1
cmovne r15d, eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcsncpy_s]
mov ecx, eax
call fcn.14002f5d8
mov rdx, rdi
mov rcx, rsi
call fcn.14004f8f4
mov ebx, eax
test eax, eax
js 0x140051030
mov rdx, rdi
mov rcx, rsi
call fcn.140051218
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x140051030
cmp word [rdi], 0x7b
jne 0x140050f06
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], cx
jne 0x140050eb9
cmp rax, 1
jne 0x140050f06
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
call fcn.140050af4
mov ebx, eax
test eax, eax
jns 0x140050eef
test r15d, r15d
je 0x140051030
mov rdx, rdi
mov rcx, rsi
call fcn.14004f8f4
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x140051030
cmp r14d, 2
je 0x140050f1d
test r14d, r14d
je 0x140050f2a
cmp dword [rbp + 0x2210], ecx
je 0x140051074
xor r14d, r14d
mov r15d, dword [rsp + 0x40]
jmp 0x140050b62
xor r14d, r14d
cmp dword [rbp + 0x2210], r14d
je 0x140050f66
mov rdx, qword [rsp + 0x60]
call fcn.14004f77c
test eax, eax
je 0x140050f66
lea rdx, [rbp - 0x80]
call fcn.14004ea38
test eax, eax
je 0x140050f20
test r12d, r12d
je 0x140050f20
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140050668
jmp 0x140050f20
mov rdx, qword [rsp + 0x60]
call fcn.14004f77c
mov r14d, eax
lea rcx, [rsp + 0x60]
call fcn.14004eb54
test eax, eax
jne 0x140051080
test r12d, r12d
je 0x140050f1d
test r14d, r14d
jne 0x140050f1d
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x48], r13
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14004f674
mov qword [rsp + 0x48], r14
test eax, eax
jne 0x14005105f
lea rcx, [rsp + 0x48]
call fcn.14004eb54
mov r15d, dword [rsp + 0x40]
test r15d, r15d
je 0x140050b62
cmp word [rdi], 0x7b
jne 0x140050b62
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x140050fe2
cmp rax, 1
jne 0x140050b62
mov dword [rsp + 0x20], r14d
mov r9d, r15d
mov r8, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
call fcn.140050af4
mov ebx, eax
test eax, eax
js 0x140051030
mov rdx, rdi
mov rcx, rsi
jmp 0x140050b53
jmp 0x140051068
lea rcx, [rsp + 0x48]
call fcn.14004eb54
mov ebx, 0x80020009
lea rcx, [rsp + 0x60]
call fcn.14004eb54
mov eax, ebx
mov rcx, qword [rbp + 0x2190]
xor rcx, rsp
call fcn.140015a80
add rsp, 0x22a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.14004ea20
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.14004eb54
jmp 0x140051030
mov ecx, r14d
call fcn.14004ea20
mov ebx, eax
jmp 0x140051030
mov ecx, eax
jmp 0x140051077