Function at 0x1400437d0
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401784a8]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rbx, rcx
xor r14d, r14d
cmp qword [rcx + 0x18], r14
je 0x140043b12
lea rax, vtable.ATL::CAccessToken.0
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r14
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140033b08
test al, al
je 0x140043b3c
lea rax, [rbx + 8]
cmp qword [rax + 0x18], 8
jb 0x140043852
mov rax, qword [rax]
lea rdx, [0x14010caf0]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x78], r14
mov r12d, 7
mov qword [rbp - 0x70], r12
mov word [rsp + 0x78], r14w
lea rcx, [rsp + 0x78]
call fcn.14000954c
nop
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x28]
call fcn.140070288
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r12
mov word [rax], r14w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400438d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
call fcn.14000c220
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r12
mov word [rbp - 0x28], r14w
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400438fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
call fcn.14000c220
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r12
mov word [rsp + 0x78], r14w
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x140043adb
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140043adb
mov r8d, 0xf7
lea rdx, str.AppV::Integration::UnpublishPackageLink::Unpublish
lea rcx, [rbp - 8]
call fcn.14005e0a8
mov rdi, rax
call fcn.14001e910
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r12
mov word [rbp - 0x48], r14w
lea rdx, str.Failed_to_remove_package_link__1_._Error:__2_
lea rcx, [rbp - 0x48]
call fcn.14000954c
nop
lea r8, [rbp - 0x48]
lea rdx, [rbp + 0x20]
call fcn.14005e070
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14001ea9c
mov rsi, rax
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appvclientintegrationintegration_commands.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x1400439e7
inc rax
jmp 0x1400439ee
lea rax, str.admin_appman_appvclientintegrationintegration_commands.cpp
mov rdx, rax
lea rcx, [0x14017bba0]
call fcn.140007964
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
or rcx, rbx
movabs rax, 0x1e2100000000
or rcx, rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14005e72c
mov rbx, rax
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r12
mov word [rbp - 0x68], r14w
lea rdx, [0x14010bbd8]
lea rcx, [rbp - 0x68]
call fcn.14000954c
nop
mov r9, rbx
lea r8, [rbp - 0x68]
mov edx, 1
mov rcx, rdi
call fcn.14005e200
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140043a85
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
call fcn.14000c220
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r12
mov word [rbp - 0x68], r14w
lea rcx, [rbp + 0x20]
call fcn.14005e65c
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140043ab7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
call fcn.14000c220
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r12
mov word [rbp - 0x48], r14w
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x140043adb
inc rdx
mov rcx, qword [rbp - 8]
call fcn.14000c220
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140043af8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
call fcn.14000c220
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r12
mov word [rsp + 0x58], r14w
lea rcx, [rsp + 0x30]
call fcn.140033a2c
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.1400d24e0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
call fcn.140041f68
nop
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
or rdx, rbx
movabs rax, 0x1d2100000000
or rdx, rax
lea rcx, [rbp + 0x20]
call fcn.14000df28
lea rdx, [0x14016b5e8]
lea rcx, [rbp + 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3