Function at 0x140059f98
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 [0x1400bc288]
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.14005a324
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
jne 0x14005a2ec
cmp byte [rsp + 0x20], dil
jne 0x14005a148
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], di
lea rdx, str.Failed_to_modify_the_server_entry___1___since_it_is_controlled_by_Group_Policy.
lea rcx, [rsp + 0x68]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
lea rdx, str.Publishing
lea rcx, [rsp + 0x48]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x30]
call fcn.1400386d8
mov rbx, rax
movdqa xmm0, xmmword [0x140093d40]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], dil
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::RemoveServer
lea edx, [rdi + 0x47]
lea rcx, [rbp - 0x78]
call fcn.1400389a8
mov dword [rbp - 0x58], 0x8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14005c25c
mov r9, rbx
lea r8, [rsp + 0x48]
lea edx, [rdi + 1]
lea rcx, [rbp - 0x78]
call fcn.140038838
nop
lea rcx, [rbp - 0x78]
call fcn.140006108
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x20]
call fcn.140003388
nop
lea rcx, [rsp + 0x48]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
lea edx, [rdi + 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 0x14005a119
inc rax
jmp 0x14005a120
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
mov rbx, rax
shl rbx, 0x34
movabs rax, 0x110700000701
or rbx, rax
jmp 0x14005a2ec
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.14005c184
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 0x14005a193
cmp eax, 1
je 0x14005a193
movabs rbx, 0x8000000000
jmp 0x14005a2e2
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
lea rdx, str.Couldnt_delete_registry_tree._n_winerr___1__n_sub_key:__2_
lea rcx, [rsp + 0x48]
call fcn.1400033fc
nop
movdqa xmm0, xmmword [0x140093d30]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], di
lea rdx, str.Publishing
lea rcx, [rsp + 0x68]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x30]
call fcn.1400386d8
mov rbx, rax
movdqa xmm0, xmmword [0x140093d40]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], dil
lea r9, str.AppV::Client::Publishing::Configurations::ServerRegRecord::RemoveServer
mov edx, 0x47
lea rcx, [rbp - 0x78]
call fcn.1400389a8
mov dword [rbp - 0x58], 0x98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140009290
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000e2dc
mov r9, rbx
lea r8, [rsp + 0x68]
mov edx, 1
lea rcx, [rbp - 0x78]
call fcn.140038838
nop
lea rcx, [rbp - 0x78]
call fcn.140006108
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x20]
call fcn.140003388
nop
lea rcx, [rsp + 0x68]
call fcn.140003388
nop
lea rcx, [rsp + 0x48]
call fcn.140003388
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 0x14005a2b4
inc rax
jmp 0x14005a2bb
lea rax, str.admin_appman_appvclientpublishingconfigurations_serverregrecord.cpp
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
mov ebx, dword [rsp + 0x30]
or rbx, rax
movabs rax, 0x132700000000
or rbx, rax
lea rcx, [rbp - 0x50]
call fcn.140003388
nop
lea rcx, [rbp + 0x28]
call fcn.140003388
lea rcx, [rbp + 8]
call fcn.140003388
mov rax, rbx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140060290
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret