Function at 0x1401596ac
Capabilities:
Delete registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x58
cmp byte [rcx + 0x50], 0
lea rax, vtable.QWinSettingsPrivate.0
mov qword [rcx], rax
mov rdi, rcx
je 0x1401598c0
call fcn.14015d4c0
test rax, rax
je 0x1401598c0
lea rax, [0x1401a5d88]
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x38], rax
call fcn.14014385c
mov rcx, rdi
mov rbx, rax
call fcn.14015d4c0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r13d, 2
lea r12d, [r13 + 6]
test eax, eax
je 0x14015989b
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.140145228
mov rcx, rax
lea rdx, [rbp + 0x50]
call fcn.140005fec
mov rbx, qword [rax]
cmp dword [rbx + 4], 0
je 0x140159763
cmp qword [rbx + 0x10], 0
jl 0x140159763
cmp qword [rbx + 0x10], 0x18
jae 0x140159763
lea r8d, [r13 + 0x3a]
lea rdx, str.c:qt64qt_1544645195969workqtbaseincludeqtcore.._.._src_corelib_tools_qarraydata.h
lea rcx, str.size__0__offset___0__size_t_offset____sizeof_QArrayData_
call fcn.140122564
mov rsi, qword [rbx + 0x10]
lea rcx, [rdi + 0x48]
xor edx, edx
add rsi, rbx
call fcn.1401304d4
mov rcx, rax
lea rdx, [rbp + 0x48]
call fcn.140010d70
mov rcx, rax
lea rdx, [rbp + 0x40]
call fcn.140005fec
mov rbx, qword [rax]
cmp dword [rbx + 4], 0
je 0x1401597bd
cmp qword [rbx + 0x10], 0
jl 0x1401597bd
cmp qword [rbx + 0x10], 0x18
jae 0x1401597bd
mov r8d, 0x3c
lea rdx, str.c:qt64qt_1544645195969workqtbaseincludeqtcore.._.._src_corelib_tools_qarraydata.h
lea rcx, str.size__0__offset___0__size_t_offset____sizeof_QArrayData_
call fcn.140122564
mov r8, qword [rbx + 0x10]
lea rax, str.C:qt64qt_1544645195969workqtbase_srccorelibioqsettings_win.cpp
mov qword [rbp - 0x28], rax
lea rdx, str.QSettings:_Failed_to_delete_key___s_:__s
lea rax, str.__cdecl_QWinSettingsPrivate::QWinSettingsPrivate_void_
mov dword [rbp - 0x30], r13d
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x30]
lea rax, str.default
mov dword [rbp - 0x2c], 0x258
add r8, rbx
mov qword [rbp - 0x18], rax
mov r9, rsi
call fcn.140162d0c
mov rcx, qword [rbp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14015981d
cmp eax, 0xffffffff
je 0x14015982a
sub eax, 1
mov dword [rcx], eax
jne 0x14015982a
mov rcx, qword [rbp + 0x40]
mov r8, r12
mov edx, 1
call fcn.14010b388
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x140159844
cmp eax, 0xffffffff
je 0x14015984f
sub eax, 1
mov dword [rcx], eax
jne 0x14015984f
mov rcx, qword [rbp + 0x48]
mov r8, r12
mov rdx, r13
call fcn.14010b388
mov rcx, qword [rbp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x140159869
cmp eax, 0xffffffff
je 0x140159876
sub eax, 1
mov dword [rcx], eax
jne 0x140159876
mov rcx, qword [rbp + 0x50]
mov r8, r12
mov edx, 1
call fcn.14010b388
mov rcx, qword [rbp - 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140159890
cmp eax, 0xffffffff
je 0x14015989b
sub eax, 1
mov dword [rcx], eax
jne 0x14015989b
mov rcx, qword [rbp - 0x38]
mov r8, r12
mov rdx, r13
call fcn.14010b388
mov rcx, qword [rbp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1401598b5
cmp eax, 0xffffffff
je 0x1401598c0
sub eax, 1
mov dword [rcx], eax
jne 0x1401598c0
mov rcx, qword [rbp + 0x38]
mov r8, r12
mov rdx, r13
call fcn.14010b388
lea rbx, [rdi + 0x48]
xor esi, esi
mov rcx, qword [rbx]
cmp dword [rcx + 4], esi
jle 0x1401598ea
mov edx, esi
mov rcx, rbx
call fcn.14015991c
mov rcx, rax
call fcn.14015a680
mov rcx, qword [rbx]
inc esi
cmp esi, dword [rcx + 4]
jl 0x1401598ce
mov eax, dword [rcx]
test eax, eax
je 0x1401598fc
cmp eax, 0xffffffff
je 0x140159907
sub eax, 1
mov dword [rcx], eax
jne 0x140159907
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.14015b250
mov rcx, rdi
add rsp, 0x58
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
jmp fcn.140149cd0