Function at 0x140010fd0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
test byte [0x14003d090], 0x30
mov rbx, rcx
jne 0x140010ff4
call fcn.140011778
xor esi, esi
mov byte [rbp + 0x34], 3
mov eax, esi
mov dword [rbp + 0x30], esi
mov dword [rbp + 0x38], eax
lea r8, [rbp + 0x38]
movzx eax, word [rbp + 0x34]
lea rcx, [0x14003d090]
lea r15d, [rsi + 1]
mov word [rbp + 0x3c], ax
mov r9d, r15d
mov dword [rsp + 0x20], 3
mov edx, 0xd9b0fd
call fcn.140004a34
call fcn.1400122dc
mov rcx, rax
call fcn.140012fc0
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14001106e
cmp eax, 0x8007139f
je 0x14001106e
lea r9, str.OctBrokerSvc::ServiceManager::ShutdownOctagon
mov dword [rsp + 0x20], 0xf8
xor r8d, r8d
lea rdx, str.ShutdownOctagon:_SgrmSessionManager_EndAllSgrmSessions_failed
mov ecx, eax
call fcn.140011ef8
mov r8d, r15d
lea rcx, [0x14002c9c0]
xor edx, edx
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIfEx]
or r14d, 0xffffffff
cmp qword [rbx + 0x20], rsi
je 0x1400110d4
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx + 0x28]
mov qword [rbx + 0x28], rsi
test rdi, rdi
je 0x1400110d4
mov eax, r14d
lock xadd dword [rdi + 8], eax
add eax, r14d
jne 0x1400110d4
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140028a26.0]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
add eax, r14d
jne 0x1400110d4
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140028a26.0]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400110f0
mov qword [rbx + 0x30], rsi
mov edx, r15d
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x140028a26.0]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001114e
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140028a26.0]
mov qword [rbx], rsi
mov rdi, qword [rbx + 8]
mov qword [rbx + 8], rsi
test rdi, rdi
je 0x14001114e
mov eax, r14d
lock xadd dword [rdi + 8], eax
add eax, r14d
jne 0x14001114e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140028a26.0]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
add eax, r14d
jne 0x14001114e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140028a26.0]
cmp qword [rbx + 0x10], rsi
je 0x14001119e
mov qword [rbx + 0x10], rsi
mov rdi, qword [rbx + 0x18]
mov qword [rbx + 0x18], rsi
test rdi, rdi
je 0x14001119e
mov eax, r14d
lock xadd dword [rdi + 8], eax
add eax, r14d
jne 0x14001119e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140028a26.0]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
add eax, r14d
jne 0x14001119e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140028a26.0]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], esi
mov qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetControlWMISecurity
lea rax, [rbp + 0x40]
mov qword [rbp + 0x40], rsi
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140011213
cmp dword [rbp + 0x30], 2
jne 0x140011213
mov rcx, qword [rbp + 0x40]
lea rdx, str.c688cf83_9945_5ff6_0e1e_1ff1f8a2ec9a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
je 0x14001123f
mov dword [rsp + 0x20], 0x142
lea rdx, str._revertAccessPermissionsToTraceProvider:_Failed_to_delete_value
jmp 0x140011222
mov dword [rsp + 0x20], 0x13a
lea rdx, str._revertAccessPermissionsToTraceProvider:_Failed_to_open_key
movzx ecx, ax
lea r9, str.OctBrokerSvc::_revertAccessPermissionsToTraceProvider
or ecx, 0x80070000
mov r8d, r15d
test eax, eax
cmovle ecx, eax
call fcn.140011ef8
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001124e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret