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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rdi, rcx
cmp qword [rcx + 0x18], 0
je 0x14005dbec
lea r14, vtable.ATL::CAccessToken.0
mov qword [rsp + 0x20], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xor ebx, ebx
mov qword [rsp + 0x38], rbx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140014900
test al, al
jne 0x14005d7d3
lea edx, [rbx + 0x5c]
lea rcx, str...integration_commands.cpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x14005d6e9
inc rax
jmp 0x14005d6f0
lea rax, str...integration_commands.cpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
mov rdi, rax
shl rdi, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or rsi, rdi
movabs rax, 0x1e2100000000
or rsi, rax
lea rax, [0x1401442a0]
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCR120.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64__int____ptr64]
nop
lea rax, vtable.SwException.0
mov qword [rbp - 0x10], rax
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], rbx
mov dword [rbp + 0x18], ebx
mov qword [rbp + 0x20], rbx
cmp byte [0x1401e1a79], 0
je 0x14005d7aa
mov rdx, qword [0x1401e1a68]
mov rax, rdx
xor rax, rsi
movabs rcx, 0x8000000000
test rcx, rax
jne 0x14005d7aa
mov rax, rdx
xor rax, rsi
movabs rcx, 0x2000000000
test rcx, rax
jne 0x14005d7aa
mov rcx, rdx
shr rcx, 0x20
mov rax, rsi
shr rax, 0x20
xor cl, al
test cl, 0x1f
jne 0x14005d7aa
cmp esi, edx
je 0x14005d7bb
cmp byte [0x1401e1a78], 0
je 0x14005d7c2
cmp esi, dword [0x1401e1a80]
jne 0x14005d7c2
call qword [sym.imp.KERNEL32.dll_DebugBreak]
nop
lea rdx, [0x1401d19c0]
lea rcx, [rbp - 0x10]
call sub.MSVCR120.dll__CxxThrowException
int3
lea rax, [rdi + 8]
cmp qword [rax + 0x18], 8
jb 0x14005d7e1
mov rax, qword [rax]
lea rdx, [0x140144318]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
cmp word [rdx], 0
jne 0x14005d812
mov r8, rbx
jmp 0x14005d82b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14005d820
lea rcx, [rbp - 0x70]
call fcn.140007c60
nop
lea r8, [rbp - 0x70]
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x50]
call fcn.140015710
mov rdi, rax
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
cmp qword [rax + 0x18], 8
jae 0x14005d886
mov r8, qword [rax + 0x10]
inc r8
je 0x14005d8a5
add r8, r8
mov rdx, rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR120.dll_memmove]
jmp 0x14005d8a5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rdi]
mov qword [rsp + 0x70], rax
mov qword [rdi], rbx
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x80], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x78], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp qword [rbp - 0x38], 8
jb 0x14005d8d5
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
cmp qword [rbp - 0x58], 8
jb 0x14005d8f6
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005db80
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14005db80
lea edx, [rax + 0x5c]
lea rcx, str...integration_commands.cpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x14005d95c
inc rax
jmp 0x14005d963
lea rax, str...integration_commands.cpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
mov rdi, rax
shl rdi, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
or rcx, rdi
movabs rax, 0x1f2100000000
or rcx, rax
mov qword [rsp + 0x58], rcx
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
mov r8d, 0x53
lea rdx, str.UnpublishPackageLink::Unpublish_____Failed_to_remove_package_link__1_._Error:__2_
lea rcx, [rbp - 0x50]
call fcn.140007c60
nop
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
movzx eax, word [0x140143ed0]
neg ax
sbb r8, r8
and r8d, 0xb
lea rdx, [0x140143ed0]
lea rcx, [rbp - 0x30]
call fcn.140007c60
nop
call fcn.1400391f0
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x10]
call fcn.140085960
mov rsi, rax
mov r8d, dword [rax + 8]
lea ecx, [r8 + 1]
mov dword [rax + 8], ecx
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400854b0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005da72
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov rdx, rbx
call fcn.1400397e0
nop
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rbx
test rcx, rcx
je 0x14005da92
mov rdi, qword [rcx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, rdi
test rdi, rdi
jne 0x14005da81
mov r8d, dword [rsi + 8]
lea eax, [r8 + 1]
mov dword [rsi + 8], eax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400854b0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005dad8
mov qword [rbp - 0x70], rsi
lea rax, [rsp + 0x58]
mov qword [rbp - 0x68], rax
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
mov rdx, rbx
call fcn.140039570
nop
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rbx
test rcx, rcx
je 0x14005daf8
mov rdi, qword [rcx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, rdi
test rdi, rdi
jne 0x14005dae7
call fcn.1400391f0
mov rcx, rax
mov r9, rsi
lea r8, [rbp - 0x30]
mov edx, 1
call fcn.1400858b0
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 0x10], rax
cmp qword [rbp + 0x18], 8
jb 0x14005db2e
mov rcx, qword [rbp]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], rbx
mov word [rbp], bx
cmp qword [rbp - 0x18], 8
jb 0x14005db4f
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
cmp qword [rbp - 0x38], 8
jb 0x14005db70
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
cmp qword [rbp - 0x78], 8
jb 0x14005db92
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov word [rsp + 0x70], bx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], 7
mov rdx, qword [rsp + 0x30]
test rdx, rdx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x20], r14
je 0x14005dbcc
test rcx, rcx
je 0x14005dbc7
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rbx
test rcx, rcx
je 0x14005dbdc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], rbx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x38], rbx
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400f5ff0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret