Function at 0x100051f98
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 0x1000520b7
lea rcx, [rsp + 0x68]
call fcn.100018ee8
nop
mov rdx, qword [rbp]
lea rcx, [rsp + 0x68]
call fcn.10001ee9c
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x38]
call fcn.100053588
lea rdx, [rsp + 0x68]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.100058eb0
cmp eax, edi
jne 0x100052058
mov r8, qword [rbp]
lea rdx, [0x100013550]
lea ecx, [rdi + 3]
call fcn.100037e18
nop
cmp rbx, rdi
je 0x10005203b
lock add dword [rbx + 8], 0xffffffff
jne 0x100052036
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.10001a784
nop
mov rcx, rbp
call fcn.10001f3ec
mov eax, 0x643
jmp 0x10005229c
mov dword [rsp + 0xd0], edi
lea r9, [rsp + 0xd0]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.100058344
cmp dword [rsp + 0xd0], edi
je 0x100052088
mov dword [r13], 1
cmp rbx, rdi
je 0x1000520a8
lock add dword [rbx + 8], 0xffffffff
jne 0x1000520a3
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.10001a784
jmp 0x100052171
cmp ecx, 9
jne 0x100052233
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.100053588
mov rdx, rbp
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.100059280
cmp eax, edi
jne 0x100052123
mov r8, qword [rbp]
lea rdx, [0x100013630]
mov ecx, 3
call fcn.100037e18
nop
cmp rbx, rdi
je 0x100052119
lock add dword [rbx + 8], 0xffffffff
jne 0x100052114
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x30], rdi
mov edi, 0x643
jmp 0x100052292
mov dword [rsp + 0xe0], edi
lea r9, [rsp + 0xe0]
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.100058888
cmp dword [rsp + 0xe0], edi
je 0x100052151
mov dword [r13], 1
cmp rbx, rdi
je 0x100052171
lock add dword [rbx + 8], 0xffffffff
jne 0x10005216c
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.10001e06c
nop
mov qword [rsp + 0x48], rdi
lea rdx, [0x1000124e0]
lea rcx, [rsp + 0x50]
call fcn.10001e134
nop
lea r8, [rsp + 0x40]
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
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 0x1000521e9
lea rcx, [rsp + 0x40]
call fcn.10001f3ec
nop
jmp 0x100052292
lea rdx, [0x1000136f8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
je 0x10005221d
cmp eax, 2
je 0x10005221d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
call fcn.10001f3ec
nop
jmp 0x100052292
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
call fcn.10001f3ec
mov dword [rsp + 0xe8], edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0xe0], rax
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.10001e09c
nop
lea r8, [rsp + 0xe8]
mov edx, r12d
mov rcx, rax
call fcn.10004d0bc
cmp eax, edi
jne 0x100052281
cmp r12d, 5
je 0x10005227f
cmp r12d, 9
je 0x10005227f
mov edi, 0x643
jmp 0x100052292
jmp 0x100052292
cmp dword [rsp + 0xe8], edi
je 0x100052292
mov dword [r13], 1
mov rcx, rbp
call fcn.10001f3ec
mov eax, edi
add rsp, 0xa0
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret