Function at 0x409680
Capabilities:
Check if file exists
Delete file
Get file attributes
Resolve function by parsing pe exports
Set file attributes
Timestomp file
Write file on windows

Disassembly:
mov eax, 0x2990
call fcn.00428720
mov eax, dword [0x45c720]
xor eax, esp
mov dword [esp + 0x298c], eax
mov eax, dword [esp + 0x2998]
push ebx
push edi
mov edi, dword [esp + 0x299c]
push eax
lea eax, [esp + 0x94]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push 0
push 0
push 0
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + eax + 0xa4]
push eax
lea ecx, [esp + 0x50]
push ecx
push edi
call fcn.0043ea20
test eax, eax
je 0x409702
push str._unzGetCurrentFileInfo
call fcn.004023f0
add esp, 4
xor al, al
jmp 0x4098fa
push edi
call fcn.0043f520
test eax, eax
je 0x409726
push str._unzOpenCurrentFile
call fcn.004023f0
add esp, 4
push edi
call fcn.0043efb0
xor al, al
jmp 0x4098fa
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
lea edx, [esp + 0x98]
push edx
call ebp
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4097d6
push 0x2800
lea edx, [esp + 0x1a0]
push edx
push edi
call fcn.0043ed30
test eax, eax
je 0x4097c9
jl 0x409913
jle 0x4097b2
push 0
lea ecx, [esp + 0x94]
push ecx
push eax
lea edx, [esp + 0x1a8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40994f
push 0x2800
lea eax, [esp + 0x1a0]
push eax
push edi
call fcn.0043ed30
test eax, eax
jne 0x409788
push 0x449aa4
call fcn.004023b0
add esp, 4
lea edx, [esp + 0x98]
push edx
call ebp
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
movzx ecx, word [esp + 0x8c]
mov edx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x84]
mov word [esp + 0x10], cx
movzx ecx, word [esp + 0x80]
inc edx
mov word [esp + 0x16], ax
movzx eax, word [esp + 0x78]
mov word [esp + 0x12], dx
mov dx, word [esp + 0x7c]
mov word [esp + 0x18], cx
lea ecx, [esp + 0x20]
mov word [esp + 0x1a], dx
push ecx
mov word [esp + 0x20], ax
xor eax, eax
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.00409540
cmp al, 1
jne 0x409893
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea edx, [esp + 0x30]
push edx
push 0
mov eax, edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x4098e9
add ebx, 0x28c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileTime_Error__d_
push ebx
call fcn.0042865f
push ebx
call fcn.004023f0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0043efb0
mov al, 1
pop esi
pop ebp
mov ecx, dword [esp + 0x2994]
pop edi
pop ebx
xor ecx, esp
call fcn.00427398
add esp, 0x2990
ret 8
push eax
lea ecx, [esp + 0x94]
push 0x448a74
push ecx
call fcn.0042865f
lea edx, [esp + 0x9c]
push edx
call fcn.004023f0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4098f8
add ebx, 0x28c4
push str.WriteFile_Error
push ebx
call fcn.0042865f
push ebx
call fcn.004023f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0043efb0
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4098f8