Function at 0x10004c660
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r12, r8
mov rsi, rdx
mov r14, rcx
mov edi, 1
mov ebp, edi
xor ebx, ebx
mov r15, qword [rsp + 0xa8]
mov dword [r15], ebx
mov qword [rax - 0x40], rbx
mov r13d, ebx
lea rcx, [rax - 0x48]
call fcn.10001e06c
nop
lea rdx, [0x100010690]
lea rcx, [rsp + 0xa8]
call fcn.10001e134
nop
lea r8, [rsp + 0x30]
mov rdx, rsi
lea rcx, [rsp + 0xa8]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0xa8]
call fcn.10001f3ec
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10004c749
cmp eax, 2
je 0x10004c736
mov r9, qword [rsi]
mov r8d, eax
lea rdx, [0x1000112b0]
lea ecx, [rdi + 2]
call fcn.100037e18
mov ebp, ebx
jmp 0x10004c79f
mov r8, qword [rsi]
lea rdx, [0x100011390]
mov ecx, edi
call fcn.100037e18
jmp 0x10004c79f
cmp r12, rbx
jne 0x10004c753
mov r13d, edi
jmp 0x10004c79f
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 7
xor r8d, r8d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x10004c79d
mov r9, qword [rsi]
mov r8d, eax
lea rdx, [0x100011460]
mov ecx, 3
call fcn.100037e18
mov ebp, ebx
jmp 0x10004c79f
mov ebp, edi
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x10004c7af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r13d, ebx
je 0x10004c7c6
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [rsp + 0xa0], ebx
je 0x10004c90c
lea rcx, [rsp + 0xa8]
call fcn.10001e06c
nop
lea rax, [rsp + 0xa8]
cmp rax, rbx
jne 0x10004c7fb
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10004c814
lea r8, [rsp + 0xa8]
mov edx, 2
mov rcx, r14
call fcn.10003e3c8
cmp eax, ebx
jne 0x10004c839
lea rdx, [0x10000c4a0]
mov ecx, 3
call fcn.100037e18
mov edi, ebx
lea rcx, [rsp + 0xa8]
call fcn.10001f3ec
jmp 0x10004c90c
lea rdx, [rsp + 0xa0]
mov rcx, r14
call fcn.10003e358
cmp eax, ebx
jne 0x10004c87a
mov r8, qword [rsp + 0xa8]
lea rdx, [0x100012030]
mov ecx, 3
call fcn.100037e18
mov edi, ebx
lea rcx, [rsp + 0xa8]
call fcn.10001f3ec
jmp 0x10004c90c
mov r9d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0xa8]
lea rdx, [0x1000117c0]
mov ecx, edi
call fcn.100037e18
mov r11d, dword [rsp + 0xa0]
cmp r11d, edi
je 0x10004c8ce
cmp r11d, edi
jbe 0x10004c8c5
cmp r11d, 4
ja 0x10004c8c5
mov r8, r15
mov rdx, rsi
lea rcx, [rsp + 0xa8]
call fcn.10004a7bc
jmp 0x10004c8e1
mov eax, dword [rsp + 0xa0]
jmp 0x10004c8e1
mov r8, r15
mov rdx, rsi
lea rcx, [rsp + 0xa8]
call fcn.10004a574
cmp eax, ebx
je 0x10004c8ff
mov r8, qword [rsp + 0xa8]
lea rdx, [0x1000120a0]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0xa8]
call fcn.10001f3ec
cmp ebp, ebx
je 0x10004c914
cmp edi, ebx
jne 0x10004c919
mov ebx, 0x643
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret