Function at 0x1401b49b0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r12d, edx
mov r14, rcx
mov r8d, 2
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.1401b3e00
nop
xor r13d, r13d
mov esi, r13d
mov rax, qword [rbp - 0x10]
mov edx, dword [rax + 0xc]
sub edx, dword [rax + 8]
test edx, edx
jle 0x1401b4b87
mov edi, r13d
mov r15d, r12d
or r15d, 0x2001f
nop word [rax + rax]
movsxd rcx, dword [rax + 8]
add rcx, rdi
mov rax, qword [rax + rcx*8 + 0x10]
mov qword [rbp + 0x58], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1401b4a30
mov rax, qword [rbp + 0x58]
lock inc dword [rax]
mov qword [rbp + 0x50], r13
lea rcx, [rbp + 0x58]
call fcn.1400c02d0
mov rdx, rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401b4a94
mov rbx, qword [rbp + 0x50]
test rbx, rbx
je 0x1401b4a94
mov edx, r12d
mov rcx, rbx
call fcn.1401b49b0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x58]
call fcn.1400c02d0
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x1401b4ae5
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401b4ab5
cmp ecx, 0xffffffff
je 0x1401b4ac9
mov rax, qword [rbp + 0x58]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401b4ac9
mov r8d, 8
mov edx, 2
mov rcx, qword [rbp + 0x58]
call fcn.1400affb0
inc esi
inc rdi
mov rax, qword [rbp - 0x10]
mov ecx, dword [rax + 0xc]
sub ecx, dword [rax + 8]
cmp esi, ecx
jl 0x1401b4a10
jmp 0x1401b4b87
mov rax, qword [rbp + 0x58]
mov qword [rbp - 8], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1401b4afd
mov rax, qword [rbp + 0x58]
lock inc dword [rax]
lea rcx, [rbp - 8]
call fcn.1400c02d0
mov r8, rax
lea rdx, str.QSettings:_RegDeleteKey_failed_on_subkey___ls_
mov ecx, ebx
call fcn.1400ad750
nop
mov rax, qword [rbp - 8]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401b4b39
cmp ecx, 0xffffffff
je 0x1401b4b4e
mov rax, qword [rbp - 8]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401b4b4e
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.1400affb0
nop
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401b4b6f
cmp ecx, 0xffffffff
je 0x1401b4b83
mov rax, qword [rbp + 0x58]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401b4b83
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp + 0x58]
call fcn.1400affb0
mov rax, qword [rbp - 0x10]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401b4ba4
cmp ecx, 0xffffffff
je 0x1401b4c11
mov rax, qword [rbp - 0x10]
mov ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401b4c11
mov rsi, qword [rbp - 0x10]
movsxd rbx, dword [rsi + 0xc]
add rbx, 2
lea rbx, [rsi + rbx*8]
movsxd rdi, dword [rsi + 8]
add rdi, 2
lea rdi, [rsi + rdi*8]
cmp rdi, rbx
je 0x1401b4c08
nop word [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1401b4bf0
cmp eax, 0xffffffff
je 0x1401b4c03
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401b4c03
mov edx, 2
mov r8d, 8
mov rcx, qword [rbx]
call fcn.1400affb0
cmp rbx, rdi
jne 0x1401b4bd0
mov rcx, rsi
call fcn.1400c6df0
nop
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret