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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov r14, rdx
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0xf8], rbx
je 0x1401621d6
mov rsi, qword [rcx + 0xf0]
mov rcx, rsi
call fcn.140160770
test rax, rax
je 0x1401621d6
cmp byte [rsi + 0x28], bl
jne 0x1401621d6
mov rcx, rsi
call fcn.140160770
test rax, rax
je 0x1401621d6
mov rcx, qword [r14]
mov qword [rbp - 0x49], rcx
mov rax, qword [r14 + 8]
mov qword [rbp - 0x41], rax
mov rax, qword [r14 + 0x10]
mov qword [rbp - 0x39], rax
test rcx, rcx
je 0x140161e12
lock inc dword [rcx]
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x49]
mov qword [rbp + 0x7f], rax
test rcx, rcx
je 0x140161e26
mov eax, dword [rcx]
cmp eax, 1
jle 0x140161e39
mov r8d, 1
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x49]
call fcn.14008ff30
mov r8, qword [rbp - 0x41]
mov rcx, qword [rbp - 0x39]
movsxd rdx, ecx
mov r10d, 0x5c
test ecx, ecx
jle 0x140161e80
mov rax, rbx
movzx ecx, word [r8 + rax*2]
cmp cx, r10w
jne 0x140161e65
mov word [r8 + rax*2], 0x2f
jmp 0x140161e70
cmp cx, 0x2f
jne 0x140161e70
mov word [r8 + rax*2], r10w
inc rax
cmp rax, rdx
jl 0x140161e51
mov rcx, qword [rbp - 0x39]
mov r8, qword [rbp - 0x41]
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x49], rbx
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x29], r8
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x21], rcx
mov r14d, dword [rdi + 0x104]
mov r9d, 1
mov r15, 0xffffffffffffffff
mov r8, r15
movzx edx, r10w
lea rcx, [rbp - 0x31]
call fcn.14008e510
nop
cmp eax, r15d
jne 0x140161ed4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rbx
jmp 0x140161f0e
inc eax
movsxd r8, eax
cmp r8, qword [rbp - 0x21]
jb 0x140161f00
movups xmm1, xmmword [rbp - 0x31]
movups xmmword [rbp - 0x19], xmm1
movsd xmm0, qword [rbp - 0x21]
movsd qword [rbp - 9], xmm0
movq rax, xmm1
test rax, rax
je 0x140161f0e
lock inc dword [rax]
jmp 0x140161f0e
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.1400868e0
nop
cmp qword [rdi + 0xf8], 0
je 0x140161f3f
mov rsi, qword [rdi + 0xf0]
mov rcx, rsi
call fcn.140160770
test rax, rax
je 0x140161f3f
cmp byte [rsi + 0x28], 0
jne 0x140161f3f
mov rcx, rsi
call fcn.140160770
mov rsi, rax
jmp 0x140161f42
mov rsi, rbx
mov qword [rbp + 0x67], rbx
or r14d, 0x2001f
lea rcx, [rbp - 0x19]
call fcn.140094620
mov rdx, rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rsi, rbx
test eax, eax
cmove rsi, qword [rbp + 0x67]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140161f99
mov eax, r15d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140161f99
mov rcx, qword [rbp - 0x19]
call fcn.1402275a0
test rsi, rsi
je 0x140161fe8
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0x17]
call fcn.140160bd0
nop
mov rcx, rax
call fcn.140094620
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140161fdf
mov eax, r15d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140161fdf
mov rcx, qword [rbp + 0x17]
call fcn.1402275a0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14d, dword [rdi + 0x104]
cmp qword [rdi + 0xf8], 0
je 0x140162020
mov rsi, qword [rdi + 0xf0]
mov rcx, rsi
call fcn.140160770
test rax, rax
je 0x140162020
cmp byte [rsi + 0x28], 0
jne 0x140162020
mov rcx, rsi
call fcn.140160770
mov rsi, rax
jmp 0x140162023
mov rsi, rbx
mov qword [rbp + 0x77], rbx
or r14d, 0x2001f
lea rcx, [rbp - 0x31]
call fcn.140094620
mov rdx, rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401621b7
mov r14, qword [rbp + 0x77]
test r14, r14
je 0x1401621b7
mov edx, dword [rdi + 0x104]
mov rcx, r14
call fcn.140160080
cmp qword [rbp - 0x21], 0
jne 0x140162146
mov r8d, 1
mov rdx, r14
lea rcx, [rbp - 1]
call fcn.14015f1e0
nop
mov rax, qword [rbp + 0xf]
lea rcx, [rax + rax*2]
mov rbx, qword [rbp + 7]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
je 0x1401620e4
mov rcx, rbx
call fcn.140094620
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test eax, eax
je 0x1401620db
mov rcx, rbx
call fcn.140094620
mov r8, rax
lea rdx, str.QSettings:_RegDeleteValue_failed_on_subkey___ls_
mov ecx, esi
call fcn.14010dfc0
add rbx, 0x18
cmp rbx, rdi
jne 0x1401620a8
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1401621ad
mov eax, r15d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401621ad
mov rax, qword [rbp + 0xf]
lea rcx, [rax + rax*2]
mov rbx, qword [rbp + 7]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
je 0x14016213b
mov rcx, qword [rbx]
test rcx, rcx
je 0x140162132
mov eax, r15d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140162132
mov rcx, qword [rbx]
call fcn.1402275a0
add rbx, 0x18
cmp rbx, rdi
jne 0x140162116
mov rcx, qword [rbp - 1]
call fcn.1402275a0
jmp 0x1401621ad
lea rcx, [rbp - 0x31]
call fcn.140094620
mov rsi, rax
cmp qword [rdi + 0xf8], 0
je 0x140162181
mov rdi, qword [rdi + 0xf0]
mov rcx, rdi
call fcn.140160770
test rax, rax
je 0x140162181
cmp byte [rdi + 0x28], 0
jne 0x140162181
mov rcx, rdi
call fcn.140160770
mov rbx, rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x1401621ad
lea rcx, [rbp - 0x31]
call fcn.140094620
mov r8, rax
lea rdx, str.QSettings:_RegDeleteKey_failed_on_key___ls_
mov ecx, ebx
call fcn.14010dfc0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x1401621e3
lock xadd dword [rax], r15d
cmp r15d, 1
jne 0x1401621e3
mov rcx, qword [rbp - 0x31]
call fcn.1402275a0
jmp 0x1401621e3
mov edx, 1
mov rcx, rdi
call fcn.1400c9400
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret