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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, r9
mov r15d, r8d
mov rdi, rdx
mov qword [rsp + 0x30], rdx
mov edx, 0x5c
mov rcx, qword [rdi]
call qword [sym.imp.MSVCR100.dll_wcsrchr]
mov rsi, rax
or rbp, 0xffffffffffffffff
test rax, rax
jne 0x1400adeb2
mov esi, ebp
jmp 0x1400adeb8
sub rsi, qword [rdi]
sar rsi, 1
xor r12d, r12d
mov word [rsp + 0x40], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call sub.MSVCR100.dll_memset
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r12 + 0x23]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400ae031
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400adf83
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400ae003
cmp dword [rdx + 0x10], eax
jge 0x1400adf56
cmp dword [rbx - 0xc], eax
jge 0x1400adf49
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x1400ae003
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400adf6c
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 + 0x20], rax
jmp 0x1400ae003
mov r13d, dword [rbx - 0x10]
lea r12, [rsp + 0x40]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x1400adfa1
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 0x1400adfc3
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x1400adfe8
lea r8, [rbx + r12*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x1400adff3
lea r8, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x1400ae026
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r13 + rbx], ax
mov r8d, Ordinal_32
lea rdx, str.Sony_CorporationVAIO_Update
lea rcx, [rsp + 0x20]
call fcn.140003c10
mov rbx, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
jmp 0x1400ae031
mov ecx, 0x80070057
call fcn.140001000
int3
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400ae049
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp r15d, 5
jne 0x1400ae05c
lea r8d, [r15 + 7]
lea rdx, str.Icon_Files_
jmp 0x1400ae06d
cmp r15d, 6
jne 0x1400ae07c
lea r8d, [r15 + 5]
lea rdx, str.XML_Files_
lea rcx, [rsp + 0x20]
call fcn.140003c10
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400ae094
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, 0xffffffff
je 0x1400ae0ea
mov rax, qword [rdi]
mov r8d, dword [rax - 0x10]
sub r8d, esi
dec r8d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140001c80
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.140003c10
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400ae0e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x20]
lea rsi, [rbx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rsi, rdi
je 0x1400ae145
cmp dword [rdi + 0x10], 0
jl 0x1400ae135
mov rax, qword [rdi]
cmp qword [rsi], rax
jne 0x1400ae135
mov rcx, rsi
call fcn.140001b90
mov rbx, rax
mov ecx, ebp
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400ae12c
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rbx + 0x18]
mov qword [r14], rax
jmp 0x1400ae145
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, r14
call fcn.140001e80
nop
lock xadd dword [rsi + 0x10], ebp
dec ebp
test ebp, ebp
jg 0x1400ae15c
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400cafa0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret