This is from source code that I filed with the US CopyRight office.
I forgot that I left all the comments in there:
CODE
w32fd WIN32_FIND_DATA <>;File Time-n-Date Shit
CODE
start:
call FileProp; weee!
CODE
call CreateDirectoryA; Make that shit work!
CODE
FileProp proc
;******* Time & Date Shit ******
lea esi,offset DLFile
invoke FindFirstFile,esi,addr w32fd
.if eax!=INVALID_HANDLE_VALUE
invoke FindClose,eax
CODE
@msg_Is_NT:
push offset HostsRegLocationnt;mov FileHandle_R1, offset DLFile
push offset DLFile ;mov FileHandle_W, HostsRegLocationnt
;push FileHandle_W
call CopyFile ;push FileHandle_R1
;-======================-
; Uh oh, File I/O!
;-======================-
push 00000000h
push FILE_ATTRIBUTE_NORMAL
push OPEN_EXISTING;OPEN_ALWAYS
push 00000000h
push FILE_SHARE_READ;00000000h
push GENERIC_READ
push offset CusFile
call CreateFile