Function at 0x14001d794
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x328
lea rbp, [rsp + 0x50]
mov rax, qword [0x1400a2318]
xor rax, rbp
mov qword [rbp + 0x2c0], rax
mov dword [rbp], r9d
mov qword [rbp + 8], r8
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rbp + 0x50], r14
mov r15d, r14d
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x20], r14
mov r13d, r14d
mov dword [rbp + 4], 1
mov r12d, dword [rbp + 0x340]
mov dword [rbp + 0x28], r12d
call fcn.14001bf50
jmp 0x14001da4a
cmp word [rdi], 0x7d
je 0x14001db1a
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
xor ebx, ebx
mov r14d, ebx
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]
nop dword [rax + rax]
test eax, eax
je 0x14001d84f
test r14d, r14d
je 0x14001d8fb
mov rdx, rdi
mov rcx, rsi
call fcn.14001bf50
mov ebx, eax
test eax, eax
js 0x14001db1a
xor ebx, ebx
cmp dword [rbp], ebx
je 0x14001d8fb
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x40], rbx
lea edx, [rbx + 0x5c]
mov rcx, rdi
call fcn.14001eda0
test rax, rax
jne 0x14001de17
mov rdx, rdi
call fcn.140018b1c
test eax, eax
je 0x14001d8b3
mov rax, qword [rbp + 8]
mov qword [rbp + 0x30], rax
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.14001cde0
mov qword [rbp + 0x30], rbx
test r14d, r14d
je 0x14001d8f2
mov rdx, rdi
mov rcx, rsi
call fcn.14001bf50
mov ebx, eax
test eax, eax
js 0x14001de11
mov rdx, rdi
mov rcx, rsi
call fcn.14001eb90
mov ebx, eax
lea rcx, [rbp + 0x30]
test eax, eax
js 0x14001de36
call fcn.140018cc4
xor ecx, ecx
jmp 0x14001dbcd
lea rcx, [rbp + 0x30]
call fcn.140018cc4
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d92f
mov dword [rbp + 4], ebx
mov rdx, rdi
mov rcx, rsi
call fcn.14001bf50
mov ebx, eax
test eax, eax
js 0x14001db1a
xor ebx, ebx
lea rdx, [0x140067280]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x14001da59
lea rdx, [rbp + 0xb0]
mov rcx, rsi
call fcn.14001bf50
mov ebx, eax
test eax, eax
js 0x14001db1a
mov rdx, rdi
mov rcx, rsi
call fcn.14001bf50
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x14001db1a
cmp word [rdi], 0x3d
jne 0x14001db15
mov r14d, dword [rbp]
test r14d, r14d
je 0x14001d9de
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rcx
mov rax, qword [rbp + 8]
mov qword [rbp + 0x58], rax
mov byte [rsp + 0x20], cl
mov r9, rdi
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.140017e7c
mov ebx, eax
xor eax, eax
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.140018cc4
test ebx, ebx
js 0x14001db1a
xor ecx, ecx
jmp 0x14001dbd1
test r12d, r12d
jne 0x14001da3f
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rcx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x70]
call fcn.14001c0f0
mov ebx, eax
test eax, eax
jne 0x14001de27
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, 0xfffffffd
jne 0x14001de25
lea rcx, [rbp + 0x70]
call fcn.140018cc4
mov rdx, rdi
mov rcx, rsi
call fcn.14001eb90
mov ebx, eax
test eax, eax
jns 0x14001d801
jmp 0x14001db1a
mov edx, 0x5c
mov rcx, rdi
call fcn.14001eda0
test rax, rax
jne 0x14001db15
cmp dword [rbp], ebx
je 0x14001dc20
mov r9d, 0xf003f
mov r8, rdi
mov rbx, qword [rbp + 8]
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14001c0f0
xor r14d, r14d
test eax, eax
je 0x14001db53
mov r9d, 0x20019
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14001c0f0
test eax, eax
je 0x14001db53
mov qword [rbp + 0x48], r14
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001db15
lea rcx, [rbp + 0x10]
call fcn.140018cc4
mov r15, qword [rbp + 0x48]
mov qword [rbp + 0x10], r15
test eax, eax
je 0x14001db57
mov ebx, 0x80020009
lea rcx, [rbp + 0x10]
call fcn.140018cc4
nop
lea rcx, [rbp + 0x50]
call fcn.140016cf4
mov eax, ebx
mov rcx, qword [rbp + 0x2c0]
xor rcx, rbp
call fcn.1400149c0
lea rsp, [rbp + 0x2d8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r15, qword [rbp + 0x10]
movzx eax, word [rdi]
sub ax, 0x4c
mov ecx, 0xffdf
test cx, ax
jne 0x14001db8d
lea rdx, str.LocalServer32
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
movzx r14d, r14b
test eax, eax
mov eax, 1
cmove r14d, eax
mov rdx, rdi
mov rcx, rsi
call fcn.14001bf50
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x14001db1a
cmp word [rdi], 0x3d
jne 0x14001dbcd
mov byte [rsp + 0x20], r14b
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.140017e7c
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x14001db1a
mov r14d, dword [rbp]
cmp word [rdi], 0x7b
jne 0x14001d801
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], cx
jne 0x14001dbdf
mov edx, 1
cmp rax, rdx
jne 0x14001d801
mov dword [rsp + 0x20], ecx
mov r9d, r14d
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14001d794
mov ebx, eax
test eax, eax
js 0x14001db1a
mov rdx, rdi
mov rcx, rsi
jmp 0x14001d7f7
mov r14, qword [rbp + 8]
test r12d, r12d
jne 0x14001dc4d
mov r9d, 0x20019
mov r8, rdi
mov rdx, r14
lea rcx, [rbp + 0x10]
call fcn.14001c0f0
test eax, eax
lea eax, [r12 + 1]
cmovne r12d, eax
mov r15, qword [rbp + 0x10]
test r13, r13
jne 0x14001dc91
mov r13d, 0x208
mov ecx, r13d
call fcn.14001f388
test al, al
je 0x14001dc79
mov eax, dword [rsp]
lea eax, [r13 + 8]
sub rsp, rax
lea r13, [rsp + 0x50]
mov eax, dword [r13]
jmp 0x14001dc88
mov rdx, r13
lea rcx, [rbp + 0x50]
call fcn.140018370
mov r13, rax
test r13, r13
je 0x14001de40
mov r8d, 0x104
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
nop dword [rax + rax]
test r12d, r12d
jne 0x14001dcca
mov rdx, r15
call fcn.140019ffc
test eax, eax
jne 0x14001dcca
mov rdx, r15
call fcn.14001a06c
test eax, eax
je 0x14001dd82
mov rdx, rdi
mov rcx, rsi
call fcn.14001bf50
mov ebx, eax
test eax, eax
js 0x14001db1a
mov rdx, rdi
mov rcx, rsi
call fcn.14001eb90
mov ebx, eax
test eax, eax
js 0x14001db1a
cmp word [rdi], 0x7b
jne 0x14001dd3d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14001d794
mov ebx, eax
test eax, eax
js 0x14001db1a
test r12d, r12d
je 0x14001dd46
mov r12d, dword [rbp + 0x28]
mov rdx, rdi
mov rcx, rsi
call fcn.14001bf50
mov ebx, eax
test eax, eax
js 0x14001db1a
jmp 0x14001da3f
test r12d, r12d
jne 0x14001d801
mov rdx, r15
call fcn.140019ffc
test eax, eax
je 0x14001dd77
mov rdx, r13
call fcn.140018b1c
test eax, eax
je 0x14001dc15
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.14001cde0
mov r15, qword [rbp + 0x10]
jmp 0x14001dc15
test r12d, r12d
jne 0x14001d801
xor ebx, ebx
lea rcx, [rbp + 0x10]
call fcn.140018cc4
test eax, eax
jne 0x14001db15
cmp dword [rbp + 4], ebx
je 0x14001ddd6
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0x88], r14
mov rdx, r13
lea rcx, [rbp + 0x88]
call fcn.140019c70
mov qword [rbp + 0x88], rbx
lea rcx, [rbp + 0x88]
call fcn.140018cc4
mov rdx, rdi
mov rcx, rsi
call fcn.14001bf50
mov ebx, eax
test eax, eax
js 0x14001db1a
mov rdx, rdi
mov rcx, rsi
call fcn.14001eb90
mov ebx, eax
test eax, eax
js 0x14001db1a
mov r14d, dword [rbp + 4]
mov dword [rbp + 4], r14d
mov r15, qword [rbp + 0x10]
jmp 0x14001d801
lea rcx, [rbp + 0x30]
jmp 0x14001de36
lea rcx, [rbp + 0x30]
call fcn.140018cc4
jmp 0x14001db15
test eax, eax
jle 0x14001de32
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rbp + 0x70]
call fcn.140018cc4
jmp 0x14001db1a
mov ebx, 0x8007000e
jmp 0x14001db1a