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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45612c
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x47f060]
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 [0x4826e0]
add esp, 0xc
test al, 1
jne 0x41b6d2
or eax, 1
push 0x45ae80
mov dword [0x4826e0], eax
call fcn.004521b7
add esp, 4
sub esp, 8
lea eax, [ebp - 0x218]
push eax
call fcn.00444100
mov esi, dword [ebx + 0x48]
cmp esi, dword [ebx + 0x4c]
je 0x41b83a
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 0x41b6fd
mov eax, dword [esi]
jmp 0x41b6ff
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 0x41b71d
mov eax, dword [ebx]
jmp 0x41b71f
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 0x45f878
push edi
call dword [sym.imp.MSVCR110.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x41b7f8
mov eax, dword [0x483128]
test al, 1
jne 0x41b791
or eax, 1
push 0x45aee0
mov dword [0x483128], eax
call fcn.004521b7
add esp, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b7d5
lea eax, [ebp - 0x240]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x41b7ca
mov eax, dword [ebp - 0x240]
and eax, 0xffffff7f
test al, 1
je 0x41b7ca
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 0x41b815
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 0x41b815
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.0041a7b0
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 0x41b6f3
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.00452076
mov esp, ebp
pop ebp
ret