Function at 0x1401176a0
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov rbx, rcx
mov r8d, 2
mov rdx, rcx
lea rcx, [rbp - 0x29]
call fcn.140116770
nop
xor esi, esi
mov rax, qword [rbp - 0x29]
lea r8, [rax + 0xc]
mov qword [rbp - 0x19], r8
lea rdx, [rax + 8]
mov qword [rbp - 0x21], rdx
mov eax, dword [r8]
sub eax, dword [rdx]
test eax, eax
jle 0x140117971
xor edi, edi
mov eax, dword [rbp + 0x6f]
or eax, 0x2001f
mov dword [rbp + 0x77], eax
nop word [rax + rax]
movsxd rcx, dword [rdx]
add rcx, rdi
mov rax, qword [rbp - 0x29]
mov rax, qword [rax + rcx*8 + 0x10]
mov qword [rbp + 0x7f], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x14011772f
lock inc dword [rax]
mov qword [rbp - 0x11], 0
lea rcx, [rbp + 0x7f]
call fcn.140036ca0
mov rdx, rax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x77]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401177a0
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x14011779c
mov edx, dword [rbp + 0x6f]
mov rcx, rbx
call fcn.1401176a0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x7f]
call fcn.140036ca0
mov rdx, rax
mov rbx, qword [rbp + 0x67]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1401177ed
jmp 0x1401177a0
mov rbx, qword [rbp + 0x67]
mov rcx, qword [rbp + 0x7f]
mov eax, dword [rcx]
test eax, eax
je 0x1401177bf
cmp eax, 0xffffffff
je 0x1401177ce
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401177ce
mov rcx, qword [rbp + 0x7f]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140039ba0
inc esi
inc rdi
mov r8, qword [rbp - 0x19]
mov eax, dword [r8]
mov rdx, qword [rbp - 0x21]
sub eax, dword [rdx]
cmp esi, eax
jge 0x140117971
jmp 0x140117710
mov edx, eax
lea rcx, [rbp + 7]
call fcn.140117ba0
nop
lea rdx, [rbp - 1]
mov rcx, rax
call fcn.140022d80
mov rbx, rax
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x7f]
call fcn.140028c70
mov rdi, rax
mov rcx, qword [rbx]
mov esi, 1
cmp dword [rcx], esi
ja 0x14011782b
cmp qword [rcx + 0x10], 0x18
je 0x140117846
xor r8d, r8d
cmp dword [rcx + 8], 0x80000000
cmovae r8d, esi
mov edx, dword [rcx + 4]
inc edx
mov rcx, rbx
call fcn.1400243f0
mov rcx, qword [rbx]
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rax, qword [rdi]
cmp dword [rax], esi
ja 0x14011785e
cmp qword [rax + 0x10], 0x18
je 0x140117879
xor r8d, r8d
cmp dword [rax + 8], 0x80000000
cmovae r8d, esi
mov edx, dword [rax + 4]
inc edx
mov rcx, rdi
call fcn.1400243f0
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x10]
add r8, rcx
mov qword [rbp + 0xf], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
lea rax, [0x1402b84e0]
mov qword [rbp + 0x27], rax
mov r9, rbx
lea rdx, [0x140291490]
lea rcx, [rbp + 0xf]
call fcn.140028d60
nop
mov rcx, qword [rbp - 9]
mov eax, dword [rcx]
test eax, eax
je 0x1401178d1
cmp eax, 0xffffffff
je 0x1401178e0
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401178e0
mov rcx, qword [rbp - 9]
mov r8d, 8
mov rdx, rsi
call fcn.140039ba0
nop
mov rcx, qword [rbp - 1]
mov eax, dword [rcx]
test eax, eax
je 0x1401178ff
cmp eax, 0xffffffff
je 0x14011790e
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011790e
mov rcx, qword [rbp - 1]
mov r8d, 8
mov rdx, rsi
call fcn.140039ba0
nop
mov rcx, qword [rbp + 7]
mov eax, dword [rcx]
test eax, eax
je 0x14011792d
cmp eax, 0xffffffff
je 0x14011793c
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011793c
mov rcx, qword [rbp + 7]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
nop
mov rcx, qword [rbp + 0x7f]
mov eax, dword [rcx]
test eax, eax
je 0x14011795b
cmp eax, 0xffffffff
je 0x140117969
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140117969
mov rcx, qword [rbp + 0x7f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x19]
mov rax, qword [rbp - 0x29]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011798c
cmp ecx, 0xffffffff
je 0x1401179ee
or ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401179ee
movsxd rbx, dword [r8]
mov rax, qword [rbp - 0x29]
add rbx, 2
lea rbx, [rax + rbx*8]
movsxd rdi, dword [rdx]
add rdi, 2
lea rdi, [rax + rdi*8]
cmp rdi, rbx
je 0x1401179e4
nop dword [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1401179ce
cmp eax, 0xffffffff
je 0x1401179df
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401179df
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140039ba0
cmp rbx, rdi
jne 0x1401179b0
mov rcx, qword [rbp - 0x29]
call fcn.14011dbc0
nop
add rsp, 0x98
pop rdi
pop rsi
pop rbx
pop rbp
ret