Function at 0x140464750
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov ebx, edx
mov rdx, rcx
mov r8d, 2
lea rcx, [rsp + 0x30]
call fcn.140463b90
nop
xor esi, esi
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 0xc]
mov qword [rsp + 0x38], rdx
lea rbp, [rax + 8]
mov eax, dword [rdx]
sub eax, dword [rbp]
test eax, eax
jle 0x14046494e
xor edi, edi
or ebx, 0x2001f
mov dword [rsp + 0xa0], ebx
movsxd rcx, dword [rbp]
add rcx, rdi
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + rcx*8 + 0x10]
mov qword [rsp + 0xa8], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1404647d5
lock inc dword [rax]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0xa8]
call fcn.14036dfa0
mov rdx, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140464856
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140464856
mov edx, dword [rsp + 0x98]
mov rcx, rbx
call fcn.140464750
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0xa8]
call fcn.14036dfa0
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x1404648af
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rcx]
test eax, eax
je 0x14046487d
cmp eax, 0xffffffff
je 0x14046488c
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14046488c
mov rcx, qword [rsp + 0xa8]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140379300
inc esi
inc rdi
mov rdx, qword [rsp + 0x38]
mov eax, dword [rdx]
sub eax, dword [rbp]
cmp esi, eax
jge 0x14046494e
mov ebx, dword [rsp + 0xa0]
jmp 0x1404647b0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1404648c8
lock inc dword [rax]
lea rcx, [rsp + 0x40]
call fcn.14036dfa0
mov r8, rax
lea rdx, [0x1400afcf0]
mov ecx, ebx
call fcn.14035c910
nop
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x140464905
cmp eax, 0xffffffff
je 0x140464914
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140464914
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
nop
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rcx]
test eax, eax
je 0x14046493b
cmp eax, 0xffffffff
je 0x140464949
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140464949
mov rcx, qword [rsp + 0xa8]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x14046496a
cmp ecx, 0xffffffff
je 0x1404649cf
or ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1404649cf
movsxd rbx, dword [rdx]
mov rax, qword [rsp + 0x30]
add rbx, 2
lea rbx, [rax + rbx*8]
movsxd rdi, dword [rbp]
add rdi, 2
lea rdi, [rax + rdi*8]
cmp rdi, rbx
je 0x1404649c4
nop dword [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1404649ae
cmp eax, 0xffffffff
je 0x1404649bf
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1404649bf
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140379300
cmp rbx, rdi
jne 0x140464990
mov rcx, qword [rsp + 0x30]
call fcn.1404e1e20
nop
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret