Function at 0x1400049a0
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f8
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400163a0]
xor rax, rbp
mov qword [rbp + 0x280], rax
mov dword [rbp + 8], r9d
mov qword [rbp + 0x10], r8
mov rsi, rdx
mov r12, rcx
xor r14d, r14d
mov ebx, r14d
mov qword [rbp + 0x60], rbx
mov r15d, r14d
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], r14
mov qword [rbp + 0x50], r14
mov r13d, r14d
mov dword [rbp + 0x18], 1
mov eax, dword [rbp + 0x300]
mov dword [rbp + 0x38], eax
call fcn.1400047c8
mov edi, eax
test eax, eax
js 0x14000518c
cmp word [rsi], 0x7d
je 0x14000518c
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
sete r14b
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140004a64
test r14d, r14d
je 0x140004b38
mov rdx, rsi
mov rcx, r12
call fcn.1400047c8
mov edi, eax
xor edx, edx
test eax, eax
js 0x14000518c
cmp dword [rbp + 8], edx
je 0x140004b38
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004ab0
cmp ax, 0x5c
je 0x140004ab7
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004a98
jmp 0x140004ac0
test rcx, rcx
jne 0x140005187
lea rdi, str.CLSID
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140004b01
add rdi, 8
lea rax, [0x140010600]
cmp rdi, rax
jl 0x140004ac7
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.140004480
test r14d, r14d
je 0x140004b38
mov rdx, rsi
mov rcx, r12
call fcn.1400047c8
mov edi, eax
xor r14d, r14d
test eax, eax
js 0x1400051a3
mov rdx, rsi
mov rcx, r12
call fcn.1400046f8
mov edi, eax
test eax, eax
js 0x14000518c
jmp 0x14000512d
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
xor r14d, r14d
test eax, eax
jne 0x140004b6e
mov dword [rbp + 0x18], r14d
mov rdx, rsi
mov rcx, r12
call fcn.1400047c8
mov edi, eax
test eax, eax
js 0x14000518c
lea rdx, [0x140010ff0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x140004c83
lea rdx, [rbp + 0x70]
mov rcx, r12
call fcn.1400047c8
mov edi, eax
test eax, eax
js 0x14000518c
mov rdx, rsi
mov rcx, r12
call fcn.1400047c8
mov edi, eax
test eax, eax
js 0x14000518c
cmp word [rsi], 0x3d
jne 0x140005187
cmp dword [rbp + 8], r14d
je 0x140004bf6
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov byte [rsp + 0x20], r14b
mov r9, rsi
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x20]
mov rcx, r12
call fcn.140003bf4
mov edi, eax
jmp 0x140004b2b
xor edi, edi
cmp dword [rbp + 0x300], edi
jne 0x140004c70
mov qword [rbp], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400051a5
mov eax, edi
mov r14, qword [rbp]
test eax, eax
jne 0x1400051a5
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, 0xfffffffd
jne 0x1400051a5
test r14, r14
je 0x140004c70
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, r12
call fcn.1400046f8
xor r14d, r14d
jmp 0x140004a11
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004ca3
cmp ax, 0x5c
je 0x140004caa
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004c8b
jmp 0x140004cb3
test rcx, rcx
jne 0x140005187
cmp dword [rbp + 8], r14d
je 0x140004e46
mov qword [rbp], r14
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rsi
mov rdi, qword [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004d14
mov eax, r14d
test r15, r15
je 0x140004d04
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004dd2
mov qword [rbp], r14
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004d63
mov eax, r14d
test r15, r15
je 0x140004d57
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004dd2
mov qword [rbp], r14
lea rax, [rbp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rbp]
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, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140005187
mov eax, r14d
test r15, r15
je 0x140004dc2
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
jne 0x140005187
movzx eax, word [rsi]
sub ax, 0x4c
mov ecx, 0xffdf
test cx, ax
jne 0x140004e08
lea rdx, str.LocalServer32
mov rcx, rsi
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, rsi
mov rcx, r12
call fcn.1400047c8
mov edi, eax
test eax, eax
js 0x14000518c
cmp word [rsi], 0x3d
jne 0x14000512a
mov byte [rsp + 0x20], r14b
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp + 0x40]
mov rcx, r12
call fcn.140003bf4
xor r14d, r14d
jmp 0x140004bef
mov r14d, dword [rbp + 0x300]
xor edi, edi
test r14d, r14d
jne 0x140004eb1
mov qword [rbp], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004ea3
mov eax, edi
test r15, r15
je 0x140004e97
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004eb1
mov eax, 1
mov r14d, eax
mov dword [rbp + 0x300], eax
test r13, r13
jne 0x140004f0c
mov ecx, 0x208
call fcn.140004304
test al, al
je 0x140004eda
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea r13, [rsp + 0x60]
mov eax, dword [r13]
jmp 0x140004f03
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
jne 0x140004ef5
mov r13, rdi
jmp 0x140004f03
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp + 0x60], rax
lea r13, [rax + 0x10]
test r13, r13
je 0x1400051c9
mov r8d, 0x104
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
nop dword [rax + rax]
test r14d, r14d
jne 0x140004f88
mov dword [rbp], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
js 0x140004f78
cmp dword [rbp], edi
ja 0x140004f88
mov rdx, r15
call fcn.14000437c
test eax, eax
je 0x1400050c0
mov rdx, rsi
mov rcx, r12
call fcn.1400047c8
mov edi, eax
test eax, eax
js 0x14000518c
mov rdx, rsi
mov rcx, r12
call fcn.1400046f8
mov edi, eax
xor eax, eax
test edi, edi
js 0x14000518c
cmp word [rsi], 0x7b
jne 0x140005012
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rsi
mov rcx, r12
call fcn.1400049a0
mov edi, eax
xor eax, eax
test edi, edi
js 0x14000518c
test r14d, r14d
je 0x14000501b
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x300], eax
mov rdx, rsi
mov rcx, r12
call fcn.1400047c8
mov edi, eax
xor r14d, r14d
test eax, eax
js 0x14000518c
mov rdx, rsi
mov rcx, r12
call fcn.1400046f8
jmp 0x140004a11
test r14d, r14d
jne 0x14000517f
mov dword [rbp], eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
js 0x1400050b7
cmp dword [rbp], ecx
jbe 0x1400050b7
lea rdi, str.CLSID
xor r14d, r14d
mov rdx, qword [rdi]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x1400050ac
add rdi, 8
lea rax, [0x140010600]
cmp rdi, rax
jl 0x140005076
mov rdx, r13
lea rcx, [rbp + 0x40]
call fcn.140004480
mov r15, qword [rbp + 0x40]
mov rdx, rsi
mov rcx, r12
jmp 0x140004a0c
test r14d, r14d
jne 0x14000517f
xor r14d, r14d
test r15, r15
je 0x1400050e6
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15d, r14d
mov qword [rbp + 0x40], r14
test eax, eax
jne 0x140005187
cmp dword [rbp + 0x18], r14d
je 0x140005109
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov rdx, r13
lea rcx, [rbp + 0x20]
call fcn.14000461c
nop
mov rdx, rsi
mov rcx, r12
call fcn.1400047c8
mov edi, eax
test eax, eax
js 0x14000518c
mov rdx, rsi
mov rcx, r12
call fcn.1400046f8
jmp 0x140004bef
xor r14d, r14d
mov ecx, dword [rbp + 8]
test ecx, ecx
je 0x140004a1b
cmp word [rsi], 0x7b
jne 0x140004a1b
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140005146
mov edx, 1
cmp rax, rdx
jne 0x140004a1b
mov dword [rsp + 0x20], r14d
mov r9d, ecx
mov r8, r15
mov rdx, rsi
mov rcx, r12
call fcn.1400049a0
mov edi, eax
test eax, eax
js 0x14000518c
jmp 0x1400050ac
xor r14d, r14d
jmp 0x140004a1b
mov edi, 0x80020009
test r15, r15
je 0x1400051a1
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x1400051e2
jmp 0x14000518c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test r14, r14
je 0x14000518c
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14000518c
mov edi, 0x8007000e
jmp 0x14000518c
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x1400051d0
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rbp
call fcn.14000d8a0
lea rsp, [rbp + 0x298]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret