Function at 0x407080
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
mov eax, 0x10054
call fcn.00414e40
mov eax, dword [0x428930]
xor eax, esp
mov dword [esp + 0x10050], eax
push ebx
mov ebx, dword [esp + 0x1005c]
push ebp
push esi
mov esi, dword [esp + 0x10068]
push edi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 7
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40722c
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x40710b
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
mov dword [esp + 0x10084], ebx
mov dword [esp + 0x10080], ebp
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
jmp 0x407119
mov ebp, dword [esp + 0x10070]
mov ebx, dword [esp + 0x1007c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x407176
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0xff676980
push 0
push ebp
call fcn.00414fd0
add edi, eax
adc ebx, edx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x4072d7
mov ebx, dword [esp + 0x1007c]
mov ecx, dword [esp + 0x10078]
test ecx, ecx
jne 0x407185
test ebx, ebx
je 0x40719d
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jb 0x4072d7
jne 0x40719d
cmp dword [esp + 0x50], ecx
jb 0x4072d7
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x7fff
lea edx, [esp + 0x20]
lea ebx, [esp + 0x64]
mov ecx, esi
call fcn.00406fb0
add esp, 4
cmp byte [esp + 0x10080], 0
je 0x407272
push 1
mov eax, ebx
push eax
push esi
mov edi, str.CopyFile__
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4072a5
push 0x80
push 4
push 0
push 3
push esi
call fcn.00406f30
mov ecx, dword [esp + 0x10088]
add esp, 0x14
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407287
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4072d7
push ebp
push eax
call fcn.004020f0
add esp, 4
push eax
push esi
push str.CreateFile__
push esi
push ebx
push 0xc0000427
push 1
call fcn.00402230
add esp, 0x20
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
jmp 0x40719d
lea edx, [esp + 0x60]
push edx
push esi
mov edi, str.MoveFile__
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4072a5
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x64]
push eax
push esi
push ecx
push 0x40000435
push 4
call fcn.00402230
add esp, 0x18
jmp 0x4072d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4072d7
push 0
push eax
call fcn.004020f0
add esp, 4
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x68]
push edx
push edi
push esi
push eax
push 0xc0000427
push 1
call fcn.00402230
add esp, 0x20
mov ecx, dword [esp + 0x10060]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414adc
add esp, 0x10054
ret