Function at 0x401fd0
Capabilities:
Check if file exists
Delete file
Move file
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x4120a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40205d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40205d
xor edx, edx
mov word [ebp - 0x468], dx
push 0x206
push 0
lea eax, [ebp - 0x466]
push eax
call fcn.00405090
add esp, 0xc
push 0xa
call fcn.00401070
add esp, 4
push eax
push 0x40e2e0
call fcn.00406f5c
add esp, 4
push eax
push str._s_s.dat
lea ecx, [ebp - 0x468]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x468]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401960
add esp, 0x10
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
je 0x40209a
mov edx, dword [ebp - 0x38]
or edx, dword [ebp - 0x34]
jne 0x4020a1
xor eax, eax
jmp 0x402205
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00404ac0
add esp, 0xc
test eax, eax
jne 0x4020c3
xor eax, eax
jmp 0x402205
cmp dword [ebp - 0x25c], 0
je 0x4020e0
push 0x8000
push 0
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x14], 0
xor ecx, ecx
mov word [ebp - 0x248], cx
push 0x206
push 0
lea edx, [ebp - 0x246]
push edx
call fcn.00405090
add esp, 0xc
push 0x104
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x4021a9
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40219f
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x402200
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0xffffffff
je 0x402200
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004054ee
mov esp, ebp
pop ebp
ret