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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xb8]
call fcn.100013fb0
movzx eax, al
test eax, eax
jne 0x10004c09a
mov rcx, qword [rsp + 0xc0]
call fcn.100013fb0
movzx eax, al
test eax, eax
jne 0x10004c09a
mov rcx, qword [rsp + 0xc8]
call fcn.100013fb0
movzx eax, al
test eax, eax
je 0x10004c0f0
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0xb8]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xc0]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xc8]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xd0]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xd8]
call fcn.1000144b0
mov eax, dword [rsp + 0x68]
jmp 0x10004c456
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [0x100008300]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x10004c12f
mov dword [rsp + 0x60], 0
jmp 0x10004c3ab
mov rcx, qword [rsp + 0xb0]
call fcn.100013bb0
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x10004c194
mov dword [rsp + 0x60], 0
jmp 0x10004c3ab
mov rcx, qword [rsp + 0xc0]
call fcn.100013fa0
inc eax
cdqe
shl rax, 1
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xc0]
call fcn.100013ee0
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1000082d8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x10004c1fb
mov dword [rsp + 0x60], 0
jmp 0x10004c3ab
mov rcx, qword [rsp + 0xb8]
call fcn.100013fa0
inc eax
cdqe
shl rax, 1
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xb8]
call fcn.100013ee0
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1000082c0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x10004c268
mov dword [rsp + 0x60], 0
jmp 0x10004c3ab
lea rdx, [0x1000082b8]
mov rcx, qword [rsp + 0xc8]
call fcn.100015e80
mov rcx, qword [rsp + 0xc8]
call fcn.100013fa0
inc eax
cdqe
shl rax, 1
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0xc8]
call fcn.100013ee0
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [0x1000082a0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xd0]
call fcn.100013fb0
movzx eax, al
test eax, eax
jne 0x10004c33a
mov rcx, qword [rsp + 0xd0]
call fcn.100013fa0
inc eax
cdqe
shl rax, 1
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0xd0]
call fcn.100013ee0
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x100008280]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xd8]
call fcn.100013fb0
movzx eax, al
test eax, eax
jne 0x10004c3a3
mov rcx, qword [rsp + 0xd8]
call fcn.100013fa0
inc eax
cdqe
shl rax, 1
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0xd8]
call fcn.100013ee0
mov rcx, qword [rsp + 0x98]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x100008268]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x60], 1
cmp qword [rsp + 0x58], 0
je 0x10004c3c7
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x50], 0
je 0x10004c405
cmp dword [rsp + 0x60], 0
jne 0x10004c3f1
mov rcx, qword [rsp + 0xb0]
call fcn.100013bb0
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x6c], eax
mov rcx, qword [rsp + 0xb8]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xc0]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xc8]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xd0]
call fcn.1000144b0
nop
mov rcx, qword [rsp + 0xd8]
call fcn.1000144b0
mov eax, dword [rsp + 0x6c]
add rsp, 0xa8
ret