Function at 0x14004f120
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r15, rcx
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x30], rsi
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov word [rbp - 0x80], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x7e]
call sub.MSVCR100.dll_memset
xor r9d, r9d
lea r8d, [r14 + 0x23]
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
setne al
or r12, 0xffffffffffffffff
test al, al
je 0x14004f4c3
xor eax, eax
mov rcx, r12
lea rdi, [rbp - 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14004f295
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14004f319
cmp dword [rdx + 0x10], eax
jge 0x14004f262
cmp dword [rbx - 0xc], eax
jge 0x14004f255
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x14004f319
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004f279
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
mov rsi, qword [rsp + 0x30]
jmp 0x14004f319
mov r14d, dword [rbx - 0x10]
lea r13, [rbp - 0x80]
sub r13, rbx
sar r13, 1
test ecx, ecx
jns 0x14004f2b2
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 0x14004f2d4
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 r13, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14004f2f9
lea r8, [rbx + r13*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14004f303
lea r8, [rbp - 0x80]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x14004f4b8
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r14 + rbx], ax
xor r14d, r14d
mov r8d, Ordinal_32
lea rdx, str.Sony_CorporationVAIO_Update
lea rcx, [rsp + 0x20]
call fcn.140003c10
mov rdx, qword [rsp + 0x20]
lea rdi, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rdi, rsi
je 0x14004f38e
cmp dword [rsi + 0x10], 0
jl 0x14004f380
mov rax, qword [rsi]
cmp qword [rdi], rax
jne 0x14004f380
mov rcx, rdi
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14004f375
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x14004f38e
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140001e80
lea r8, str.History.dat
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
cmp rcx, rdi
je 0x14004f3fb
cmp dword [rdi + 0x10], 0
jl 0x14004f3ec
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14004f3ec
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14004f3e1
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x14004f3fb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.140001e80
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004f41b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, str.History_V2.0.dat
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x28]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14004f491
cmp dword [rdi + 0x10], 0
jl 0x14004f482
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14004f482
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14004f477
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x28], rax
jmp 0x14004f491
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x28]
call fcn.140001e80
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004f4b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x20]
jmp 0x14004f4c3
mov ecx, 0x80070057
call fcn.140001000
int3
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004f4ed
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.14004e070
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004f519
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.14004e810
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, str.History_V3.0.dat
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x38]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14004f58f
cmp dword [rdi + 0x10], 0
jl 0x14004f580
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14004f580
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14004f575
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x14004f58f
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140001e80
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004f5af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edi, r14d
mov r13, qword [rsp + 0x60]
mov rcx, r13
mov rbx, qword [rsp + 0x58]
sub rcx, rbx
movabs rax, 0x2e8ba2e8ba2e8ba3
imul rcx
mov rsi, rdx
sar rsi, 4
mov rax, rsi
shr rax, 0x3f
add rsi, rax
je 0x14004f60f
mov rax, r14
nop word [rax + rax]
imul rax, rax, 0x58
lea r8, [rbx + rax]
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.14004dc90
inc edi
movsxd rax, edi
cmp rax, rsi
jb 0x14004f5f0
test rbx, rbx
je 0x14004f66a
cmp rbx, r13
je 0x14004f661
lea rdi, [rbx + 0x30]
nop dword [rax]
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x14004f632
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov qword [rdi - 8], r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004f642
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov qword [rdi], r14
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14004f654
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov qword [rdi + 8], r14
add rdi, 0x58
lea rax, [rdi - 0x30]
cmp rax, r13
jne 0x14004f620
mov rcx, rbx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004f68b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004f6ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004f6cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14004f6ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret