Function at 0x7ff698f4b780
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x7ff69902b080]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rcx
lea rcx, [0x7ff69900c628]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x7ff698f4b98e
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x7ff698f4b9b9
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x7ff698f4b7eb
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, [0x7ff69900f2b0]
lea rcx, [rsp + 0x68]
call fcn.7ff698f48420
nop
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x7ff698f4b9b3
cmp qword [rbx + 0x18], 7
jbe 0x7ff698f4b84d
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x22
lea r9, [0x7ff69900f120]
lea rcx, [rsp + 0x48]
call fcn.7ff698f48420
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
je 0x7ff698f4b8a4
cmp eax, 2
sete bl
jmp 0x7ff698f4b976
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea rdx, [0x7ff69900f340]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
lea rcx, [rsp + 0x88]
call rax
mov ebx, eax
lea rdx, [0x7ff69900f350]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff698f45c80
lea rdx, [0x7ff698f41410]
mov rcx, rax
call qword [0x7ff698fef540]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
lea rdx, [0x7ff698f45af0]
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_istream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_istream_char__struct_std::char_traits_char______ptr64_____ptr64]
test ebx, ebx
je 0x7ff698f4b952
lea rdx, [0x7ff69900f370]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff698f45c80
lea rdx, [0x7ff698f45af0]
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_istream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_istream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x7ff698f4b976
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegDeleteTreeW]
test eax, eax
jne 0x7ff698f4b94e
mov bl, 1
lea rcx, [rsp + 0x48]
call fcn.7ff698f457e0
nop
lea rcx, [rsp + 0x68]
call fcn.7ff698f457e0
movzx eax, bl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.7ff698fe98c0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.7ff698f30240
nop
call fcn.7ff698f30240
int3