Function at 0x498fda
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
mov eax, 0x4e5175
call fcn.004d1d50
sub esp, 0xab8
mov eax, dword [0x52e400]
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
test edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xaac], ecx
mov dword [ebp - 0xabc], edi
je 0x499013
push edi
call fcn.004a1ed6
test al, al
pop ecx
jne 0x49901a
xor al, al
jmp 0x499289
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xab0], ebx
jne 0x499035
xor al, al
jmp 0x499288
push esi
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov esi, dword [sym.imp.MSVCR71.dll_wcslen]
and dword [ebp - 4], 0
lea eax, [ebp - 0x644]
push eax
push ebx
call esi
pop ecx
push eax
push ebx
call fcn.0044f9bd
mov ecx, dword [ebp - 0xaac]
add esp, 0xc
push ebx
call fcn.00495883
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x499234
and dword [ebp - 0x64c], 0
and dword [ebp - 0x648], 0
mov word [ebp - 0x650], 0x5c
push edi
lea ecx, [ebp - 0xaa8]
mov byte [ebp - 4], 1
call fcn.00495cd7
lea ecx, [ebp - 0xaa8]
call fcn.004956c9
lea ecx, [ebp - 0xaa8]
mov edi, eax
mov dword [ebp - 0xac0], edx
call fcn.00495707
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xaa8]
call fcn.00495cd7
lea ecx, [ebp - 0xaa8]
call fcn.004956c9
lea ecx, [ebp - 0xaa8]
mov dword [ebp - 0xab8], eax
mov dword [ebp - 0xab4], edx
call fcn.00495707
cmp edi, dword [ebp - 0xab8]
jne 0x49917d
mov eax, dword [ebp - 0xab4]
cmp dword [ebp - 0xac0], eax
jne 0x49917d
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp - 0xaac]
push eax
call fcn.004966bd
test eax, eax
jne 0x499153
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp - 0xaac]
push eax
call fcn.0049726a
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp - 0xaac]
push eax
call fcn.00498f22
lea ecx, [ebp - 0xaa8]
mov bl, al
call fcn.00495707
jmp 0x499275
push ebx
call esi
mov ebx, 0x4ffed8
push ebx
mov edi, eax
call esi
sub edi, eax
push edi
push dword [ebp - 0xab0]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.MSVCR71.dll_wcsncpy]
and word [ebp + edi*2 - 0x628], 0
xor edi, edi
add esp, 0x14
inc edi
push ebx
push edi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s__d__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0044f9bd
mov ecx, dword [ebp - 0xaac]
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call fcn.00495883
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
inc edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4991af
lea ecx, [ebp - 0xaa8]
mov byte [ebp - 4], al
call fcn.00495707
mov edi, dword [ebp - 0xabc]
push 0
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x499273
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov esi, dword [ebp - 0xaac]
push eax
mov ecx, esi
call fcn.0049726a
test al, al
jne 0x4992a2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop edi
call fcn.004d1da7
leave
ret 4
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, esi
call fcn.00498f22
test al, al
je 0x499273
mov ecx, esi
call fcn.004981e7
mov ecx, eax
call fcn.004a666f
push eax
push 2
push esi
lea ecx, [esi + 0x218]
call fcn.00496606
mov bl, 1
jmp 0x499275