Function at 0x427a70
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469a2e
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
push eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x10c], eax
call fcn.0042aab0
mov edi, eax
mov dword [ebp - 0x110], edi
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.0042eeb0
mov esi, eax
lea eax, [ebp - 0x90]
cmp eax, esi
je 0x427b1f
cmp dword [ebp - 0x7c], 8
jb 0x427afc
push dword [ebp - 0x90]
call fcn.0044d639
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
call fcn.00409c20
cmp dword [ebp - 0xac], 8
jb 0x427b36
push dword [ebp - 0xc0]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x7c], 8
mov eax, dword [ebp - 0x90]
jae 0x427b48
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427e8f
shr eax, 4
and al, 1
je 0x427e8f
cmp dword [ebp - 0x7c], 8
mov edx, dword [ebp - 0x90]
jae 0x427b75
lea edx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x120]
call fcn.0042f590
mov esi, eax
lea eax, [ebp - 0x110]
add esp, 4
cmp eax, esi
je 0x427bb9
mov ecx, eax
call fcn.0042a870
mov ecx, dword [ebp - 0x110]
mov edi, dword [esi]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x10c]
mov eax, dword [esi + 4]
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x10c], eax
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x120]
call fcn.0042a870
push dword [ebp - 0x120]
call fcn.0044d639
mov esi, dword [edi]
add esp, 4
cmp esi, edi
je 0x427e8b
mov ebx, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push ecx
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0xf0]
call fcn.0042af00
add esp, 4
lea ecx, [esi + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.00409ad0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0xdc], 8
jb 0x427c2a
push dword [ebp - 0xf0]
call fcn.0044d639
add esp, 4
xor eax, eax
cmp dword [ebp - 0x94], 8
mov word [ebp - 0xf0], ax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
jae 0x427c5c
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x114]
push ecx
push 0
push eax
push 0
call dword [sym.imp.msi.dll_MsiGetUserInfoW]
test eax, eax
jne 0x427e66
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
lea eax, [ebp - 0x124]
push eax
push 7
push dword [ebp - 0x114]
mov dword [ebp - 0x118], 0x32
call dword [sym.imp.msi.dll_MsiUseFeatureA]
push dword [ebp - 0x114]
test eax, eax
je 0x427cb5
call ebx
jmp 0x427e66
call ebx
lea ecx, [ebp - 0x78]
call fcn.00427a10
test al, al
je 0x427e66
lea eax, [ebp - 0xa8]
push eax
mov edx, str.Deleting_old_TuneUp_patch
lea ecx, [ebp - 0xd8]
call fcn.0041a860
add esp, 4
push str._with_product_code
mov edx, eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 6
call fcn.00412310
add esp, 4
lea ecx, [ebp - 0x78]
push ecx
mov edx, eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 7
call fcn.00412310
add esp, 4
push eax
push 0
mov byte [ebp - 4], 8
call fcn.0041ea40
cmp dword [ebp - 0xf4], 8
jb 0x427d35
push dword [ebp - 0x108]
call fcn.0044d639
add esp, 4
xor eax, eax
cmp dword [ebp - 0xac], 8
mov dword [ebp - 0xf4], 7
mov dword [ebp - 0xf8], 0
mov word [ebp - 0x108], ax
jb 0x427d69
push dword [ebp - 0xc0]
call fcn.0044d639
add esp, 4
xor eax, eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0xc4], 8
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
jb 0x427da1
push dword [ebp - 0xd8]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x94], 8
mov eax, dword [ebp - 0xa8]
jae 0x427db6
lea eax, [ebp - 0xa8]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x94], 8
mov eax, dword [ebp - 0xa8]
jae 0x427dd7
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x427e66
mov edx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd8]
call fcn.0042afb0
push eax
mov edx, str.Could_not_delete_file:
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.0041ee20
add esp, 4
push eax
push 1
mov byte [ebp - 4], 0xa
call fcn.0041ea40
cmp dword [ebp - 0xac], 8
jb 0x427e32
push dword [ebp - 0xc0]
call fcn.0044d639
add esp, 4
xor eax, eax
cmp dword [ebp - 0xc4], 8
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
jb 0x427e66
push dword [ebp - 0xd8]
call fcn.0044d639
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x94], 8
jb 0x427e81
push dword [ebp - 0xa8]
call fcn.0044d639
add esp, 4
mov esi, dword [esi]
cmp esi, edi
jne 0x427be2
xor esi, esi
jmp 0x427ed1
lea eax, [ebp - 0x90]
push eax
mov edx, str.Could_not_get_installer_folder:
lea ecx, [ebp - 0xd8]
call fcn.0041a860
add esp, 4
push eax
push 1
mov byte [ebp - 4], 2
call fcn.0041ea40
cmp dword [ebp - 0xc4], 8
jb 0x427ecc
push dword [ebp - 0xd8]
call fcn.0044d639
add esp, 4
mov esi, 3
lea ecx, [ebp - 0x110]
call fcn.0042a870
push dword [ebp - 0x110]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x7c], 8
jb 0x427efe
push dword [ebp - 0x90]
call fcn.0044d639
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret