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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4699ee
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.0042aa70
mov edi, eax
mov dword [ebp - 0x110], edi
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.0042ee70
mov esi, eax
lea eax, [ebp - 0x90]
cmp eax, esi
je 0x427aef
cmp dword [ebp - 0x7c], 8
jb 0x427acc
push dword [ebp - 0x90]
call fcn.0044d5f9
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.00409c10
cmp dword [ebp - 0xac], 8
jb 0x427b06
push dword [ebp - 0xc0]
call fcn.0044d5f9
add esp, 4
cmp dword [ebp - 0x7c], 8
mov eax, dword [ebp - 0x90]
jae 0x427b18
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427e5f
shr eax, 4
and al, 1
je 0x427e5f
cmp dword [ebp - 0x7c], 8
mov edx, dword [ebp - 0x90]
jae 0x427b45
lea edx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x120]
call fcn.0042f550
mov esi, eax
lea eax, [ebp - 0x110]
add esp, 4
cmp eax, esi
je 0x427b89
mov ecx, eax
call fcn.0042a830
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.0042a830
push dword [ebp - 0x120]
call fcn.0044d5f9
mov esi, dword [edi]
add esp, 4
cmp esi, edi
je 0x427e5b
mov ebx, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push ecx
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0xf0]
call fcn.0042aec0
add esp, 4
lea ecx, [esi + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.00409ac0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0xdc], 8
jb 0x427bfa
push dword [ebp - 0xf0]
call fcn.0044d5f9
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 0x427c2c
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 0x427e36
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 0x427c85
call ebx
jmp 0x427e36
call ebx
lea ecx, [ebp - 0x78]
call fcn.004279e0
test al, al
je 0x427e36
lea eax, [ebp - 0xa8]
push eax
mov edx, str.Deleting_old_TuneUp_patch
lea ecx, [ebp - 0xd8]
call fcn.0041a820
add esp, 4
push str._with_product_code
mov edx, eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 6
call fcn.004122e0
add esp, 4
lea ecx, [ebp - 0x78]
push ecx
mov edx, eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 7
call fcn.004122e0
add esp, 4
push eax
push 0
mov byte [ebp - 4], 8
call fcn.0041ea00
cmp dword [ebp - 0xf4], 8
jb 0x427d05
push dword [ebp - 0x108]
call fcn.0044d5f9
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 0x427d39
push dword [ebp - 0xc0]
call fcn.0044d5f9
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 0x427d71
push dword [ebp - 0xd8]
call fcn.0044d5f9
add esp, 4
cmp dword [ebp - 0x94], 8
mov eax, dword [ebp - 0xa8]
jae 0x427d86
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 0x427da7
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x427e36
mov edx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd8]
call fcn.0042af70
push eax
mov edx, str.Could_not_delete_file:
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.0041ede0
add esp, 4
push eax
push 1
mov byte [ebp - 4], 0xa
call fcn.0041ea00
cmp dword [ebp - 0xac], 8
jb 0x427e02
push dword [ebp - 0xc0]
call fcn.0044d5f9
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 0x427e36
push dword [ebp - 0xd8]
call fcn.0044d5f9
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x94], 8
jb 0x427e51
push dword [ebp - 0xa8]
call fcn.0044d5f9
add esp, 4
mov esi, dword [esi]
cmp esi, edi
jne 0x427bb2
xor esi, esi
jmp 0x427ea1
lea eax, [ebp - 0x90]
push eax
mov edx, str.Could_not_get_installer_folder:
lea ecx, [ebp - 0xd8]
call fcn.0041a820
add esp, 4
push eax
push 1
mov byte [ebp - 4], 2
call fcn.0041ea00
cmp dword [ebp - 0xc4], 8
jb 0x427e9c
push dword [ebp - 0xd8]
call fcn.0044d5f9
add esp, 4
mov esi, 3
lea ecx, [ebp - 0x110]
call fcn.0042a830
push dword [ebp - 0x110]
call fcn.0044d5f9
add esp, 4
cmp dword [ebp - 0x7c], 8
jb 0x427ece
push dword [ebp - 0x90]
call fcn.0044d5f9
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.0044c2ed
mov esp, ebp
pop ebp
ret