Function at 0x14008a740
Capabilities:
Check if file exists
Create directory
Get common file path
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r15, rcx
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.14008a110
movzx r13d, al
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x14008aa1e
xor r12d, r12d
mov word [rsp + 0x60], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call sub.MSVCR100.dll_memset
xor r9d, r9d
lea r8d, [rsi + 0x24]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
setne r13b
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x60]
lea rax, [rsp + 0x60]
test rax, 0xffffffffffff0000
jne 0x14008a853
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14008a94f
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001f70
jmp 0x14008a94f
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14008a8cc
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14008a94f
cmp dword [rdx + 0x10], eax
jge 0x14008a89f
cmp dword [rbx - 0xc], eax
jge 0x14008a892
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x14008a94f
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008a8b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
jmp 0x14008a94f
mov r14d, dword [rbx - 0x10]
lea r12, [rsp + 0x60]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x14008a8ea
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14008a90c
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001c20
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14008a931
lea r8, [rbx + r12*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14008a93c
lea r8, [rsp + 0x60]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x14008aa13
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r14 + rbx], ax
lea r8, [0x1400e6148]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140002ce0
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 3
setne dil
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008a996
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test dil, dil
je 0x14008a9dd
lea r8, str.Sony_CorporationVAIO_Update
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140002ce0
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008a9ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14008a9ed
xor r13b, r13b
lea rcx, str.CUpdateProcessFile::OpenProcessFile__Create_folder_error
call fcn.1400191f0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14008aa0c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x38]
jmp 0x14008aa1e
mov ecx, 0x80070057
call fcn.140001000
nop
test r13b, r13b
je 0x14008aa63
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov r9d, 3
mov r8d, 0xc0000000
mov rdx, rdi
mov rcx, qword [r15 + 0x48]
call fcn.14003fc20
test eax, eax
jne 0x14008aa60
xor r13b, r13b
lea rcx, str.CUpdateProcessFile::OpenProcessFile___Open_File_exception
call fcn.1400191f0
jmp 0x14008aa63
mov r13b, 1
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14008aa7b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, r13b
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret