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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rdi, rcx
cmp qword [rcx + 0x10], 0
je 0x14006265c
cmp qword [rcx + 0x18], 8
jb 0x14006237a
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14006265c
lea rax, vtable.AppV::Client::Personation.0
mov qword [rsp + 0x50], rax
lea rax, vtable.AppV::Client::Deimpersonator.0
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x60], bl
lea rcx, [rsp + 0x50]
call fcn.1400a4310
mov rcx, rax
call fcn.140040650
cmp qword [rdi + 0x18], 8
jb 0x1400623c9
mov rcx, qword [rdi]
jmp 0x1400623cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14006264b
cmp qword [rdi + 0x18], 8
jb 0x1400623e4
mov rdi, qword [rdi]
mov qword [rsp + 0x68], rdi
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
mov r8d, MsiGetFeatureCostA
lea rdx, str.Failed_to_remove_package_link__1_._Error:__2_
lea rcx, [rbp - 0x60]
call fcn.140007d00
nop
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
movzx eax, word [0x14015e140]
neg ax
sbb r8, r8
and r8d, 0xb
lea rdx, [0x14015e140]
lea rcx, [rbp - 0x80]
call fcn.140007d00
nop
call fcn.140033ad0
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x18]
call fcn.14008e6f0
mov rsi, rax
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rbx
mov byte [rbp - 0x40], 0
mov r8d, MsiGetFeatureCostA
lea rdx, str.AppV::Integration::PublishPackageLink::Remove
lea rcx, [rbp - 0x40]
call fcn.1400083b0
nop
mov dword [rbp - 0x20], 0x77
mov edx, MsiPreviewDialogW
lea rcx, str...integration_commands.cpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x1400624b9
inc rax
jmp 0x1400624c0
lea rax, str...integration_commands.cpp
mov rdx, rax
lea rcx, [0x140209428]
call fcn.140005ff0
mov rdi, rax
shl rdi, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
or rcx, rdi
movabs rax, 0xe2100000000
or rcx, rax
mov qword [rsp + 0x70], rcx
mov r8d, dword [rsi + 8]
lea eax, [r8 + 1]
mov dword [rsi + 8], eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14008df30
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14006253e
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov rdx, rbx
call fcn.14003b4a0
nop
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rbx
test rcx, rcx
je 0x140062561
nop dword [rax]
mov rdi, qword [rcx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, rdi
test rdi, rdi
jne 0x140062550
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14008db00
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14008ded0
nop
mov r9, rax
lea r8, [rbp - 0x80]
mov edx, 1
lea rcx, [rbp - 0x40]
call fcn.14008e7d0
nop
cmp qword [rsp + 0x48], 8
jb 0x1400625a5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp qword [rbp - 0x28], 0x10
jb 0x1400625c9
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rbx
mov byte [rbp - 0x40], 0
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x18], rax
cmp qword [rbp + 0x10], 8
jb 0x1400625f5
mov rcx, qword [rbp - 8]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], rbx
mov word [rbp - 8], bx
cmp qword [rbp - 0x68], 8
jb 0x140062616
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
cmp qword [rbp - 0x48], 8
jb 0x140062637
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
xor bl, bl
jmp 0x14006264d
mov bl, 1
lea rcx, [rsp + 0x50]
call fcn.1400a4140
movzx eax, bl
jmp 0x14006265e
xor al, al
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140107280
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret