Function at 0x14005b404
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400bc178]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov dword [rsp + 0x28], ecx
mov r14d, 7
mov qword [rbp + 0x20], r14
xor esi, esi
mov qword [rbp + 0x18], rsi
mov word [rbp + 8], si
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x38], rsi
mov word [rbp + 0x28], si
mov byte [rsp + 0x20], sil
lea r9, [rsp + 0x20]
lea r8, [rbp]
mov edx, ecx
lea edi, [rsi + 1]
mov cl, dil
call fcn.14005b804
mov rbx, rax
shr rax, 0x27
not eax
test dil, al
jne 0x14005b7b7
cmp byte [rsp + 0x20], sil
jne 0x14005b5e7
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x60], rsi
mov word [rbp - 0x70], si
lea r8d, [r14 + 0x48]
lea rdx, str.Failed_to_modify_the_server_entry___1___since_it_is_controlled_by_Group_Policy.
lea rcx, [rbp - 0x70]
call fcn.140003394
nop
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
movzx eax, word [str.Publishing]
neg ax
sbb r8, r8
and r8d, 0xa
lea rdx, str.Publishing
lea rcx, [rsp + 0x70]
call fcn.140003394
nop
call fcn.140007e38
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
call fcn.1400377c0
mov rbx, rax
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::RemoveServer
lea rcx, [rsp + 0x48]
call fcn.140003144
mov dword [rsp + 0x68], 0x8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14005d864
mov r9, rbx
lea r8, [rsp + 0x70]
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1400379a4
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14005b54e
inc rdx
mov r8d, edi
mov rcx, qword [rsp + 0x48]
call fcn.1400029dc
mov qword [rsp + 0x60], SafeArrayUnaccessData
mov qword [rsp + 0x58], rsi
mov byte [rsp + 0x48], sil
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x30], rax
xor r8d, r8d
mov dl, dil
lea rcx, [rbp - 0x20]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x70]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rbp - 0x70]
call fcn.14000328c
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 0x14005b5b8
add rax, rdi
jmp 0x14005b5bf
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd408]
call fcn.14000fa54
mov rbx, rax
shl rbx, 0x34
movabs rax, 0x110700000701
or rbx, rax
jmp 0x14005b7b7
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.14005d780
nop
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x30], eax
test eax, 0xfffffffc
jne 0x14005b631
cmp eax, edi
je 0x14005b631
movabs rbx, 0x8000000000
jmp 0x14005b7a7
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
mov r8d, 0x3a
lea rdx, str.Couldnt_delete_registry_tree._n_winerr___1__n_sub_key:__2_
lea rcx, [rsp + 0x70]
call fcn.140003394
nop
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x60], rsi
mov word [rbp - 0x70], si
movzx eax, word [str.Publishing]
neg ax
sbb r8, r8
and r8d, 0xa
lea rdx, str.Publishing
lea rcx, [rbp - 0x70]
call fcn.140003394
nop
call fcn.140007e38
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x30]
call fcn.1400377c0
mov rbx, rax
lea rdx, str.AppV::Client::Publishing::Configurations::ServerRegRecord::RemoveServer
lea rcx, [rsp + 0x48]
call fcn.140003144
mov dword [rsp + 0x68], 0x98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000a520
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000e71c
mov r9, rax
lea r8, [rbp - 0x70]
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1400379a4
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14005b70f
inc rdx
mov r8, rdi
mov rcx, qword [rsp + 0x48]
call fcn.1400029dc
mov qword [rsp + 0x60], SafeArrayUnaccessData
mov qword [rsp + 0x58], rsi
mov byte [rsp + 0x48], sil
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x30], rax
xor r8d, r8d
mov dl, dil
lea rcx, [rbp - 0x20]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rbp - 0x70]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x70]
call fcn.14000328c
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 0x14005b779
add rax, rdi
jmp 0x14005b780
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd408]
call fcn.14000fa54
shl rax, 0x34
mov ebx, dword [rsp + 0x30]
or rbx, rax
movabs rax, 0x132700000000
or rbx, rax
xor r8d, r8d
mov dl, dil
lea rcx, [rbp - 0x50]
call fcn.14000328c
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rbp + 0x28]
call fcn.14000328c
xor r8d, r8d
mov dl, dil
lea rcx, [rbp + 8]
call fcn.14000328c
mov rax, rbx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140061880
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret