Function at 0x496b00
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4f73c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
call fcn.004969d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov al, byte [esp + 0x64]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov cl, byte [esp + 0x64]
push 0
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push 0x534bd8
call esi
add esp, 4
mov ebx, eax
lea ecx, [esp + 0x20]
push 1
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x496b9a
mov edx, dword [esp + 0x24]
push ebx
push 0x534bd8
push edx
call fcn.00425f90
add esp, 0xc
lea ecx, [esp + 0x20]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
mov ebp, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edi
push ebp
push ebx
push edx
mov edx, dword [esp + 0x70]
push eax
push ecx
push edx
mov byte [esp + 0x6c], 1
call fcn.00496270
add esp, 0x24
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 0
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.004960e0
mov dl, byte [esp + 0x6c]
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], dl
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, byte [esp + 0x64]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x50e9c4
call esi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x20]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x496c5b
mov ecx, dword [esp + 0x24]
push esi
push 0x50e9c4
push ecx
call fcn.00425f90
add esp, 0xc
lea ecx, [esp + 0x20]
push esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x64]
push edi
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
mov byte [esp + 0x6c], 3
call fcn.00496270
add esp, 0x24
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 2
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, dword [esp + 0x54]
xor edi, edi
cmp dword [esi + 8], edi
je 0x496cde
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x496cb1
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x496cde
mov eax, dword [esp + 0x14]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp eax, edi
jne 0x496ccc
mov eax, ecx
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x496cd5
mov esi, ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x496d04
mov al, byte [ecx - 1]
test al, al
je 0x496cf8
cmp al, 0xff
je 0x496cf8
dec al
mov byte [ecx - 1], al
jmp 0x496d04
add ecx, 0xfffffffe
push ecx
call fcn.004f3eca
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp ecx, edi
pop edi
pop esi
pop ebp
pop ebx
je 0x496d49
mov al, byte [ecx - 1]
test al, al
je 0x496d3d
cmp al, 0xff
je 0x496d3d
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x20
add ecx, 0xfffffffe
push ecx
call fcn.004f3eca
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x20