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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x120
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rcx
xor esi, esi
cmp qword [rcx + 0x18], rsi
je 0x14003e73a
lea r12, vtable.ATL::CAccessToken.0
mov qword [rsp + 0x20], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rsi
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14002d290
test al, al
je 0x14003e96a
lea rax, [rbx + 8]
cmp qword [rax + 0x18], 7
jbe 0x14003e568
mov rax, qword [rax]
lea rdx, [0x14011a1d0]
test rax, rax
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x14003e58a
lea rcx, [rsp + 0x70]
call fcn.140005d34
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x70]
call fcn.14006ed5c
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov r15d, 0x1000
mov rax, qword [rbp - 0x58]
cmp rax, 7
jbe 0x14003e624
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rdx, rcx
cmp rax, r15
jb 0x14003e61e
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14003e61e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movdqa xmm0, xmmword [0x140137c10]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], si
mov rax, qword [rbp - 0x78]
cmp rax, 7
jbe 0x14003e672
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rdx, rcx
cmp rax, r15
jb 0x14003e66c
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14003e66c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movdqa xmm0, xmmword [0x140137c10]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14003e763
mov rax, qword [rsp + 0x68]
cmp rax, 7
jbe 0x14003e6de
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x50]
cmp rax, r15
mov rdx, rcx
jb 0x14003e6d8
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14003e963
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movdqa xmm0, xmmword [0x140137c10]
mov word [rsp + 0x50], si
movdqu xmmword [rsp + 0x60], xmm0
mov rdx, qword [rsp + 0x30]
test rdx, rdx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x20], r12
je 0x14003e71a
test rcx, rcx
je 0x14003e715
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rsi
test rcx, rcx
je 0x14003e72a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], rsi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003e73a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400e4b70
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003e6a3
lea rdx, str.AppV::Integration::UnpublishPackageLink::Unpublish
lea rcx, [rbp - 0x50]
call fcn.14005b990
mov dword [rbp - 0x30], 0xf6
call fcn.140014840
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov r8d, 0x2f
lea rdx, str.Failed_to_remove_package_link__1_._Error:__2_
lea rcx, [rbp - 0x70]
call fcn.140005d34
nop
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x28]
call fcn.14005b6d0
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400149dc
mov rdi, rax
mov edx, 0x5c
lea rcx, str.src_appvisvclientintegrationintegration_commands.cpp
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x14003e814
inc rax
jmp 0x14003e81b
lea rax, str.src_appvisvclientintegrationintegration_commands.cpp
mov rdx, rax
lea rcx, [0x1401712f0]
call fcn.140005a68
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
or rcx, rbx
movabs rax, 0x1e2100000000
or rcx, rax
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14005bca0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, VariantTimeToDosDateTime
lea rdx, [0x14010fc40]
lea rcx, [rsp + 0x70]
call fcn.140005d34
nop
mov r9, rbx
lea r8, [rsp + 0x70]
mov edx, 1
lea rcx, [rbp - 0x50]
call fcn.14005b908
nop
mov rax, qword [rbp - 0x78]
cmp rax, 7
jbe 0x14003e8db
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rdx, rcx
cmp rax, r15
jb 0x14003e8d4
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14003e8d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbp - 0x28]
call fcn.14005bba8
mov rax, qword [rbp - 0x58]
cmp rax, 7
jbe 0x14003e923
nop
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rdx, rcx
cmp rax, r15
jb 0x14003e91c
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14003e91c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [rbp - 0x38]
cmp rax, 0xf
jbe 0x14003e6a3
inc rax
mov rcx, qword [rbp - 0x50]
mov rdx, rcx
cmp rax, r15
jb 0x14003e958
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14003e958
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14003e6a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003c528
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
or rdx, rbx
movabs rax, 0x1d2100000000
or rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140008d38
lea rdx, [0x140146bc8]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3