Function at 0x402260
Capabilities:
Set file attributes
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x2f0
mov eax, dword [esp + 0x2f4]
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402298
xor eax, eax
pop ebx
add esp, 0x2f0
ret
push ebp
mov ebp, dword [esp + 0x300]
push esi
push edi
test ebp, ebp
jne 0x4022c8
mov edx, dword [esp + 0x310]
mov eax, dword [esp + 0x30c]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x402441
mov eax, dword [esp + 0x314]
test eax, eax
je 0x4023eb
xor ecx, ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x16], ecx
push edx
mov dword [esp + 0x1e], ecx
mov word [esp + 0x18], 0
mov dword [esp + 0x22], ecx
mov word [esp + 0x26], cx
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x16]
mov edx, dword [esp + 0x14]
and eax, 0xffff
and ecx, 0xffff
and edx, 0xffff
add eax, ecx
mov ecx, dword [esp + 0x22]
add eax, edx
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1a]
and eax, 0xffff
add edx, eax
and ecx, 0xffff
lea edx, [edx + ecx + 0xa]
push edx
call fcn.00402d70
mov ecx, 0xaf
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x314]
mov ecx, dword [esp + 0x310]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [ebp]
lea edx, [esp + 0x44]
push eax
push esi
push ecx
push edx
call fcn.00402200
add esp, 0x14
inc esi
push esi
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
xor edi, edi
call fcn.00402d7a
and eax, 0x8000000f
jns 0x4023ab
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, dword [str.0123456789ABCDEF]
inc edi
cmp edi, 0x20
mov dl, byte [eax + ecx]
mov byte [esp + edi + 0x3f], dl
jl 0x40239a
mov al, byte [ebp]
lea ecx, [esp + 0x40]
push eax
push 0x2c0
push ecx
push esi
call fcn.00402200
add esp, 0x10
lea edx, [esp + 0x10]
push 0
push edx
push 0x2c0
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x402431
mov edi, dword [esp + 0x310]
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov cl, byte [ebp]
mov edx, dword [esp + 0x30c]
push ecx
mov esi, eax
push edi
push edx
push esi
call fcn.00402200
add esp, 0x10
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test esi, esi
je 0x402441
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov ecx, 0x1c4365a
mov eax, 0x3859dfe2
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
push ebx
mov dword [esp + 0x3c], 0x1c527c2
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x304]
push 6
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2f0
ret