Function at 0x14001e5f0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401d2800]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov qword [rsp + 0x38], r9
mov r10, rcx
mov qword [rsp + 0x40], r8
mov byte [rsp + 0x20], dl
test r9, r9
je 0x14001e632
mov byte [r9], 0
xor r15d, r15d
lea rax, [rsp + 0x50]
mov esi, 0x104
mov qword [r8], r15
mov edx, esi
lea rcx, [rsp + 0x50]
sub r10, rax
nop dword [rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001e673
movzx eax, word [rcx + r10]
test ax, ax
je 0x14001e673
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001e650
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov rcx, rsi
mov word [rax], r15w
lea rax, [rsp + 0x50]
nop word [rax + rax]
cmp word [rax], r15w
je 0x14001e6a0
add rax, 2
sub rcx, 1
jne 0x14001e690
mov rax, rsi
mov r14d, 0x7ffffffe
sub rax, rcx
test rcx, rcx
cmove rax, r15
je 0x14001e703
mov rdx, rsi
lea rcx, [rsp + 0x50]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x14001e6f4
lea r9, [0x140139778]
mov eax, r14d
sub r9, rcx
test rax, rax
je 0x14001e6f4
movzx r8d, word [rcx + r9]
test r8w, r8w
je 0x14001e6f4
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x14001e6d3
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
mov qword [rsp + 0x2b0], rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x278], r12
xor edx, edx
mov ecx, 0x1f0003
mov qword [rsp + 0x270], r13
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14001e764
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14001ea27
mov rcx, qword [rbp + 0x1a8]
lea r8, [0x140139728]
mov edx, reloc.OLEAUT32.dll_CreateErrorInfo
call fcn.14001e2d0
mov r15d, eax
jmp 0x14001ea27
xor edx, edx
mov dword [rsp + 0x28], r15d
mov rcx, rdi
mov r13d, r15d
mov r12d, r15d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14001e789
mov edx, 0x95
jmp 0x14001e865
test eax, eax
je 0x14001e79e
cmp eax, 0x102
je 0x14001e79e
mov edx, 0x96
jmp 0x14001e9ee
mov dword [rsp + 0x24], r15d
mov edx, 1
mov rcx, rdi
test eax, eax
jne 0x14001e7fb
lea r8, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14001e7c8
mov edx, 0x9e
jmp 0x14001e865
inc dword [rsp + 0x24]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14001e7f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
je 0x14001e891
mov edx, 0xa3
jmp 0x14001e9ee
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14001e816
mov edx, 0xad
jmp 0x14001e865
cmp dword [rsp + 0x30], r12d
je 0x14001e827
mov edx, 0xae
jmp 0x14001e9ee
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14001e9e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
jne 0x14001e9e9
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14001e883
mov edx, SystemTimeToVariantTime
mov rcx, qword [rbp + 0x1a8]
lea r8, [0x140139728]
call fcn.14001e2d0
mov ebx, eax
test eax, eax
jns 0x14001e896
jmp 0x14001ea09
test eax, eax
je 0x14001e891
mov edx, SystemTimeToVariantTime
jmp 0x14001e9ee
mov r13d, dword [rsp + 0x24]
cmp byte [rsp + 0x20], r12b
je 0x14001e9c2
mov rcx, rsi
lea rax, [rsp + 0x50]
nop dword [rax]
cmp word [rax], r12w
je 0x14001e8c0
add rax, 2
sub rcx, 1
jne 0x14001e8b0
mov rax, rsi
sub rax, rcx
test rcx, rcx
cmove rax, r15
je 0x14001e914
lea rdx, [rsp + 0x50]
lea rdx, [rdx + rax*2]
sub rsi, rax
je 0x14001e905
lea rcx, [0x140139780]
sub rcx, rdx
test r14, r14
je 0x14001e905
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14001e905
mov word [rdx], ax
dec r14
add rdx, 2
sub rsi, 1
jne 0x14001e8e7
test rsi, rsi
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r15w
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
xor edx, edx
lea rcx, [rsp + 0x30]
mov rbx, rax
mov qword [rsp + 0x30], rax
call fcn.140011760
test al, al
je 0x14001e95a
mov rcx, qword [rbp + 0x1a8]
lea r8, [0x140139728]
mov edx, 0xd5
call fcn.14001e2d0
mov esi, eax
jmp 0x14001e988
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14001db40
mov esi, eax
test eax, eax
jns 0x14001e9a7
mov rcx, qword [rbp + 0x1a8]
lea r8, [0x140139728]
mov r9d, eax
mov edx, 0xd7
call fcn.14001e300
test rbx, rbx
je 0x14001ea2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001ea8d
jmp 0x14001ea2f
test rbx, rbx
je 0x14001e9bd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001eaa6
mov r12d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
movsxd rcx, r12d
shl rcx, 0x1f
movsxd rax, r13d
test rdx, rdx
je 0x14001e9d9
mov byte [rdx], 1
or rax, rcx
mov esi, r15d
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x14001ea2f
mov edx, 0xb1
mov rcx, qword [rbp + 0x1a8]
lea r8, [0x140139728]
mov ebx, 0x8000ffff
mov r9d, ebx
call fcn.14001e300
mov rcx, qword [rbp + 0x1a8]
lea r8, [0x140139728]
mov r9d, ebx
mov edx, 0xcf
call fcn.14001e300
mov r15d, ebx
mov esi, r15d
test rdi, rdi
je 0x14001ea3c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001ea74
mov r13, qword [rsp + 0x270]
mov eax, esi
mov r12, qword [rsp + 0x278]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14011e980
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp + 0x1a8]
lea r8, str.C:_vcpkginstalled_x64_windowsx64_windowsincludewil_resource.h
mov edx, 0x942
call fcn.14001ee30
int3
mov rcx, qword [rbp + 0x1a8]
lea r8, str.C:_vcpkginstalled_x64_windowsx64_windowsincludewil_resource.h
mov edx, 0x942
call fcn.14001ee30
int3
mov rcx, qword [rbp + 0x1a8]
lea r8, str.C:_vcpkginstalled_x64_windowsx64_windowsincludewil_resource.h
mov edx, 0x942
call fcn.14001ee30
int3