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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
xor edi, edi
cmp qword [rcx + 0x10], rdi
je 0x140042fba
cmp qword [rcx + 0x18], 8
jb 0x140042dc2
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x140042fba
lea rax, vtable.AppV::Client::Deimpersonator.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
mov byte [rbp - 0x79], dil
lea rcx, [rsp + 0x30]
call fcn.1400c1ac0
mov rcx, rax
shr rcx, 0x27
not ecx
test cl, 1
jne 0x140042fe6
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140042e14
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140042fa8
lea r8d, [rax + 0x77]
lea rdx, str.AppV::Integration::PublishPackageLink::Remove
lea rcx, [rbp - 0x29]
call fcn.14005e0a8
mov r14, rax
call fcn.14001e910
mov qword [rbp - 0x39], rdi
mov r15d, 7
mov qword [rbp - 0x31], r15
mov word [rbp - 0x49], di
lea rdx, str.Failed_to_remove_package_link__1_._Error:__2_
lea rcx, [rbp - 0x49]
call fcn.14000954c
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp - 1]
call fcn.14005e070
nop
cmp qword [rbx + 0x18], 8
jb 0x140042e7f
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rbx
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 0x140042eb6
inc rax
jmp 0x140042ebd
lea rax, str.admin_appman_appvclientintegrationintegration_commands.cpp
mov rdx, rax
lea rcx, [0x14017bb60]
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, 0xe2100000000
or rcx, rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14005e72c
mov rbx, rax
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x51], r15
mov word [rbp - 0x69], di
lea rdx, [0x14010bbd8]
lea rcx, [rbp - 0x69]
call fcn.14000954c
nop
mov r9, rbx
lea r8, [rbp - 0x69]
mov edx, 1
mov rcx, r14
call fcn.14005e200
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x140042f53
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
call fcn.14000c220
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x51], r15
mov word [rbp - 0x69], di
lea rcx, [rbp - 1]
call fcn.14005e65c
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140042f84
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
call fcn.14000c220
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], r15
mov word [rbp - 0x49], di
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x140042fab
inc rdx
mov rcx, qword [rbp - 0x29]
call fcn.14000c220
jmp 0x140042fab
mov dil, 1
lea rcx, [rsp + 0x30]
call fcn.1400c17ec
mov al, dil
jmp 0x140042fbc
xor al, al
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400d24e0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14000df28
lea rdx, [0x14016b5e8]
lea rcx, [rbp - 1]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3