Function at 0x4020b0
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 0x40213d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40213d
xor edx, edx
mov word [ebp - 0x468], dx
push 0x206
push 0
lea eax, [ebp - 0x466]
push eax
call fcn.00405110
add esp, 0xc
push 0xa
call fcn.00401070
add esp, 4
push eax
push 0x40e380
call fcn.00406ffd
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 0x40217a
mov edx, dword [ebp - 0x38]
or edx, dword [ebp - 0x34]
jne 0x402181
xor eax, eax
jmp 0x4022e5
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004049c0
add esp, 0xc
test eax, eax
jne 0x4021a3
xor eax, eax
jmp 0x4022e5
cmp dword [ebp - 0x25c], 0
je 0x4021c0
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.00405110
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 0x402289
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 0x40227f
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 0x4022e0
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 0x4022e0
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.0040556e
mov esp, ebp
pop ebp
ret