Function at 0x14005f99c
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400bd288]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov dword [rsp + 0x28], ecx
xor edi, edi
mov byte [rbp + 5], dil
mov qword [rbp + 0x18], rdi
lea eax, [rdi + 7]
mov qword [rbp + 0x20], rax
mov word [rbp + 8], di
mov qword [rbp + 0x38], rdi
mov qword [rbp + 0x40], rax
mov word [rbp + 0x28], di
mov byte [rsp + 0x20], dil
lea r9, [rsp + 0x20]
lea r8, [rbp]
mov edx, ecx
mov cl, 1
call fcn.14005fdc0
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
jne 0x14005fd82
cmp byte [rsp + 0x20], dil
jne 0x14005fb96
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], di
lea rdx, str.Failed_to_modify_the_server_entry___1___since_it_is_controlled_by_Group_Policy.
lea rcx, [rbp - 0x70]
call fcn.140003cac
nop
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], di
lea rdx, str.Publishing
lea rcx, [rsp + 0x70]
call fcn.140003cac
nop
call fcn.14000a10c
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
call fcn.14003b330
mov rbx, rax
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], dil
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::RemoveServer
lea edx, [rdi + 0x47]
lea rcx, [rsp + 0x48]
call fcn.14003b7cc
mov dword [rsp + 0x68], 0x8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140061f74
mov r9, rbx
lea r8, [rsp + 0x70]
lea edx, [rdi + 1]
lea rcx, [rsp + 0x48]
call fcn.14003b4a0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14005fb0f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fb0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005fb0a
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], dil
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x20]
call fcn.140003c44
nop
lea rcx, [rsp + 0x70]
call fcn.140003c44
nop
lea rcx, [rbp - 0x70]
call fcn.140003c44
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 0x14005fb67
inc rax
jmp 0x14005fb6e
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
mov rbx, rax
shl rbx, 0x34
movabs rax, 0x110700000701
or rbx, rax
jmp 0x14005fd82
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.140061e94
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 0x14005fbe1
cmp eax, 1
je 0x14005fbe1
movabs rbx, 0x8000000000
jmp 0x14005fd78
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], di
lea rdx, str.Couldnt_delete_registry_tree._n_winerr___1__n_sub_key:__2_
lea rcx, [rsp + 0x70]
call fcn.140003cac
nop
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], di
lea rdx, str.Publishing
lea rcx, [rbp - 0x70]
call fcn.140003cac
nop
call fcn.14000a10c
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x30]
call fcn.14003b330
mov rbx, rax
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], dil
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::RemoveServer
mov edx, 0x47
lea rcx, [rsp + 0x48]
call fcn.14003b7cc
mov dword [rsp + 0x68], 0x98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000c764
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001245c
mov r9, rbx
lea r8, [rbp - 0x70]
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.14003b4a0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14005fcf2
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fced
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005fced
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
movdqa xmm0, xmmword [0x140097d90]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], dil
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x20]
call fcn.140003c44
nop
lea rcx, [rbp - 0x70]
call fcn.140003c44
nop
lea rcx, [rsp + 0x70]
call fcn.140003c44
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 0x14005fd4a
inc rax
jmp 0x14005fd51
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
mov ebx, dword [rsp + 0x30]
or rbx, rax
movabs rax, 0x132700000000
or rbx, rax
lea rcx, [rbp - 0x50]
call fcn.140003c44
nop
lea rcx, [rbp + 0x28]
call fcn.140003c44
lea rcx, [rbp + 8]
call fcn.140003c44
mov rax, rbx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140066490
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret