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

Disassembly:
push 0xffffffffffffffff
push 0x516754
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.004a4710
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 0x55a044
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 0x4a48da
mov edx, dword [esp + 0x24]
push ebx
push 0x55a044
push edx
call fcn.0042b1a0
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.004a3fb0
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.004a3e20
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 0x530e90
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 0x4a499b
mov ecx, dword [esp + 0x24]
push esi
push 0x530e90
push ecx
call fcn.0042b1a0
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.004a3fb0
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 0x4a4a1e
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4a49f1
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 0x4a4a1e
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 0x4a4a0c
mov eax, ecx
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x4a4a15
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 0x4a4a44
mov al, byte [ecx - 1]
test al, al
je 0x4a4a38
cmp al, 0xff
je 0x4a4a38
dec al
mov byte [ecx - 1], al
jmp 0x4a4a44
add ecx, 0xfffffffe
push ecx
call fcn.00512b1a
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 0x4a4a89
mov al, byte [ecx - 1]
test al, al
je 0x4a4a7d
cmp al, 0xff
je 0x4a4a7d
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.00512b1a
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x20