Function at 0x402288
Capabilities:
Copy file
Delete file
Get common file path
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.004024c1
push eax
call fcn.00401728
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
mov dword [ebp + 0xc], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
lea eax, [ebp - 8]
push esi
push eax
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov byte [ebp - 4], bl
call fcn.00403e60
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.0040356e
test eax, eax
jne 0x4023ab
mov edi, 0x104
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 0x124]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x124]
push 0x40d10c
push eax
call fcn.00404360
pop ecx
pop ecx
push esi
call fcn.004024c1
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00404360
pop ecx
lea eax, [ebp - 0x124]
pop ecx
xor esi, esi
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402380
push 1
pop esi
push 0xffffffffffffffff
lea eax, [ebp - 0x124]
push dword [ebp + 0x10]
push eax
call fcn.00403a14
cmp esi, ebx
je 0x4024ba
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4024ba
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4023cb
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push esi
push dword [ebp + 8]
jmp 0x4023b6
push 0xffffffffffffffff
push dword [ebp + 0x10]
push esi
call fcn.00403a14
mov edi, 0x100
lea eax, [ebp - 0x224]
push edi
push ebx
push eax
call fcn.00403e00
add esp, 0xc
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0040150d
push 0x400
lea eax, [ebp - 0x624]
push ebx
push eax
call fcn.00403e00
lea eax, [ebp - 0x624]
push str.__e_
push eax
call fcn.00404360
push dword [ebp + 8]
lea eax, [ebp - 0x624]
push eax
call fcn.00404360
mov edi, 0x40d0b8
lea eax, [ebp - 0x624]
push edi
push eax
call fcn.00404360
lea eax, [ebp - 0x624]
push esi
push eax
call fcn.00404360
lea eax, [ebp - 0x624]
push edi
push eax
call fcn.00404360
add esp, 0x34
lea eax, [ebp - 0x624]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403a14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4024b0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebx
leave
ret 0xc