Function at 0x10004a1dc
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 0x10004a2fb
lea rcx, [rsp + 0x68]
call fcn.1000193b8
nop
mov rdx, qword [rbp]
lea rcx, [rsp + 0x68]
call fcn.10001f8e0
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x38]
call fcn.10004bec4
lea rdx, [rsp + 0x68]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1000674e4
cmp eax, edi
jne 0x10004a29c
mov r8, qword [rbp]
lea rdx, [0x100011490]
lea ecx, [rdi + 3]
call fcn.100054fd8
nop
cmp rbx, rdi
je 0x10004a27f
lock add dword [rbx + 8], 0xffffffff
jne 0x10004a27a
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.10001f994
nop
mov rcx, rbp
call fcn.10002006c
mov eax, 0x643
jmp 0x10004a4e0
mov dword [rsp + 0xd0], edi
lea r9, [rsp + 0xd0]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.1000666d4
cmp dword [rsp + 0xd0], edi
je 0x10004a2cc
mov dword [r13], 1
cmp rbx, rdi
je 0x10004a2ec
lock add dword [rbx + 8], 0xffffffff
jne 0x10004a2e7
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.10001f994
jmp 0x10004a3b5
cmp ecx, 9
jne 0x10004a477
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.10004bec4
mov rdx, rbp
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.100067a54
cmp eax, edi
jne 0x10004a367
mov r8, qword [rbp]
lea rdx, [0x100011570]
mov ecx, 3
call fcn.100054fd8
nop
cmp rbx, rdi
je 0x10004a35d
lock add dword [rbx + 8], 0xffffffff
jne 0x10004a358
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x30], rdi
mov edi, 0x643
jmp 0x10004a4d6
mov dword [rsp + 0xe0], edi
lea r9, [rsp + 0xe0]
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.100066d94
cmp dword [rsp + 0xe0], edi
je 0x10004a395
mov dword [r13], 1
cmp rbx, rdi
je 0x10004a3b5
lock add dword [rbx + 8], 0xffffffff
jne 0x10004a3b0
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.100020360
nop
mov qword [rsp + 0x48], rdi
lea rdx, [0x100010400]
lea rcx, [rsp + 0x50]
call fcn.100020428
nop
lea r8, [rsp + 0x40]
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.100032a84
nop
lea rcx, [rsp + 0x50]
call fcn.10002006c
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 0x10004a42d
lea rcx, [rsp + 0x40]
call fcn.10002006c
nop
jmp 0x10004a4d6
lea rdx, [0x100011638]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
je 0x10004a461
cmp eax, 2
je 0x10004a461
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
call fcn.10002006c
nop
jmp 0x10004a4d6
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
call fcn.10002006c
mov dword [rsp + 0xe8], edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0xe0], rax
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.100020390
nop
lea r8, [rsp + 0xe8]
mov edx, r12d
mov rcx, rax
call fcn.100044178
cmp eax, edi
jne 0x10004a4c5
cmp r12d, 5
je 0x10004a4c3
cmp r12d, 9
je 0x10004a4c3
mov edi, 0x643
jmp 0x10004a4d6
jmp 0x10004a4d6
cmp dword [rsp + 0xe8], edi
je 0x10004a4d6
mov dword [r13], 1
mov rcx, rbp
call fcn.10002006c
mov eax, edi
add rsp, 0xa0
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret