Function at 0x141958020
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.141957130
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 0x141958295
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 0x1419580af
lock inc dword [rax]
mov qword [rbp - 0x11], 0
lea rcx, [rbp + 0x7f]
call fcn.14188e360
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 0x141958120
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x14195811c
mov edx, dword [rbp + 0x6f]
mov rcx, rbx
call fcn.141958020
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x7f]
call fcn.14188e360
mov rdx, rax
mov rbx, qword [rbp + 0x67]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14195816d
jmp 0x141958120
mov rbx, qword [rbp + 0x67]
mov rcx, qword [rbp + 0x7f]
mov eax, dword [rcx]
test eax, eax
je 0x14195813f
cmp eax, 0xffffffff
je 0x14195814e
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14195814e
mov rcx, qword [rbp + 0x7f]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1418993e0
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 0x141958295
jmp 0x141958090
mov edx, eax
lea rcx, [rbp + 7]
call fcn.1418ac490
nop
lea rdx, [rbp - 1]
mov rcx, rax
call fcn.141881680
mov rbx, rax
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x7f]
call fcn.141881680
nop
mov rdx, qword [rbx]
mov r9, qword [rdx + 0x10]
add r9, rdx
mov rcx, qword [rax]
mov r8, qword [rcx + 0x10]
add r8, rcx
mov qword [rbp + 0xf], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
lea rax, [0x140179e20]
mov qword [rbp + 0x27], rax
lea rdx, [0x140125ed8]
lea rcx, [rbp + 0xf]
call fcn.14187f920
nop
mov rcx, qword [rbp - 9]
mov eax, dword [rcx]
test eax, eax
je 0x1419581f5
cmp eax, 0xffffffff
je 0x141958204
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141958204
mov rcx, qword [rbp - 9]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1418993e0
nop
mov rcx, qword [rbp - 1]
mov eax, dword [rcx]
test eax, eax
je 0x141958223
cmp eax, 0xffffffff
je 0x141958232
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141958232
mov rcx, qword [rbp - 1]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1418993e0
nop
mov rcx, qword [rbp + 7]
mov eax, dword [rcx]
test eax, eax
je 0x141958251
cmp eax, 0xffffffff
je 0x141958260
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141958260
mov rcx, qword [rbp + 7]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
nop
mov rcx, qword [rbp + 0x7f]
mov eax, dword [rcx]
test eax, eax
je 0x14195827f
cmp eax, 0xffffffff
je 0x14195828d
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14195828d
mov rcx, qword [rbp + 0x7f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
mov rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x19]
mov rax, qword [rbp - 0x29]
mov ecx, dword [rax]
test ecx, ecx
je 0x1419582b0
cmp ecx, 0xffffffff
je 0x14195830e
or ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14195830e
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 0x141958304
nop
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1419582ee
cmp eax, 0xffffffff
je 0x1419582ff
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1419582ff
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.1418993e0
cmp rbx, rdi
jne 0x1419582d0
mov rcx, qword [rbp - 0x29]
call fcn.14196a720
nop
add rsp, 0x98
pop rdi
pop rsi
pop rbx
pop rbp
ret