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

Disassembly:
mov eax, 0x4e688f
call fcn.004d1ec0
sub esp, 0xab8
mov eax, dword [0x52f220]
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 0x4991ed
push edi
call fcn.004a2063
test al, al
pop ecx
jne 0x4991f4
xor al, al
jmp 0x499463
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xab0], ebx
jne 0x49920f
xor al, al
jmp 0x499462
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.004519f2
mov ecx, dword [ebp - 0xaac]
add esp, 0xc
push ebx
call fcn.00495e2b
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 0x49940e
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.0049629f
lea ecx, [ebp - 0xaa8]
call fcn.00495c71
lea ecx, [ebp - 0xaa8]
mov edi, eax
mov dword [ebp - 0xac0], edx
call fcn.00495caf
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xaa8]
call fcn.0049629f
lea ecx, [ebp - 0xaa8]
call fcn.00495c71
lea ecx, [ebp - 0xaa8]
mov dword [ebp - 0xab8], eax
mov dword [ebp - 0xab4], edx
call fcn.00495caf
cmp edi, dword [ebp - 0xab8]
jne 0x499357
mov eax, dword [ebp - 0xab4]
cmp dword [ebp - 0xac0], eax
jne 0x499357
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.00496bae
test eax, eax
jne 0x49932d
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.00497778
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.004990fc
lea ecx, [ebp - 0xaa8]
mov bl, al
call fcn.00495caf
jmp 0x49944f
push ebx
call esi
mov ebx, 0x4fe670
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.004519f2
mov ecx, dword [ebp - 0xaac]
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call fcn.00495e2b
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 0x499389
lea ecx, [ebp - 0xaa8]
mov byte [ebp - 4], al
call fcn.00495caf
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 0x49944d
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.00497778
test al, al
jne 0x49947c
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.004d1f17
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.004990fc
test al, al
je 0x49944d
mov ecx, esi
call fcn.004983c1
mov ecx, eax
call fcn.004a6832
push eax
push 2
push esi
lea ecx, [esi + 0x218]
call fcn.00496b43
mov bl, 1
jmp 0x49944f