Function at 0x1400f8770
Capabilities:
Delete registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r15, rcx
lea rax, vtable.QWinSettingsPrivate.0
mov qword [rcx], rax
xor r12d, r12d
or r14d, 0xffffffff
cmp byte [rcx + 0xb0], r12b
je 0x1400f89bb
mov rcx, qword [rcx + 0xa8]
cmp dword [rcx + 4], r12d
je 0x1400f89bb
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rcx, rbx
call fcn.1400fa6e0
nop
test rax, rax
je 0x1400f89bb
cmp byte [rbx + 0x18], r12b
jne 0x1400f89bb
mov rcx, rbx
call fcn.1400fa6e0
nop
test rax, rax
je 0x1400f89bb
lea rax, [0x140172000]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa8]
call fcn.140021850
nop
mov rbx, rax
mov rcx, r15
call fcn.1400fc760
nop
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
test eax, eax
je 0x1400f8985
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.14004b9a0
nop
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400127c0
nop
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rcx, qword [r15 + 0xa8]
add rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0xb8]
call fcn.1400fa930
nop
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.1400127c0
nop
mov rcx, qword [rax]
mov r8, qword [rcx + 0x10]
add r8, rcx
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea rax, str.default
mov qword [rsp + 0x50], rax
mov r9, rbx
lea rdx, str.QSettings:_Failed_to_delete_key___s_:__s
lea rcx, [rsp + 0x38]
call fcn.1400128c0
nop
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx]
test eax, eax
je 0x1400f88e0
cmp eax, r14d
je 0x1400f88ef
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400f88ef
mov rcx, qword [rsp + 0xb0]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002cd80
nop
mov rcx, qword [rsp + 0xb8]
mov eax, dword [rcx]
test eax, eax
je 0x1400f8916
cmp eax, 0xffffffff
je 0x1400f8925
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400f8925
mov rcx, qword [rsp + 0xb8]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400f8946
cmp eax, 0xffffffff
je 0x1400f8955
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400f8955
mov rcx, qword [rsp + 0x20]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002cd80
nop
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400f8976
cmp eax, 0xffffffff
je 0x1400f8985
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400f8985
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
nop
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rcx]
test eax, eax
je 0x1400f89ac
cmp eax, 0xffffffff
je 0x1400f89bb
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400f89bb
mov rcx, qword [rsp + 0xa8]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
nop
mov esi, r12d
lea rdi, [r15 + 0xa8]
mov rax, qword [rdi]
cmp dword [rax + 4], r12d
jle 0x1400f8a45
mov rbp, r12
mov rax, qword [rdi]
cmp dword [rax], 1
jbe 0x1400f8a16
mov r8d, dword [rax + 8]
and r8d, 0x7fffffff
jne 0x1400f89ff
lea r9d, [r8 + 2]
xor r8d, r8d
lea edx, [r9 + 6]
lea ecx, [rdx + 0x18]
call fcn.14002cc60
nop
mov qword [rdi], rax
jmp 0x1400f8a16
mov dword [rsp + 0xa0], r12d
mov r9d, r12d
mov edx, dword [rax + 4]
mov rcx, rdi
call fcn.1400fb540
nop
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
add rbx, rbp
add rbx, rax
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400f8a33
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov qword [rbx + 8], r12
inc esi
add rbp, 0x20
mov rax, qword [rdi]
cmp esi, dword [rax + 4]
jl 0x1400f89d1
mov rax, qword [rdi]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400f8a5e
cmp ecx, 0xffffffff
je 0x1400f8a6a
lock xadd dword [rax], r14d
cmp r14d, 1
jne 0x1400f8a6a
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.1400fa570
nop
mov rcx, r15
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.1400cb2d0