Function at 0x10005da84
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0xa0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov r13, r8
mov rbp, rdx
mov r12d, ecx
xor edi, edi
mov dword [r8], edi
cmp ecx, 5
jne 0x10005dba3
lea rcx, [rsp + 0x68]
call fcn.100019218
nop
mov rdx, qword [rbp]
lea rcx, [rsp + 0x68]
call fcn.10001f488
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x38]
call fcn.10005f534
lea rdx, [rsp + 0x68]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.100066c0c
cmp eax, edi
jne 0x10005db44
mov r8, qword [rbp]
lea rdx, [0x1000138b0]
lea ecx, [rdi + 3]
call fcn.10003c3c0
nop
cmp rbx, rdi
je 0x10005db27
lock add dword [rbx + 8], 0xffffffff
jne 0x10005db22
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea edx, [rdi + 1]
call qword [rax]
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x68]
call fcn.10001f53c
nop
mov rcx, rbp
call fcn.10001fba0
mov eax, 0x643
jmp 0x10005dd88
mov dword [rsp + 0xd0], edi
lea r9, [rsp + 0xd0]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.100065dfc
cmp dword [rsp + 0xd0], edi
je 0x10005db74
mov dword [r13], 1
cmp rbx, rdi
je 0x10005db94
lock add dword [rbx + 8], 0xffffffff
jne 0x10005db8f
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x68]
call fcn.10001f53c
jmp 0x10005dc5d
cmp ecx, 9
jne 0x10005dd1f
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.10005f534
mov rdx, rbp
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.10006718c
cmp eax, edi
jne 0x10005dc0f
mov r8, qword [rbp]
lea rdx, [0x100013990]
mov ecx, 3
call fcn.10003c3c0
nop
cmp rbx, rdi
je 0x10005dc05
lock add dword [rbx + 8], 0xffffffff
jne 0x10005dc00
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x30], rdi
mov edi, 0x643
jmp 0x10005dd7e
mov dword [rsp + 0xe0], edi
lea r9, [rsp + 0xe0]
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.1000664bc
cmp dword [rsp + 0xe0], edi
je 0x10005dc3d
mov dword [r13], 1
cmp rbx, rdi
je 0x10005dc5d
lock add dword [rbx + 8], 0xffffffff
jne 0x10005dc58
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
call fcn.10001fee0
nop
mov qword [rsp + 0x48], rdi
lea rdx, [0x100012840]
lea rcx, [rsp + 0x50]
call fcn.10001ff98
nop
lea r8, [rsp + 0x40]
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.1000327cc
nop
lea rcx, [rsp + 0x50]
call fcn.10001fba0
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x10005dcd5
lea rcx, [rsp + 0x40]
call fcn.10001fba0
nop
jmp 0x10005dd7e
lea rdx, [0x100013a58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
je 0x10005dd09
cmp eax, 2
je 0x10005dd09
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
call fcn.10001fba0
nop
jmp 0x10005dd7e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
call fcn.10001fba0
mov dword [rsp + 0xe8], edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0xe0], rax
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.10001ff10
nop
lea r8, [rsp + 0xe8]
mov edx, r12d
mov rcx, rax
call fcn.100057b40
cmp eax, edi
jne 0x10005dd6d
cmp r12d, 5
je 0x10005dd6b
cmp r12d, 9
je 0x10005dd6b
mov edi, 0x643
jmp 0x10005dd7e
jmp 0x10005dd7e
cmp dword [rsp + 0xe8], edi
je 0x10005dd7e
mov dword [r13], 1
mov rcx, rbp
call fcn.10001fba0
mov eax, edi
add rsp, 0xa0
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret