Function at 0x140013a08
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rdi, rcx
mov r8d, dword [0x14005ab58]
test r8b, 2
jne 0x140013a4a
lea rdx, [rsp + 0x50]
lea rcx, [0x14005ab58]
call fcn.14001407c
mov rdx, qword [rax]
mov qword [rsp + 0xf8], rdx
mov r8d, edx
xor ebx, ebx
mov dword [rsp + 0xe8], ebx
mov byte [rsp + 0xec], 3
mov r9d, r8d
shr r9d, 9
lea esi, [rbx + 1]
and r9d, esi
shr r8d, 8
and r8d, esi
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov edx, 0xd9b0fd
lea rcx, [0x14005ab60]
call fcn.1400081f4
call fcn.140016584
mov rcx, rax
call fcn.140016f8c
mov r15d, 0x80000000
lea ecx, [rax + r15]
test r15d, ecx
jne 0x140013adc
cmp eax, 0x8007139f
je 0x140013adc
mov dword [rsp + 0x20], 0xd8
lea r9, str.OctBrokerSvc::ServiceManager::ShutdownOctagon
xor r8d, r8d
lea rdx, str.ShutdownOctagon:_SgrmSessionManager_EndAllSgrmSessions_failed
mov ecx, eax
call fcn.140014e28
mov r8d, esi
xor edx, edx
lea rcx, [0x140045270]
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIfEx]
nop dword [rax + rax]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x140013b30
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], rax
mov qword [rdi + 0x38], rbx
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rdi + 0x40], rbx
lea rcx, [rsp + 0x68]
call fcn.14000e500
lea rcx, [rsp + 0x50]
call fcn.14000e500
mov r14, qword [rdi + 0x48]
test r14, r14
je 0x140013b68
mov qword [rdi + 0x48], rbx
mov rcx, r14
call fcn.140015608
mov edx, 0xe0
mov rcx, r14
call fcn.14003fb84
nop
jmp 0x140013b68
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140013bc2
mov rax, qword [rcx]
movabs r10, 0xd9b526b4385eba70
mov rax, qword [rax + 0x18]
call qword [0x140046a60]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x78], rax
mov qword [rdi + 0x18], rbx
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x80], rax
mov qword [rdi + 0x20], rbx
lea rcx, [rsp + 0x78]
call fcn.14000e500
lea rcx, [rsp + 0x68]
call fcn.14000e500
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140013c07
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], rax
mov qword [rdi + 0x28], rbx
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x90], rax
mov qword [rdi + 0x30], rbx
lea rcx, [rsp + 0x88]
call fcn.14000e500
lea rcx, [rsp + 0x78]
call fcn.14000e500
mov r8d, dword [0x14005ab58]
test r8b, 2
jne 0x140013c33
lea rdx, [rsp + 0x60]
lea rcx, [0x14005ab58]
call fcn.14001407c
mov rcx, qword [rax]
mov qword [rsp + 0xe0], rcx
mov r8d, ecx
and dword [rsp + 0xf0], 0
mov byte [rsp + 0xf4], 3
mov r9d, r8d
shr r9d, 9
and r9d, esi
shr r8d, 8
and r8d, esi
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov edx, 0xd9b0fd
lea rcx, [0x14005ab60]
call fcn.1400081f4
call fcn.140016584
mov rdi, rax
mov rcx, qword [rax + 0x68]
test rcx, rcx
je 0x140013c9f
call qword [sym.imp.api_ms_win_power_base_l1_1_0.dll_PowerUnregisterSuspendResumeNotification]
nop dword [rax + rax]
mov qword [rdi + 0x68], rbx
mov r14, qword [rdi + 0x58]
mov qword [rdi + 0x58], rbx
test r14, r14
je 0x140013cc1
mov rcx, r14
call fcn.140019560
mov edx, 0xd0
mov rcx, r14
call fcn.14003fb84
mov rcx, rdi
call fcn.140016f8c
mov r14d, eax
mov rcx, qword [rdi + 0x48]
mov qword [rsp + 0x98], rcx
mov qword [rdi + 0x48], rbx
mov rcx, qword [rdi + 0x50]
mov qword [rsp + 0xa0], rcx
mov qword [rdi + 0x50], rbx
lea rcx, [rsp + 0x98]
call fcn.14000e500
mov byte [rdi + 0x60], bl
lea ecx, [r14 + r15]
test r15d, ecx
jne 0x140013d2f
cmp r14d, 0x8007139f
je 0x140013d2f
mov dword [rsp + 0x20], 0x10d
lea r9, str.OctBrokerSvc::ServiceManager::ShutdownOctagon
xor r8d, r8d
lea rdx, str.ShutdownOctagon:_SgrmSessionManager_Uninitialize_failed
mov ecx, r14d
call fcn.140014e28
mov dword [rsp + 0xe0], ebx
mov qword [rsp + 0xe8], rbx
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlWMISecurity
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140013dc7
cmp dword [rsp + 0xe0], 2
jne 0x140013dc7
lea rdx, str.c688cf83_9945_5ff6_0e1e_1ff1f8a2ec9a
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140013df3
mov dword [rsp + 0x20], 0x131
lea rdx, str._revertAccessPermissionsToTraceProvider:_Failed_to_delete_value
jmp 0x140013dd6
mov dword [rsp + 0x20], 0x129
lea rdx, str._revertAccessPermissionsToTraceProvider:_Failed_to_open_key
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
lea r9, str.OctBrokerSvc::_revertAccessPermissionsToTraceProvider
mov r8d, esi
cmovle ecx, eax
call fcn.140014e28
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x140013e0d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret