Function at 0x14004300c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
cmp qword [rcx + 0x10], r15
je 0x140043133
cmp qword [rcx + 0x18], 8
jb 0x140043059
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x1400431a5
mov qword [rbp - 0x49], r15
mov edi, 7
mov qword [rbp - 0x41], rdi
mov word [rbp - 0x59], r15w
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], rdi
mov word [rbp - 0x79], r15w
lea r8, [rbp - 0x79]
mov dl, 1
mov rcx, rbx
call fcn.1400600f4
shr rax, 0x27
not eax
test al, 1
jne 0x140043159
lea r8, [rbp - 0x59]
mov dl, 1
mov rcx, r14
call fcn.1400600f4
shr rax, 0x27
not eax
test al, 1
jne 0x140043159
lea rdx, [rbp - 0x79]
cmp qword [rbp - 0x61], 8
cmovae rdx, qword [rbp - 0x79]
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140043159
mov rdx, qword [rbp - 0x61]
cmp rdx, 8
jb 0x14004310b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
call fcn.14000c220
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], rdi
mov word [rbp - 0x79], r15w
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x140043133
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
call fcn.14000c220
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400d24e0
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.140042d74
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 8
jb 0x14004317d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
call fcn.14000c220
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], rdi
mov word [rbp - 0x79], r15w
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x1400431a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
call fcn.14000c220
mov rcx, rbx
call fcn.14005fa80
mov rsi, rax
mov rcx, rax
shr rcx, 0x27
not ecx
test cl, 1
jne 0x1400432f0
mov rdx, r14
mov rcx, rbx
call fcn.140041fb4
mov edi, eax
test eax, eax
jne 0x1400431da
mov al, 1
jmp 0x140043135
call fcn.140041f68
mov rsi, rax
or rsi, rdi
movabs rax, 0x142100000000
or rsi, rax
mov r8d, SHCreateDirectory
lea rdx, str.AppV::Integration::PublishPackageLink::Create
lea rcx, [rbp - 1]
call fcn.14005e0a8
mov rdi, rax
call fcn.14001e910
lea rdx, str.Failed_to_publish_package_link__1__with_target__2_._Error:__3_
lea rcx, [rbp - 0x79]
call fcn.140009614
nop
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x39]
call fcn.14005e070
mov r8, rax
mov rcx, rbx
call fcn.140009534
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov rcx, r8
call fcn.14001ea9c
mov r8, rax
mov rcx, r14
call fcn.140009534
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, r8
call fcn.14001ea9c
mov r8, rax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.14005ed78
mov rdx, rax
mov rcx, r8
call fcn.14005e72c
mov rbx, rax
lea rdx, [0x14010bbd8]
lea rcx, [rbp - 0x59]
call fcn.140009614
nop
mov r9, rbx
lea r8, [rbp - 0x59]
mov edx, 1
mov rcx, rdi
call fcn.14005e200
nop
lea rcx, [rbp - 0x59]
call fcn.1400095d0
nop
lea rcx, [rbp - 0x39]
call fcn.14005e65c
nop
lea rcx, [rbp - 0x79]
call fcn.1400095d0
nop
lea rcx, [rbp - 1]
call fcn.1400096d8
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.14000df28
lea rdx, [0x14016b5e8]
lea rcx, [rbp - 0x39]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov r8d, 0x98
lea rdx, str.AppV::Integration::PublishPackageLink::Create
lea rcx, [rbp - 1]
call fcn.14005e0a8
mov rdi, rax
call fcn.14001e910
lea rdx, str.Failed_to_publish_package_link__1__with_target__2_._Error:__3_
lea rcx, [rbp - 0x79]
call fcn.140009614
nop
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x39]
call fcn.14005e070
mov r8, rax
mov rcx, rbx
call fcn.140009534
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, r8
call fcn.14001ea9c
mov r8, rax
mov rcx, r14
call fcn.140009534
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov rcx, r8
call fcn.14001ea9c
mov r8, rax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.14005ed78
mov rdx, rax
mov rcx, r8
call fcn.14005e72c
mov rbx, rax
lea rdx, [0x14010bbd8]
lea rcx, [rbp - 0x59]
call fcn.140009614
nop
mov r9, rbx
lea r8, [rbp - 0x59]
mov edx, 1
mov rcx, rdi
call fcn.14005e200
nop
lea rcx, [rbp - 0x59]
call fcn.1400095d0
nop
lea rcx, [rbp - 0x39]
call fcn.14005e65c
nop
lea rcx, [rbp - 0x79]
call fcn.1400095d0
nop
lea rcx, [rbp - 1]
call fcn.1400096d8
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.14000df28
lea rdx, [0x14016b5e8]
lea rcx, [rbp - 0x39]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3