Function at 0x14000ca10
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rdi, rcx
xor r15d, r15d
mov qword [rbp - 9], r15
mov dword [rbp - 1], r15d
mov qword [rbp + 7], r15
mov r9d, 0x20019
lea r8, str.AppID
mov rdx, 0xffffffff80000000
lea rcx, [rbp - 9]
call fcn.1400102d0
mov ebx, eax
test eax, eax
je 0x14000ca70
mov dword [rdi + 0x27c], eax
jmp 0x14000cdb1
mov qword [rbp + 0xf], r15
mov dword [rbp + 0x17], r15d
mov qword [rbp + 0x1f], r15
mov r9d, 0x20019
lea rsi, str.84081F6F_8B2D_4FFE_AF7F_E72D488FABEB
mov r8, rsi
mov rdx, qword [rbp - 9]
lea rcx, [rbp + 0xf]
call fcn.1400102d0
xor ecx, ecx
test eax, eax
jne 0x14000cb5e
lea rdx, str.Registering_server
call fcn.140005ea0
mov ebx, r15d
mov rdi, qword [0x140070060]
mov rax, qword [0x140070068]
cmp rdi, rax
jae 0x14000cb17
mov rsi, qword [rdi]
test rsi, rsi
je 0x14000cb0a
mov ecx, 1
mov rax, qword [rsi + 8]
call qword [case.0x14002508a.0]
mov ebx, eax
test eax, eax
js 0x14000cb27
mov rax, qword [rsi + 0x30]
call qword [case.0x14002508a.0]
mov rdx, rax
mov r8d, 1
mov rcx, qword [rsi]
call fcn.14000e890
mov ebx, eax
test eax, eax
js 0x14000cb27
mov rax, qword [0x140070068]
add rdi, 8
cmp rdi, rax
jb 0x14000cac5
test ebx, ebx
js 0x14000cb52
xor edx, edx
mov rcx, qword [0x140070058]
call fcn.14000ed10
mov ebx, eax
test ebx, ebx
js 0x14000cb52
mov rax, qword [0x140072d28]
test rax, rax
je 0x14000cb46
mov rcx, qword [0x140073838]
call qword [case.0x14002508a.0]
mov ebx, eax
test ebx, ebx
js 0x14000cb52
mov ebx, r15d
jmp 0x14000cd9e
lea rdx, str.Failed_to_register_typelib__hr__0x_x
jmp 0x14000cd91
lea rdx, str.Registry_update_needed
call fcn.140005ea0
lea rax, str.APPID
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x37], xmm0
lea r9, [rbp + 0x27]
mov edx, 0x65
lea r8d, [rdx - 0x64]
mov rcx, qword [0x140072d18]
call fcn.1400129f0
mov ebx, eax
test eax, eax
jns 0x14000cbaf
mov r8d, eax
lea rdx, str.Registry_update_Failed__returned_value:_0x_x
jmp 0x14000cd94
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14000cbc2
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rbp - 9], r15
mov dword [rbp - 1], r15d
mov r9d, 0x20006
lea r8, str.AppID
mov rdx, 0xffffffff80000000
lea rcx, [rbp - 9]
call fcn.1400102d0
test eax, eax
je 0x14000cbf5
mov ecx, eax
call fcn.14000e590
mov ebx, eax
jmp 0x14000cd9e
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rsi
mov rdx, qword [rbp - 9]
lea rcx, [rbp + 0xf]
call fcn.14000f1d0
test eax, eax
je 0x14000cc31
mov ecx, eax
call fcn.14000e590
mov ebx, eax
jmp 0x14000cd9e
lea rdx, str.LocalService
mov r14, qword [rbp + 0xf]
mov rcx, r14
call qword [sym.imp.advapi32.dll_RegDeleteValueW]
lea rcx, [rdi + 0x68]
test rcx, rcx
je 0x14000cc89
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14000cc55
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.LocalService
mov rcx, r14
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov qword [rbp + 0x6f], r15
xor r9d, r9d
lea r8, [rbp + 0x6f]
lea edx, [r9 + 1]
lea rcx, str.O:BAG:BAD:_A__0xb___WD__A__0xb___AC_S:_ML__NX___LW_
call sub.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x14000ccd9
mov rbx, qword [rbp + 0x6f]
mov rdx, rbx
mov rcx, r14
call fcn.14000bbd0
test eax, eax
jne 0x14000ccc9
lea rdx, str.ERROR:_couldnt_set_security_descriptor_in_registry
xor ecx, ecx
call fcn.140005ea0
test rbx, rbx
je 0x14000cce7
mov rcx, rbx
call qword [sym.imp.kernel32.dll_LocalFree]
jmp 0x14000cce7
lea rdx, str.ERROR:_couldnt_create_security_descriptor.
xor ecx, ecx
call fcn.140005ea0
mov ebx, r15d
mov rdi, qword [0x140070060]
mov rax, qword [0x140070068]
cmp rdi, rax
jae 0x14000cd52
nop dword [rax]
mov rsi, qword [rdi]
test rsi, rsi
je 0x14000cd45
mov ecx, 1
mov rax, qword [rsi + 8]
call qword [case.0x14002508a.0]
mov ebx, eax
test eax, eax
js 0x14000cd62
mov rax, qword [rsi + 0x30]
call qword [case.0x14002508a.0]
mov rdx, rax
mov r8d, 1
mov rcx, qword [rsi]
call fcn.14000e890
mov ebx, eax
test eax, eax
js 0x14000cd62
mov rax, qword [0x140070068]
add rdi, 8
cmp rdi, rax
jb 0x14000cd00
test ebx, ebx
js 0x14000cd8a
xor edx, edx
mov rcx, qword [0x140070058]
call fcn.14000ed10
mov ebx, eax
test ebx, ebx
js 0x14000cd8a
mov rax, qword [0x140072d28]
test rax, rax
je 0x14000cd81
mov rcx, qword [0x140073838]
call qword [case.0x14002508a.0]
mov ebx, eax
test ebx, ebx
js 0x14000cd8a
mov ebx, r15d
jmp 0x14000cda2
lea rdx, str.Register_Server_Failed__returned_value:_0x_x
mov r8d, ebx
lfence
xor ecx, ecx
call fcn.140005ea0
mov r14, qword [rbp + 0xf]
test r14, r14
je 0x14000cdb1
mov rcx, r14
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14000cdc0
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret