Function at 0x1400d2df8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x140137c10]
movdqu xmmword [rbp - 0x29], xmm1
xor r14d, r14d
mov word [rbp - 0x39], r14w
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea r8d, [r14 + 0x26]
lea rdx, str.ClientIntegrationIntegrationRootUser
lea rcx, [rbp - 0x59]
call fcn.140005d34
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.140058730
mov rdi, rax
mov r13d, 0x1000
mov rax, qword [rbp - 0x41]
cmp rax, 7
jbe 0x1400d2eb2
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rdx, rcx
cmp rax, r13
jb 0x1400d2eac
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400d2eac
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]
mov rax, rdi
shr rax, 0x27
not eax
test al, 1
jne 0x1400d32a8
lea rax, vtable.ATL::CAccessToken.0
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14002d290
test al, al
jne 0x1400d2f43
mov edx, 0x5c
lea rcx, str.src_appvisvclientcommonclientpackageutilities.cpp
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1400d2f09
inc rax
jmp 0x1400d2f10
lea rax, str.src_appvisvclientcommonclientpackageutilities.cpp
mov rdx, rax
lea rcx, [0x1401712f0]
call fcn.140005a68
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or rdi, rbx
movabs rax, 0x72800000000
or rdi, rax
jmp 0x1400d3253
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.1400152e4
mov r8, rax
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x79]
call fcn.14005ec9c
mov rax, qword [rbp - 1]
cmp rax, 7
jbe 0x1400d2f9e
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rdx, rcx
cmp rax, r13
jb 0x1400d2f98
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400d2f98
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 - 9], xmm0
mov word [rbp - 0x19], r14w
lea rax, [rbp - 0x79]
cmp qword [rbp - 0x61], 7
cmova rax, qword [rbp - 0x79]
lea rdx, [0x14011a1d0]
test rax, rax
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x1400d2fdf
lea rcx, [rbp - 0x59]
call fcn.140005d34
lea r8, [rbp - 0x59]
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp + 7]
call fcn.14006ed5c
mov r9, rax
cmp qword [rax + 0x18], 7
jbe 0x1400d3011
mov r9, qword [rax]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [rbp - 0x61]
ja 0x1400d3046
lea rdi, [rbp - 0x79]
cmp qword [rbp - 0x61], 7
cmova rdi, qword [rbp - 0x79]
mov qword [rbp - 0x69], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rbx], r14w
jmp 0x1400d3050
lea rcx, [rbp - 0x79]
call fcn.1400075fc
nop
mov rax, qword [rbp + 0x1f]
cmp rax, 7
jbe 0x1400d308c
lea rax, [rax*2 + 2]
mov rcx, qword [rbp + 7]
mov rdx, rcx
cmp rax, r13
jb 0x1400d3086
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400d3086
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 + 0x17], xmm0
mov word [rbp + 7], r14w
mov rax, qword [rbp - 0x41]
cmp rax, 7
jbe 0x1400d30da
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rdx, rcx
cmp rax, r13
jb 0x1400d30d4
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400d30d4
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]
lea rcx, [rbp - 0x79]
cmp qword [rbp - 0x61], 7
cmova rcx, qword [rbp - 0x79]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400d31fc
lea rcx, [rbp - 0x59]
call fcn.140019f80
lea rcx, [rbp - 0x79]
call fcn.14005d1a8
mov rdi, rax
shr rax, 0x27
not eax
test al, 1
jne 0x1400d3174
mov rdx, rsi
lea rcx, [rbp - 0x79]
call fcn.14003c568
mov ebx, eax
test eax, eax
je 0x1400d31bb
mov edx, 0x5c
lea rcx, str.src_appvisvclientcommonclientpackageutilities.cpp
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1400d3147
inc rax
jmp 0x1400d314e
lea rax, str.src_appvisvclientcommonclientpackageutilities.cpp
mov rdx, rax
lea rcx, [0x1401712f0]
call fcn.140005a68
shl rax, 0x34
mov rdi, rbx
or rdi, rax
movabs rax, 0xa2800000000
or rdi, rax
mov rdx, qword [rbp - 0x51]
test rdx, rdx
je 0x1400d3206
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rbp - 0x51]
test eax, eax
je 0x1400d3199
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400d3206
test rcx, rcx
je 0x1400d31a4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rbp - 0x51]
test rdx, rdx
je 0x1400d31fc
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rbp - 0x51]
test eax, eax
je 0x1400d31dc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400d31fc
test rcx, rcx
je 0x1400d31e7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
movabs rdi, 0x8000000000
mov rax, qword [rbp - 0x61]
cmp rax, 7
jbe 0x1400d3242
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rdx, rcx
cmp rax, r13
jb 0x1400d323c
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400d323c
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]
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], 7
mov word [rbp - 0x79], r14w
lea rax, vtable.ATL::CAccessToken.0
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test rdx, rdx
je 0x1400d3283
test rcx, rcx
je 0x1400d327e
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], r14
test rcx, rcx
je 0x1400d3293
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], r14
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400d32a3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x38], r14
mov rax, qword [rbp - 0x21]
cmp rax, 7
jbe 0x1400d32e4
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rdx, rcx
cmp rax, r13
jb 0x1400d32de
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400d32de
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]
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400e4b70
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret