Function at 0x413510
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4446ec
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
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 - 0x244], ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x469f00]
add esp, 0xc
test al, 1
jne 0x413582
or eax, 1
push 0x4486c0
mov dword [0x469f00], eax
call fcn.00441527
add esp, 4
sub esp, 8
lea eax, [ebp - 0x218]
push eax
call fcn.00433200
mov esi, dword [ebx + 0x48]
cmp esi, dword [ebx + 0x4c]
je 0x4136ea
mov edi, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
cmp dword [esi + 0x14], 8
jb 0x4135ad
mov eax, dword [esi]
jmp 0x4135af
mov eax, esi
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x4135cd
mov eax, dword [ebx]
jmp 0x4135cf
mov eax, ebx
push eax
push str.__INSTDIR_
lea ecx, [ebp - 0x21c]
call edi
lea eax, [ebp - 0x218]
push eax
push str.__DESKTEMP_
lea ecx, [ebp - 0x21c]
call edi
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::GetLength_void_const]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
mov edi, eax
push 0x44c110
push edi
call dword [sym.imp.MSVCR110.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x4136a8
mov eax, dword [0x46a8ec]
test al, 1
jne 0x413641
or eax, 1
push 0x448710
mov dword [0x46a8ec], eax
call fcn.00441527
add esp, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413685
lea eax, [ebp - 0x240]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x41367a
mov eax, dword [ebp - 0x240]
and eax, 0xffffff7f
test al, 1
je 0x41367a
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4136c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.CUninstalltools::DeleteFileFromVector__ForceRemoveFile_failed:_path___s__err___d_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4136c5
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push edi
mov ebx, eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
push edi
call fcn.00412970
mov ebx, dword [ebp - 0x244]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
mov edi, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
add esi, 0x18
cmp esi, dword [ebx + 0x4c]
jne 0x4135a3
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