Function at 0x1401af970
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
mov rbp, rsp
sub rsp, 0x50
mov rbx, rdx
mov rsi, rcx
call fcn.1401b0510
test rax, rax
jne 0x1401af99e
lea edx, [rax + 1]
mov rcx, rsi
call fcn.1401a0cc0
add rsp, 0x50
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rbx]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x48], r14
mov qword [rbp + 0x38], rax
cmp rbx, rcx
jne 0x1401af9d5
mov r8d, 0x446
lea rdx, str.C:ciqt_main_1660099987651workqtqtbaseincludeQtCore.._.._src_corelib_text_qstring.h
lea rcx, str.other___this
call fcn.140160ea0
mov rax, qword [rbp + 0x38]
mov edx, dword [rax]
lea ecx, [rdx + 1]
cmp ecx, 1
jbe 0x1401af9e4
lea ecx, [rdx + 1]
mov dword [rax], ecx
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x30]
call fcn.1401adca0
mov edx, 0x5c
lea rcx, [rbp + 0x30]
lea r9d, [rdx - 0x5b]
lea r8d, [rdx - 0x5d]
call fcn.1401885a0
cmp eax, 0xffffffff
jne 0x1401afa19
lea rax, [0x1401fd088]
mov qword [rbp + 0x38], rax
jmp 0x1401afa2a
lea r8d, [rax + 1]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x30]
call fcn.1401887f0
mov edi, dword [rsi + 0x54]
mov rcx, rsi
call fcn.1401b0510
xor r14d, r14d
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x20], r14
mov rbx, rax
or edi, 0x2001f
call fcn.140190810
mov rdx, rax
mov r9d, edi
lea rax, [rbp - 0x20]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp + 0x38]
mov ebx, r14d
test eax, eax
cmove rbx, qword [rbp - 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1401afa8d
cmp eax, 0xffffffff
je 0x1401afa9b
sub eax, 1
mov dword [rcx], eax
jne 0x1401afa9b
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
test rbx, rbx
je 0x1401afaf2
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1401ae370
mov rcx, rax
call fcn.140190810
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp - 0x18]
mov eax, dword [rcx]
test eax, eax
je 0x1401afadb
cmp eax, 0xffffffff
je 0x1401afae9
sub eax, 1
mov dword [rcx], eax
jne 0x1401afae9
mov rcx, qword [rbp - 0x18]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rsi + 0x54]
mov rcx, rsi
call fcn.1401b0510
lea rcx, [rbp + 0x30]
mov qword [rbp - 0x18], r14
mov rbx, rax
or edi, 0x2001f
call fcn.140190810
mov rdx, rax
mov r9d, edi
lea rax, [rbp - 0x18]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401afd4d
mov qword [rsp + 0x40], r15
mov r15, qword [rbp - 0x18]
test r15, r15
je 0x1401afd48
mov edx, dword [rsi + 0x54]
mov rcx, r15
call fcn.1401ad940
mov rax, qword [rbp + 0x30]
cmp dword [rax + 4], r14d
jne 0x1401afcbd
mov r8d, 1
lea rcx, [rbp + 0x38]
mov rdx, r15
call fcn.1401ac8b0
mov rdi, qword [rbp + 0x38]
movsxd rsi, dword [rdi + 0xc]
movsxd rbx, dword [rdi + 8]
add rsi, 2
add rbx, 2
lea rsi, [rdi + rsi*8]
lea rbx, [rdi + rbx*8]
cmp rbx, rsi
je 0x1401afc3f
mov rcx, rbx
call fcn.140190810
mov rdx, rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov r14d, eax
test eax, eax
je 0x1401afc32
mov rcx, qword [rbx]
lea rax, [rbp + 0x38]
mov qword [rbp + 0x38], rcx
cmp rbx, rax
jne 0x1401afbe0
mov r8d, 0x446
lea rdx, str.C:ciqt_main_1660099987651workqtqtbaseincludeQtCore.._.._src_corelib_text_qstring.h
lea rcx, str.other___this
call fcn.140160ea0
mov rcx, qword [rbp + 0x38]
mov edx, dword [rcx]
lea eax, [rdx + 1]
cmp eax, 1
jbe 0x1401afbef
lea eax, [rdx + 1]
mov dword [rcx], eax
lea rcx, [rbp + 0x38]
call fcn.140190810
mov r8, rax
lea rdx, str.QSettings:_RegDeleteValue_failed_on_subkey___ls_
mov ecx, r14d
call fcn.1401b4b50
mov rcx, qword [rbp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1401afc24
cmp eax, 0xffffffff
je 0x1401afc32
sub eax, 1
mov dword [rcx], eax
jne 0x1401afc32
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
add rbx, 8
cmp rbx, rsi
jne 0x1401afb98
mov eax, dword [rdi]
test eax, eax
je 0x1401afc59
cmp eax, 0xffffffff
je 0x1401afd3f
sub eax, 1
mov dword [rdi], eax
jne 0x1401afd3f
movsxd rsi, dword [rdi + 8]
movsxd rbx, dword [rdi + 0xc]
add rsi, 2
add rbx, 2
lea rsi, [rdi + rsi*8]
lea rbx, [rdi + rbx*8]
cmp rbx, rsi
je 0x1401afcb0
nop word [rax + rax]
mov rcx, qword [rbx - 8]
sub rbx, 8
mov eax, dword [rcx]
test eax, eax
je 0x1401afc9a
cmp eax, 0xffffffff
je 0x1401afcab
sub eax, 1
mov dword [rcx], eax
jne 0x1401afcab
mov rcx, qword [rbx]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
cmp rbx, rsi
jne 0x1401afc80
mov rcx, rdi
call fcn.1401683a0
jmp 0x1401afd3f
lea rcx, [rbp + 0x30]
call fcn.140190810
mov rcx, rsi
mov rbx, rax
call fcn.1401b0510
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x1401afd3f
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x38], rcx
mov r8d, dword [rcx]
lea edx, [r8 + 1]
cmp edx, 1
jbe 0x1401afcfd
lea edx, [r8 + 1]
mov dword [rcx], edx
lea rcx, [rbp + 0x38]
call fcn.140190810
mov r8, rax
lea rdx, str.QSettings:_RegDeleteKey_failed_on_key___ls_
mov ecx, ebx
call fcn.1401b4b50
mov rcx, qword [rbp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1401afd31
cmp eax, 0xffffffff
je 0x1401afd3f
sub eax, 1
mov dword [rcx], eax
jne 0x1401afd3f
mov rcx, qword [rbp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x40]
mov rcx, qword [rbp + 0x30]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1401afd71
cmp eax, 0xffffffff
je 0x1401afd7f
sub eax, 1
mov dword [rcx], eax
jne 0x1401afd7f
mov rcx, qword [rbp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140143660
add rsp, 0x50
pop rsi
pop rbx
pop rbp
ret