Function at 0x413aa0
Capabilities:
Check if file exists
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4446b8
mov eax, dword fs:[0]
push eax
sub esp, 0x854
mov eax, dword [0x467060]
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
mov ebx, ecx
mov dword [ebp - 0x85c], ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 1
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, 0x469ad4
test eax, eax
jne 0x413bc4
mov eax, dword [0x469aec]
test al, 1
jne 0x413ba3
or eax, 1
mov dword [0x469aec], eax
mov dword [ebp - 4], 0
call fcn.00432790
push 0x4486b0
call fcn.00441527
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x469ae8], 8
mov eax, esi
cmovae eax, dword [0x469ad4]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x413c27
mov eax, dword [0x469aec]
test al, 1
jne 0x413c0e
or eax, 1
mov dword [0x469aec], eax
mov dword [ebp - 4], 1
call fcn.00432790
push 0x4486b0
call fcn.00441527
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x469ae8], 8
lea eax, [ebp - 0x218]
cmovae esi, dword [0x469ad4]
push esi
push eax
push eax
call edi
mov esi, dword [ebx + 0x60]
cmp esi, dword [ebx + 0x64]
je 0x413daf
mov edi, dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x413c4a
mov eax, dword [esi]
jmp 0x413c4c
mov eax, esi
push eax
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
mov dword [ebp - 4], 2
cmp dword [ebx + 0x14], 8
jb 0x413c68
mov ebx, dword [ebx]
push ebx
mov ebx, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
push str.__INSTDIR_
lea ecx, [ebp - 0x834]
call ebx
lea eax, [ebp - 0x628]
push eax
push str.__DEFUALT_USER_
lea ecx, [ebp - 0x834]
call ebx
lea eax, [ebp - 0x218]
push eax
push str.__CURRENT_USER_
lea ecx, [ebp - 0x834]
call ebx
lea eax, [ebp - 0x830]
push eax
push str.__DESKTEMP_
lea ecx, [ebp - 0x834]
call ebx
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::GetLength_void_const]
push eax
lea ecx, [ebp - 0x834]
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
mov ebx, eax
push 0x44c110
push ebx
call dword [sym.imp.MSVCR110.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x413d6d
mov eax, dword [0x46a8ec]
test al, 1
jne 0x413d08
or eax, 1
push 0x448710
mov dword [0x46a8ec], eax
call fcn.00441527
add esp, 4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413d59
lea eax, [ebp - 0x858]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x413d41
mov eax, dword [ebp - 0x858]
and eax, 0xffffff7f
test al, 1
je 0x413d41
xor eax, 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x413d59
push ebx
push str.CUninstalltools::DeleteConfigFile__ForceRemoveFile_succeed:_path___s_
call edi
add esp, 8
jmp 0x413d8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CUninstalltools::DeleteConfigFile__ForceRemoveFile_failed:_path___s__err___d_
call edi
add esp, 0xc
jmp 0x413d8a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push ebx
mov edi, eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
push ebx
call fcn.00412970
mov edi, dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
lea ecx, [ebp - 0x834]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
mov ebx, dword [ebp - 0x85c]
add esi, 0x18
cmp esi, dword [ebx + 0x64]
jne 0x413c40
mov al, 1
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.004413e6
mov esp, ebp
pop ebp
ret