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

Disassembly:
push rbp
push rsi
push r12
sub rsp, 0x60
cmp byte [0x14000b505], 0
mov rsi, r8
mov rbp, rdx
mov r12, rcx
jne 0x140005616
xor eax, eax
add rsp, 0x60
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x58], r13
xor r13d, r13d
mov edx, 0x104
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x98], r13
call fcn.140005ce0
lea rcx, str.SOFTWAREMCAFEESYSTEMCOREAPILOGCALLBACK
mov rdi, rax
call fcn.140005c20
mov r14, 0xffffffffffffffff
lea rdi, [rdi + rax + 2]
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.1400051c0
test rax, rax
mov rbx, rax
jne 0x140005684
lea eax, [rbx + 0xe]
jmp 0x14000585f
lea rdx, str.SOFTWAREMCAFEESYSTEMCOREAPILOGCALLBACK
mov r8, rdi
mov rcx, rax
call fcn.140005d70
lea r8, [0x140008b28]
mov rdx, rdi
mov rcx, rbx
call fcn.140005dd0
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call fcn.140005dd0
mov rcx, qword [0x14000b030]
lea r12, [0x14000b030]
cmp rcx, r12
je 0x1400056f6
test byte [rcx + 0x1c], 1
je 0x1400056f6
cmp byte [rcx + 0x19], 4
jb 0x1400056f6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008b50]
mov r9, rbx
mov dx, 0xd
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbp
call fcn.140001450
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov edi, eax
jne 0x1400057da
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
lea r9d, [rax + 1]
xor r8d, r8d
not rcx
mov rdx, rbp
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov edi, eax
je 0x1400057c3
mov rcx, qword [0x14000b030]
cmp rcx, r12
je 0x1400057c3
test byte [rcx + 0x1c], 1
je 0x1400057c3
cmp byte [rcx + 0x19], 4
jb 0x1400057c3
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [0x140008b50]
mov r9d, eax
mov dx, 0xe
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
call fcn.1400052c0
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x14000b030]
jmp 0x14000581f
mov rcx, qword [0x14000b030]
cmp rcx, r12
je 0x14000581f
test byte [rcx + 0x1c], 1
je 0x14000581f
cmp byte [rcx + 0x19], 4
jb 0x14000581f
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [0x140008b50]
mov r9d, eax
mov dx, 0xf
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
call fcn.1400052c0
mov rcx, qword [0x14000b030]
test edi, edi
jne 0x140005855
cmp rcx, r12
je 0x140005855
test byte [rcx + 0x1c], 1
je 0x140005855
cmp byte [rcx + 0x19], 4
jb 0x140005855
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008b50]
mov r9, rbx
mov dx, 0x10
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbp
call fcn.140001450
mov rcx, rbx
call fcn.1400051f0
mov eax, edi
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r14, qword [rsp + 0x50]
add rsp, 0x60
pop r12
pop rsi
pop rbp
ret