Function at 0x14005ec4c
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c2270]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov dword [rsp + 0x28], ecx
xor esi, esi
mov byte [rbp - 0x2b], sil
mov qword [rbp - 0x18], rsi
lea r15d, [rsi + 7]
mov qword [rbp - 0x10], r15
mov word [rbp - 0x28], si
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], r15
mov word [rbp - 8], si
mov byte [rsp + 0x20], sil
lea r9, [rsp + 0x20]
lea r8, [rbp - 0x30]
mov edx, ecx
lea r14d, [rsi + 1]
mov cl, r14b
call fcn.14005f04c
mov rbx, rax
shr rax, 0x27
not eax
lea edi, [rsi + 2]
test r14b, al
jne 0x14005efec
cmp byte [rsp + 0x20], sil
jne 0x14005ee22
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], r15
mov word [rsp + 0x68], si
lea r8d, [rsi + 0x4f]
lea rdx, str.Failed_to_modify_the_server_entry___1___since_it_is_controlled_by_Group_Policy.
lea rcx, [rsp + 0x68]
call fcn.1400030f0
nop
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r15
mov word [rsp + 0x48], si
lea r8d, [rsi + 0xa]
lea rdx, str.Publishing
lea rcx, [rsp + 0x48]
call fcn.1400030f0
nop
call fcn.140007558
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x30]
call fcn.14003a428
mov rbx, rax
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::RemoveServer
lea rcx, [rbp - 0x58]
call fcn.14003a658
mov dword [rbp - 0x38], 0x8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400610c4
mov r9, rbx
lea r8, [rsp + 0x48]
mov edx, r14d
lea rcx, [rbp - 0x58]
call fcn.14003a5d4
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14005ed97
inc rdx
mov r8d, r14d
mov rcx, qword [rbp - 0x58]
call fcn.140002ec0
nop
lea rcx, [rbp + 0x30]
call fcn.14003ace4
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14005edbd
inc rdx
mov r8, rdi
mov rcx, qword [rsp + 0x48]
call fcn.140002ec0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14005edd7
inc rdx
mov r8, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002ec0
mov edx, 0x5c
lea rcx, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x14005edf3
add rax, r14
jmp 0x14005edfa
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400c3688]
call fcn.14000f3ec
mov rbx, rax
shl rbx, 0x34
movabs rax, 0x110700000701
or rbx, rax
jmp 0x14005efec
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea rcx, [rbp - 0x78]
call fcn.140060fe4
nop
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x30], eax
mov edi, 2
test eax, 0xfffffffc
jne 0x14005ee72
cmp eax, r14d
je 0x14005ee72
movabs rbx, 0x8000000000
jmp 0x14005efd2
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rax, qword [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r15
mov word [rsp + 0x48], si
mov r8d, 0x3a
lea rdx, str.Couldnt_delete_registry_tree._n_winerr___1__n_sub_key:__2_
lea rcx, [rsp + 0x48]
call fcn.1400030f0
nop
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], r15
mov word [rsp + 0x68], si
mov r8d, 0xa
lea rdx, str.Publishing
lea rcx, [rsp + 0x68]
call fcn.1400030f0
nop
call fcn.140007558
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x30]
call fcn.14003a428
mov rbx, rax
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::RemoveServer
lea rcx, [rbp - 0x58]
call fcn.14003a658
mov dword [rbp - 0x38], 0x98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140009480
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000edac
mov r9, rbx
lea r8, [rsp + 0x68]
mov edx, r14d
lea rcx, [rbp - 0x58]
call fcn.14003a5d4
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14005ef48
inc rdx
mov r8, r14
mov rcx, qword [rbp - 0x58]
call fcn.140002ec0
nop
lea rcx, [rbp + 0x30]
call fcn.14003ace4
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14005ef6d
inc rdx
mov r8, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002ec0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14005ef88
inc rdx
mov r8, rdi
mov rcx, qword [rsp + 0x48]
call fcn.140002ec0
mov edx, 0x5c
lea rcx, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x14005efa4
add rax, r14
jmp 0x14005efab
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400c3688]
call fcn.14000f3ec
shl rax, 0x34
mov ebx, dword [rsp + 0x30]
or rbx, rax
movabs rax, 0x132700000000
or rbx, rax
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x14005efec
inc rdx
mov r8, rdi
mov rcx, qword [rbp - 0x78]
call fcn.140002ec0
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x14005f005
inc rdx
mov r8, rdi
mov rcx, qword [rbp - 8]
call fcn.140002ec0
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14005f01e
inc rdx
mov r8, rdi
mov rcx, qword [rbp - 0x28]
call fcn.140002ec0
mov rax, rbx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140065760
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret