Function at 0x140060854
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 [0x1400be278]
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.140060c78
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
jne 0x140060c3a
cmp byte [rsp + 0x20], dil
jne 0x140060a4e
movdqa xmm0, xmmword [0x140098cc0]
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.140003c94
nop
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], di
lea rdx, str.Publishing
lea rcx, [rsp + 0x70]
call fcn.140003c94
nop
call fcn.14000a0ec
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
call fcn.14003c360
mov rbx, rax
movdqa xmm0, xmmword [0x140098cd0]
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.14003c658
mov dword [rsp + 0x68], 0x8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140062e18
mov r9, rbx
lea r8, [rsp + 0x70]
lea edx, [rdi + 1]
lea rcx, [rsp + 0x48]
call fcn.14003c4d0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400609c7
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400609c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400609c2
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400674a4
movdqa xmm0, xmmword [0x140098cd0]
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.140003c2c
nop
lea rcx, [rsp + 0x70]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x70]
call fcn.140003c2c
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 0x140060a1f
inc rax
jmp 0x140060a26
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
mov rbx, rax
shl rbx, 0x34
movabs rax, 0x110700000701
or rbx, rax
jmp 0x140060c3a
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.140062d38
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 0x140060a99
cmp eax, 1
je 0x140060a99
movabs rbx, 0x8000000000
jmp 0x140060c30
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [0x140098cc0]
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.140003c94
nop
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], di
lea rdx, str.Publishing
lea rcx, [rbp - 0x70]
call fcn.140003c94
nop
call fcn.14000a0ec
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x30]
call fcn.14003c360
mov rbx, rax
movdqa xmm0, xmmword [0x140098cd0]
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.14003c658
mov dword [rsp + 0x68], 0x98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000c9f4
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001274c
mov r9, rbx
lea r8, [rbp - 0x70]
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.14003c4d0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140060baa
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060ba5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140060ba5
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400674a4
movdqa xmm0, xmmword [0x140098cd0]
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.140003c2c
nop
lea rcx, [rbp - 0x70]
call fcn.140003c2c
nop
lea rcx, [rsp + 0x70]
call fcn.140003c2c
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 0x140060c02
inc rax
jmp 0x140060c09
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
mov ebx, dword [rsp + 0x30]
or rbx, rax
movabs rax, 0x132700000000
or rbx, rax
lea rcx, [rbp - 0x50]
call fcn.140003c2c
nop
lea rcx, [rbp + 0x28]
call fcn.140003c2c
lea rcx, [rbp + 8]
call fcn.140003c2c
mov rax, rbx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140067150
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret