Function at 0x18017f980
Capabilities:
Delete registry key

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r14, rcx
lea rax, vtable.QWinSettingsPrivate.0
mov qword [rcx], rax
xor r15d, r15d
cmp byte [rcx + 0x98], r15b
je 0x18017fb0f
mov rdx, qword [rcx + 0x90]
cmp dword [rdx + 4], r15d
je 0x18017fb0f
mov rbx, qword [rdx + 0x10]
add rbx, rdx
mov rcx, rbx
call fcn.1801814a0
nop
test rax, rax
je 0x18017fb0f
cmp byte [rbx + 0x18], r15b
jne 0x18017fb0f
mov rcx, rbx
call fcn.1801814a0
nop
test rax, rax
je 0x18017fb0f
lea rax, sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
call sym.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64
nop
mov rdi, rax
mov rcx, qword [r14 + 0x90]
cmp dword [rcx + 4], r15d
je 0x18017fa4a
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rcx, rbx
call fcn.1801814a0
nop
test rax, rax
je 0x18017fa4a
cmp byte [rbx + 0x18], r15b
jne 0x18017fa4a
mov rcx, rbx
call fcn.1801814a0
nop
jmp 0x18017fa4d
mov rax, r15
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov edi, eax
mov ebx, 0xffffffff
test eax, eax
je 0x18017fade
mov rdx, qword [r14 + 0x90]
mov rcx, qword [rdx + 0x10]
mov r8, qword [rcx + rdx + 0x10]
mov qword [rsp + 0x60], r8
mov ecx, dword [r8]
inc ecx
cmp ecx, 1
jbe 0x18017fa8e
mov eax, 1
lock xadd dword [r8], eax
lea rcx, [rsp + 0x60]
call sym.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64
nop
mov r8, rax
lea rdx, str.QSettings:_Failed_to_delete_key___ls_
mov ecx, edi
call sym.Qt5Core.dll_void___cdecl_qErrnoWarning_int__char_const____ptr64_
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax]
test ecx, ecx
je 0x18017faca
cmp ecx, ebx
je 0x18017fade
mov ecx, ebx
mov rax, qword [rsp + 0x60]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x18017fade
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x60]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
nop
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax]
test ecx, ecx
je 0x18017fafb
cmp ecx, ebx
je 0x18017fb0f
mov rax, qword [rsp + 0x68]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x18017fb0f
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x68]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
nop
mov esi, r15d
lea rbx, [r14 + 0x90]
mov rax, qword [rbx]
cmp dword [rax + 4], r15d
jle 0x18017fb8d
mov rbp, r15
mov eax, dword [rax]
cmp eax, 1
jbe 0x18017fb5f
mov rax, qword [rbx]
mov edx, dword [rax + 8]
and edx, 0x7fffffff
jne 0x18017fb53
lea r9d, [rdx + 2]
xor r8d, r8d
lea edx, [r9 + 6]
lea ecx, [rdx + 0x18]
call sym.Qt5Core.dll_public:_static_struct_QArrayData____ptr64___cdecl_QArrayData::allocate_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_QFlags_enum_QArrayData::AllocationOption__
nop
mov qword [rbx], rax
jmp 0x18017fb5f
mov r8d, r15d
mov rcx, rbx
call fcn.180182440
nop
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
add rdi, rax
mov rcx, qword [rdi + rbp + 8]
test rcx, rcx
je 0x18017fb7a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov qword [rdi + rbp + 8], r15
inc esi
add rbp, 0x20
mov rax, qword [rbx]
cmp esi, dword [rax + 4]
jl 0x18017fb25
mov rcx, rbx
call fcn.18017f910
nop
mov rcx, r14
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.180172940