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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov rdi, rdx
mov r14, rcx
mov rcx, qword [rcx + 0xa8]
cmp dword [rcx + 4], 0
je 0x14011982b
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rcx, rbx
call fcn.140117e80
test rax, rax
je 0x14011982b
cmp byte [rbx + 0x18], 0
jne 0x14011982b
mov rcx, rbx
call fcn.140117e80
test rax, rax
je 0x14011982b
mov rcx, qword [rdi]
mov qword [rbp - 0x49], rcx
mov eax, dword [rcx]
inc eax
cmp eax, 1
jbe 0x14011926b
mov eax, 1
lock xadd dword [rcx], eax
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 0x77]
call fcn.140117b30
nop
mov r15d, dword [r14 + 0xb4]
mov eax, 0x5c
mov word [rbp + 0x67], ax
mov edi, 0xffffffff
lea r9d, [rax - 0x5b]
mov r8d, edi
movzx edx, ax
lea rcx, [rbp + 0x77]
call fcn.140040d00
lea r12, [0x1401a1e20]
cmp eax, edi
jne 0x1401192b2
mov qword [rbp + 0x7f], r12
jmp 0x1401192c4
lea r8d, [rax + 1]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp + 0x77]
call fcn.140041340
nop
mov rcx, qword [r14 + 0xa8]
xor esi, esi
cmp dword [rcx + 4], esi
je 0x1401192f9
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rcx, rbx
call fcn.140117e80
test rax, rax
je 0x1401192f9
cmp byte [rbx + 0x18], sil
jne 0x1401192f9
mov rcx, rbx
call fcn.140117e80
mov rbx, rax
jmp 0x1401192fc
mov rbx, rsi
mov qword [rbp - 0x41], rsi
or r15d, 0x2001f
lea rcx, [rbp + 0x7f]
call fcn.140046630
mov rdx, rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rbx, rsi
test eax, eax
cmove rbx, qword [rbp - 0x41]
mov rax, qword [rbp + 0x7f]
mov ecx, dword [rax]
test ecx, ecx
je 0x140119353
cmp ecx, 0xffffffff
je 0x140119365
mov ecx, edi
mov rax, qword [rbp + 0x7f]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140119365
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp + 0x7f]
call fcn.140049bf0
test rbx, rbx
je 0x1401193c6
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 0x61]
call fcn.140117fe0
nop
mov rcx, rax
call fcn.140046630
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rax, qword [rbp - 0x61]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401193ab
cmp ecx, 0xffffffff
je 0x1401193bd
mov edx, edi
mov rax, qword [rbp - 0x61]
lock xadd dword [rax], edx
cmp edx, 1
jne 0x1401193bd
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x61]
call fcn.140049bf0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15d, dword [r14 + 0xb4]
mov rcx, qword [r14 + 0xa8]
cmp dword [rcx + 4], 0
je 0x140119401
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rcx, rbx
call fcn.140117e80
test rax, rax
je 0x140119401
cmp byte [rbx + 0x18], 0
jne 0x140119401
mov rcx, rbx
call fcn.140117e80
mov rbx, rax
jmp 0x140119404
mov rbx, rsi
mov qword [rbp - 0x39], rsi
or r15d, 0x2001f
lea rcx, [rbp + 0x77]
call fcn.140046630
mov rdx, rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401197fb
mov r15, qword [rbp - 0x39]
test r15, r15
je 0x1401197fb
mov edx, dword [r14 + 0xb4]
mov rcx, r15
call fcn.1401177c0
mov rax, qword [rbp + 0x77]
cmp dword [rax + 4], 0
jne 0x1401196a3
mov r8d, 1
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140116a60
nop
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 8]
mov qword [rbp - 0x31], rdx
movsxd rbx, dword [rdx]
add rbx, 2
lea rbx, [rax + rbx*8]
lea r8, [rax + 0xc]
mov qword [rbp - 0x29], r8
movsxd r12, dword [r8]
add r12, 2
lea r12, [rax + r12*8]
cmp rbx, r12
je 0x14011961d
lea r13, [0x1402d77f0]
mov rcx, rbx
call fcn.140046630
mov rdx, rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140119603
mov qword [rbp - 0x21], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r13
mov edx, eax
lea rcx, [rbp - 0x59]
call fcn.14009f5f0
nop
mov rcx, qword [rax]
mov r8d, dword [rcx + 4]
lea rax, [0x1401a1e20]
cmp rcx, rax
jne 0x140119508
mov rdx, rsi
jmp 0x14011950f
mov rdx, qword [rcx + 0x10]
add rdx, rcx
lea rcx, [rbp - 0x79]
call fcn.140045600
nop
mov rax, qword [rbp - 0x79]
mov r14, qword [rax + 0x10]
add r14, rax
mov rcx, qword [rbx]
mov r8d, dword [rcx + 4]
lea rax, [0x1401a1e20]
cmp rcx, rax
jne 0x14011953c
mov rdx, rsi
jmp 0x140119543
mov rdx, qword [rcx + 0x10]
add rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140045600
nop
mov rax, qword [rsp + 0x38]
mov r8, qword [rax + 0x10]
add r8, rax
mov r9, r14
lea rdx, [0x1402ac018]
lea rcx, [rbp - 0x21]
call fcn.140035f50
nop
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011958e
cmp ecx, 0xffffffff
je 0x1401195a2
mov ecx, edi
mov rax, qword [rsp + 0x38]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401195a2
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rsp + 0x38]
call fcn.140049bf0
nop
mov rax, qword [rbp - 0x79]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401195c0
cmp ecx, 0xffffffff
je 0x1401195d3
mov ecx, edi
mov rax, qword [rbp - 0x79]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401195d3
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rbp - 0x79]
call fcn.140049bf0
nop
mov rax, qword [rbp - 0x59]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401195f1
cmp ecx, 0xffffffff
je 0x140119603
mov ecx, edi
mov rax, qword [rbp - 0x59]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140119603
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x59]
call fcn.140049bf0
add rbx, 8
cmp rbx, r12
jne 0x1401194b4
mov rax, qword [rsp + 0x30]
mov rdx, qword [rbp - 0x31]
mov r8, qword [rbp - 0x29]
mov ecx, dword [rax]
test ecx, ecx
je 0x140119638
cmp ecx, 0xffffffff
je 0x14011969e
mov ecx, edi
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14011969e
movsxd rbx, dword [r8]
mov rcx, qword [rsp + 0x30]
add rbx, 2
lea rbx, [rcx + rbx*8]
movsxd rsi, dword [rdx]
add rsi, 2
lea rsi, [rcx + rsi*8]
cmp rsi, rbx
je 0x140119698
nop dword [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x14011967d
cmp eax, 0xffffffff
je 0x14011968e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011968e
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140049bf0
cmp rbx, rsi
jne 0x140119660
mov rcx, qword [rsp + 0x30]
call fcn.14003a040
nop
jmp 0x1401197f1
lea rcx, [rbp + 0x77]
call fcn.140046630
mov rbx, rax
mov rcx, r14
call fcn.14011a1f0
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1401197f1
mov qword [rbp - 1], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
lea r13, [0x1402d77f0]
mov qword [rbp + 0x17], r13
mov edx, eax
lea rcx, [rbp - 0x51]
call fcn.14009f5f0
nop
mov rcx, qword [rax]
mov r8d, dword [rcx + 4]
cmp rcx, r12
jne 0x140119703
mov rdx, rsi
jmp 0x14011970a
mov rdx, qword [rcx + 0x10]
add rdx, rcx
lea rcx, [rbp - 0x69]
call fcn.140045600
nop
mov rax, qword [rbp - 0x69]
mov rbx, qword [rax + 0x10]
add rbx, rax
mov rax, qword [rbp + 0x77]
mov r8d, dword [rax + 4]
cmp rax, r12
je 0x140119733
mov rsi, qword [rax + 0x10]
add rsi, rax
mov rdx, rsi
lea rcx, [rbp - 0x71]
call fcn.140045600
nop
mov rax, qword [rbp - 0x71]
mov r8, qword [rax + 0x10]
add r8, rax
mov r9, rbx
lea rdx, [0x1402ac050]
lea rcx, [rbp - 1]
call fcn.140035f50
nop
mov rax, qword [rbp - 0x71]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011977d
cmp ecx, 0xffffffff
je 0x140119790
mov ecx, edi
mov rax, qword [rbp - 0x71]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140119790
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rbp - 0x71]
call fcn.140049bf0
nop
mov rax, qword [rbp - 0x69]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401197ae
cmp ecx, 0xffffffff
je 0x1401197c1
mov ecx, edi
mov rax, qword [rbp - 0x69]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401197c1
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rbp - 0x69]
call fcn.140049bf0
nop
mov rax, qword [rbp - 0x51]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401197df
cmp ecx, 0xffffffff
je 0x1401197f1
mov edx, edi
mov rax, qword [rbp - 0x51]
lock xadd dword [rax], edx
cmp edx, 1
jne 0x1401197f1
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x51]
call fcn.140049bf0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rbp + 0x77]
mov ecx, dword [rax]
test ecx, ecx
je 0x140119817
cmp ecx, 0xffffffff
je 0x140119838
mov rax, qword [rbp + 0x77]
lock xadd dword [rax], edi
cmp edi, 1
jne 0x140119838
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp + 0x77]
call fcn.140049bf0
jmp 0x140119838
mov edx, 1
mov rcx, r14
call fcn.140103f10
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret