Function at 0x140024c60
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r15, rdx
mov qword [rbp - 0x80], rdx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
lea rdx, [0x1400de328]
mov rcx, r15
call fcn.140002710
mov r14d, 1
mov dword [rsp + 0x48], r14d
mov word [rbp - 0x70], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call sub.MSVCR100.dll_memset
xor r9d, r9d
lea r8d, [r12 + 0x23]
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, r14d
sete al
test al, al
je 0x140025003
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140024d5e
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x140024e56
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001f70
mov rbx, qword [rsp + 0x40]
jmp 0x140024e56
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140024dd6
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140024e56
cmp dword [rdx + 0x10], eax
jge 0x140024da9
cmp dword [rbx - 0xc], eax
jge 0x140024d9c
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140024e56
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024dbf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
jmp 0x140024e56
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x70]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x140024df3
mov ecx, 0x80070057
call fcn.140001000
int3
sub r14d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ecx
or eax, r14d
jge 0x140024e12
mov edx, ecx
lea rcx, [rsp + 0x40]
call fcn.140001c20
mov rbx, qword [rsp + 0x40]
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 0x140024e37
lea r8, [rbx + r12*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x140024e41
lea r8, [rbp - 0x70]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x140024ff8
mov dword [rbx - 0x10], edi
xor r12d, r12d
mov word [r13 + rbx], r12w
lea r8, str.Sony_CorporationVAIO_Update
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140002ce0
nop
lea r8, str.LocalUpdateInfo_V2.0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140024edb
cmp dword [rbx + 0x10], 0
jl 0x140024ecc
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140024ecc
call fcn.140001b90
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140024ec1
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x40], rax
jmp 0x140024edb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140001e80
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024efb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024f1a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140024fde
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140024fde
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140024fd4
mov r8d, esi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.140021d40
lea r8, str._Y__m__d__X
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call fcn.140023a40
nop
mov rdx, rax
mov rcx, r15
call fcn.140002250
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024fcf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140025003
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140025003
mov ecx, 0x80070057
call fcn.140001000
nop
mov rax, r15
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret