Function at 0x416d40
Capabilities:
Check if file exists
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b67
mov eax, dword fs:[0]
push eax
sub esp, 0x254
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 - 0x260], ebx
push str.ignore
mov edx, ebx
lea ecx, [ebp - 0x238]
call fcn.00411480
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebx + 0x6c]
mov edx, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
mov edi, dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
cmp esi, dword [ebx + 0x70]
je 0x41704a
lea ebx, [ebx]
cmp dword [esi + 0x14], 8
jb 0x416dba
mov eax, dword [esi]
jmp 0x416dbc
mov eax, esi
push eax
lea ecx, [ebp - 0x21c]
call edx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x224], 8
mov ebx, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
push str.__INSTDIR_
lea ecx, [ebp - 0x21c]
call ebx
push 0x45ebf0
push 0x45d3c0
lea ecx, [ebp - 0x21c]
call ebx
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 ecx, [ebp - 0x21c]
push 0
call edi
mov ebx, eax
lea edx, [ebp - 0x218]
mov eax, edx
mov edi, 0x104
sub ebx, eax
lea esp, [esp]
lea ecx, [edi + 0x7ffffefa]
test ecx, ecx
je 0x416e5e
movzx eax, word [ebx + edx]
test ax, ax
je 0x416e5e
mov word [edx], ax
add edx, 2
dec edi
jne 0x416e40
jmp 0x416e62
test edi, edi
jne 0x416e65
sub edx, 2
xor eax, eax
mov word [edx], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x4826e0]
test al, 1
jne 0x416e95
or eax, 1
push 0x45ae80
mov dword [0x4826e0], eax
call fcn.004521b7
add esp, 4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416ef0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x416ef0
mov eax, dword [0x483214]
test al, 1
jne 0x416ed7
or eax, 1
push 0x45b070
mov dword [0x483214], eax
call fcn.004521b7
add esp, 4
lea eax, [ebp - 0x218]
push eax
push str.Failed_to_create_directory_:__s
push 0x483210
call fcn.0044bc70
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x416efa
mov eax, dword [esi]
jmp 0x416efc
mov eax, esi
push eax
mov eax, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
lea ecx, [ebp - 0x220]
call eax
mov ebx, dword [ebp - 0x260]
mov byte [ebp - 4], 2
cmp dword [ebx + 0x14], 8
jb 0x416f1e
mov eax, dword [ebx]
jmp 0x416f20
mov eax, ebx
mov edi, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
push eax
push str.__INSTDIR_
lea ecx, [ebp - 0x220]
call edi
push 0x45ebf0
push 0x45d3c0
lea ecx, [ebp - 0x220]
call edi
mov edi, dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
push 0
lea ecx, [ebp - 0x220]
call edi
xorps xmm0, xmm0
movq qword [ebp - 0x250], xmm0
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x258]
movq qword [ebp - 0x258], xmm0
movq qword [ebp - 0x248], xmm0
mov dword [ebp - 0x240], 0
mov ecx, 0x614
mov word [ebp - 0x23c], 0
push eax
mov word [ebp - 0x248], cx
mov dword [ebp - 0x242], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x23e], 0
mov dword [ebp - 0x254], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp - 0x220]
test eax, eax
jne 0x416ffd
lea eax, [ebp - 0x218]
push eax
push 0
call edi
push eax
push str.CInstalltools::BackUpIgnoreFiles__CopyFolder_succeed__src___s__des___s_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
jmp 0x417018
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call edi
push eax
push str.CInstalltools::BackUpIgnoreFiles__CopyFolder_failed__src___s__dst___s__err___d_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0x10
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
mov edx, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
add esi, 0x18
cmp esi, dword [ebx + 0x70]
jne 0x416db0
mov esi, dword [ebx + 0x78]
cmp esi, dword [ebx + 0x7c]
je 0x41729d
jmp 0x417066
mov edx, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
cmp dword [esi + 0x14], 8
jb 0x417070
mov eax, dword [esi]
jmp 0x417072
mov eax, esi
push eax
lea ecx, [ebp - 0x220]
call edx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
push str.__INSTDIR_
lea ecx, [ebp - 0x220]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
push 0x45ebf0
push 0x45d3c0
lea ecx, [ebp - 0x220]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
cmp dword [esi + 0x14], 8
jb 0x4170c5
mov eax, dword [esi]
jmp 0x4170c7
mov eax, esi
push eax
mov eax, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
lea ecx, [ebp - 0x21c]
call eax
mov byte [ebp - 4], 4
cmp dword [ebx + 0x14], 8
jb 0x4170e3
mov eax, dword [ebx]
jmp 0x4170e5
mov eax, ebx
mov ebx, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
push eax
push str.__INSTDIR_
lea ecx, [ebp - 0x21c]
call ebx
push 0x45ebf0
push 0x45d3c0
lea ecx, [ebp - 0x21c]
call ebx
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 ecx, [ebp - 0x220]
push 0
call edi
mov ebx, eax
lea ecx, [ebp - 0x218]
mov eax, ecx
mov edi, 0x104
sub ebx, eax
lea edx, [edi + 0x7ffffefa]
test edx, edx
je 0x417162
movzx eax, word [ebx + ecx]
test ax, ax
je 0x417162
mov word [ecx], ax
add ecx, 2
dec edi
jne 0x417144
jmp 0x417166
test edi, edi
jne 0x417169
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x4826e0]
test al, 1
jne 0x417199
or eax, 1
push 0x45ae80
mov dword [0x4826e0], eax
call fcn.004521b7
add esp, 4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4171f4
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4171f4
mov eax, dword [0x483214]
test al, 1
jne 0x4171db
or eax, 1
push 0x45b070
mov dword [0x483214], eax
call fcn.004521b7
add esp, 4
lea eax, [ebp - 0x218]
push eax
push str.Failed_to_create_directory_:__s
push 0x483210
call fcn.0044bc70
add esp, 0xc
mov edi, dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
push 0
push 0
lea ecx, [ebp - 0x220]
call edi
push eax
push 0
lea ecx, [ebp - 0x21c]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x417242
push 0
lea ecx, [ebp - 0x220]
call edi
push eax
push 0
lea ecx, [ebp - 0x21c]
call edi
push eax
push str.CInstalltools::BackUpIgnoreFiles__CopyFile_succeed__src___s__des___s_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
jmp 0x41726d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
lea ecx, [ebp - 0x220]
call edi
push eax
push 0
lea ecx, [ebp - 0x21c]
call edi
push eax
push str.CInstalltools::BackUpIgnoreFiles__CopyFile_failed__src___s__dst___s__err___d_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0x10
mov byte [ebp - 4], 3
mov ebx, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
lea ecx, [ebp - 0x21c]
call ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call ebx
mov ebx, dword [ebp - 0x260]
add esi, 0x18
cmp esi, dword [ebx + 0x7c]
jne 0x417060
mov esi, dword [ebx + 0x84]
cmp esi, dword [ebx + 0x88]
je 0x4173d9
nop
cmp dword [esi + 0x14], 8
jb 0x4172ba
mov eax, dword [esi]
jmp 0x4172bc
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 byte [ebp - 4], 5
cmp dword [ebp - 0x224], 8
mov edi, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Replace_wchar_t_const___wchar_t_const__]
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
push str.__INSTDIR_
lea ecx, [ebp - 0x21c]
call edi
push 0x45ebf0
push 0x45d3c0
lea ecx, [ebp - 0x21c]
call edi
mov eax, dword [0x483128]
test al, 1
jne 0x417325
or eax, 1
push 0x45aee0
mov dword [0x483128], eax
call fcn.004521b7
add esp, 4
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417396
lea eax, [ebp - 0x25c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x41736c
mov eax, dword [ebp - 0x25c]
and eax, 0xffffff7f
test al, 1
je 0x41736c
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
je 0x417396
push 0
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
push eax
push str.CInstalltools::BackUpIgnoreFiles__ForceRemoveFile_succeed:_path___s_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 8
jmp 0x4173ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
lea ecx, [ebp - 0x21c]
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
push eax
push str.CInstalltools::BackUpIgnoreFiles__ForceRemoveFile_failed:_path___s__err___d_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
add esi, 0x18
cmp esi, dword [ebx + 0x88]
jne 0x4172b0
cmp dword [ebp - 0x224], 8
jb 0x4173f1
push dword [ebp - 0x238]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
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