Function at 0x140104430
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.1401037c0
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 0x14010462e
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 0x1401044b5
lock inc dword [rax]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0xa8]
call fcn.140022180
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 0x140104536
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140104536
mov edx, dword [rsp + 0x98]
mov rcx, rbx
call fcn.140104430
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0xa8]
call fcn.140022180
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x14010458f
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rcx]
test eax, eax
je 0x14010455d
cmp eax, 0xffffffff
je 0x14010456c
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14010456c
mov rcx, qword [rsp + 0xa8]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cfa0
inc esi
inc rdi
mov rdx, qword [rsp + 0x38]
mov eax, dword [rdx]
sub eax, dword [rbp]
cmp esi, eax
jge 0x14010462e
mov ebx, dword [rsp + 0xa0]
jmp 0x140104490
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1401045a8
lock inc dword [rax]
lea rcx, [rsp + 0x40]
call fcn.140022180
mov r8, rax
lea rdx, [0x1402e4070]
mov ecx, ebx
call fcn.140010d50
nop
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1401045e5
cmp eax, 0xffffffff
je 0x1401045f4
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401045f4
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rcx]
test eax, eax
je 0x14010461b
cmp eax, 0xffffffff
je 0x140104629
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140104629
mov rcx, qword [rsp + 0xa8]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x14010464a
cmp ecx, 0xffffffff
je 0x1401046af
or ecx, 0xffffffff
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401046af
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 0x1401046a4
nop dword [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x14010468e
cmp eax, 0xffffffff
je 0x14010469f
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14010469f
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.14002cfa0
cmp rbx, rdi
jne 0x140104670
mov rcx, qword [rsp + 0x30]
call fcn.14002d690
nop
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret