亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? http.asm

?? http.rar
?? ASM
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
        .ELSEIF eax==WM_TIMER
                invoke ShowDownloadSpeed
        .ELSEIF eax==WM_CREATE
                invoke CreateStatusWindow,WS_CHILD+WS_VISIBLE+SBARS_SIZEGRIP,NULL,hWnd,IDC_STATUS     ; Create the status bar
                mov hwndStatus,eax      ; Create the status bar
                invoke SendMessage,hwndStatus,SB_SETPARTS,2,addr PartWidth
        .ELSEIF eax==WM_SOCKET
                mov eax,lParam
                .if ax==FD_CONNECT      ; if the socket is connected
                        push eax
                        pop eax
                        shr eax,16      ; If there is an error during connect process, the error code is returned in the high word of lParam                        
                        .if ax==NULL    ; If there is no error, proceed to send the request
                                invoke SendRequest
                        .else
                                invoke ReconnectIfPossible
                        .endif                                
                .elseif ax==FD_READ
                        shr eax,16      ; Check if there is an error code in the high word of lParam
                        .if eax==0
                                invoke ReadSocket
                        .else
                                invoke ShowSocketError
                        .endif
                .elseif ax==FD_CLOSE    ; When the connection is closed from the other end, it marks the end of the file
                        shr eax,16
                        .if eax==0      ; Check if there is some error
                                invoke CloseTheSock
                        .else
                                .if eax==WSAECONNRESET || eax==WSAECONNABORTED
                                        invoke CloseTheSock
                                .else
                                        invoke ShowSocketError
                                .endif
                        .endif
               .endif                                
        .ELSEIF eax==WM_COMMAND
                mov eax,wParam
                .if lParam==0
                        .if ax==IDM_CONNECT     ; When the user presses connect button or connect menu item.
                                mov Resuming,FALSE      ; Assume that the server cannot resume download
                                mov FileHandle,0        ; We use the value of FileHandle to check whether the file was closed
                                mov TimerID,0           ; We use the value of TimerID in the same manner as FileHandle
                                mov eax,OFFSET URLProc
                                invoke DialogBoxParam,hInstance,addr URLDialogName,hWnd,eax,0
                                .if eax==TRUE           ; If the user types in a url
                                        invoke ConnectSocket
                                .endif
                        .elseif ax==IDM_EXIT
                                invoke DestroyWindow,hWnd
                        .else
                                invoke MessageBox,hWnd, addr AboutMessage, addr AppName,MB_OK or MB_ICONINFORMATION
                        .endif
                .else
                        .if ax==IDC_CONNECT
                                invoke SendMessage,hWnd,WM_COMMAND,IDM_CONNECT,0
                        .elseif ax==IDC_EXIT
                                invoke DestroyWindow,hWnd
                        .endif
                .endif
        .ELSE
                invoke DefWindowProc,hWnd,uMsg,wParam,lParam
                ret
        .ENDIF
        xor eax,eax
        ret
WndProc endp
;======================================================================
;                       ShowSocketError
;======================================================================
; This procedure is called to display the error message on the screen in
; case of FD_CONNECT, FD_READ and FD_CLOSE notification.
;======================================================================
ShowSocketError PROC
        invoke TranslateErrorCode,eax,addr ErrorString
        invoke MessageBox,NULL,addr ErrorString,addr AppName,MB_OK+MB_ICONERROR
        invoke CloseSock
        invoke EnableControls
        ret
ShowSocketError ENDP

;========================================================================
;                           URLProc
;========================================================================
;  This is the dialog procedure of the dialog that receives url from the 
;  user
;========================================================================
URLProc PROC hDlg:DWORD,uMsg:DWORD,wParam:DWORD,lParam:DWORD
        .if uMsg==WM_CLOSE
                invoke EndDialog,hDlg,0
        .elseif uMsg==WM_INITDIALOG
                mov wParam,IDC_EDIT1       ; Set the focus to the edit control
        .elseif uMsg==WM_COMMAND
                mov eax,wParam
                .if ax==IDC_OK
                        shr eax,16
                        .if ax==BN_CLICKED      ; If the user clicks ok button
                                invoke GetDlgItemText,hDlg,IDC_EDIT1,addr URLString,512
                                .if eax!=0   ; If the user doesn't type in some string, don't close the dialog box
                                        invoke EndDialog,hDlg,1
                                .else
                                        invoke GetDlgItem,hDlg,IDC_EDIT1
                                        invoke SetFocus,eax
                                .endif
                        .endif
                .elseif ax==IDC_CANCEL
                        shr eax,16
                        .if ax==BN_CLICKED
                                invoke SendMessage,hDlg,WM_CLOSE,0,0
                        .endif
                .endif
        .else
                mov eax,FALSE
                ret
        .endif
        mov eax,TRUE
        ret
URLProc ENDP
;======================================================================
;                               String2Dword
;======================================================================
; This procedure takes an address of a string and converts it to a dword
; value which it returns in eax
;======================================================================
String2Dword proc uses ecx edi edx esi String:DWORD
        xor ecx,ecx
        mov edi,String
        invoke lstrlen,String
        .while eax!=0
                xor edx,edx
                mov dl,byte ptr [edi]
                sub dl,"0"      ; subtrack each digit with "0" to convert it to hex value
                mov esi,eax
                dec esi
                push eax
                mov eax,edx
                push ebx
                mov ebx,10
                .while esi > 0
                        mul ebx
                        dec esi
                .endw
                pop ebx
                add ecx,eax
                pop eax
                inc edi
                dec eax
        .endw
        mov eax,ecx
        ret
String2Dword endp

;======================================================================
;                               ParseHeader
;======================================================================
; This procedure takes the address of HTTP header and finds the file size
;======================================================================
ParseHeader PROC uses esi ecx edi Header:DWORD
        LOCAL MyHeader[512]:BYTE
        invoke lstrcpy,addr MyHeader,Header
        invoke CharLower,addr MyHeader ; Convert the http header to lower case
        .if Resuming==FALSE     ; in the case that we resume download, we don't have to
                                ; search the header for content length again
                invoke lstrlen,addr MyHeader
                mov ecx,eax
                lea edi,MyHeader          ; begin searching for "content-length:"
Rescan:
                mov al,"c"              ;   by scanning for its first char, "c"
                repne scasb
                jne  NoLength           ; If not found, something is wrong
                push ecx                ; If "c" is found, it's still not certain
                                ;   that it's the start of the
                                ;   "content-length:" string. So we must
                                ;   save all registers so that we can
                                ;   resume scanning.
                push edi
                dec  edi                ; move back to the "c" character
                mov ecx,15              ; 15 --> the length of "content-length:"
                mov esi,offset Content
                repe cmpsb              ; compare if the string that starts with "c"
                                ; is identical to "content-length"
                mov  esi,edi            ; save edi which points to the first byte
                                ; of the length (if it's "content-length")
                pop  edi
                pop  ecx
                jne  Rescan             ; if the strings didn't match, rescan the http header
                mov edi,offset ContentString
                .while (byte ptr [esi]!=0Dh)
                        .if byte ptr [esi]!=20h
                                mov al,byte ptr [esi]
                                mov byte ptr [edi],al
                                inc edi
                        .endif
                        inc esi
                .endw
                mov byte ptr [edi],0
                invoke String2Dword,addr ContentString
                mov ContentLength,eax
        .endif
Find_status_code:
        invoke lstrlen,addr MyHeader
        mov ecx,eax
        lea edi,MyHeader
        mov al," "
        repne scasb
        .if byte ptr [edi]==" "
                repe scasb
                dec edi
        .endif
        mov ecx,3
        mov esi,edi
        mov edi,offset StatusCode
        rep movsb
        mov eax,TRUE
        ret
NoLength:
        mov  ContentLength,0
        jmp  Find_status_code
Unsuccessful:
        mov eax,FALSE
        ret
ParseHeader endp

;=========================================================================
;                               ParseURL
;=========================================================================
; This function parses the url string for host name, relative URL and http
; port
;-------------------------------------------------------------------------
ParseURL PROC uses esi edi URL:DWORD
        LOCAL MyURL[512]:BYTE
        LOCAL URLLength:DWORD

        invoke lstrlen,URL
        mov URLLength,eax
        mov ecx,eax             ; Trim the spaces at the start of the url string, if any
        mov edi,URL
        mov al,20h
        repe scasb
        dec edi
        invoke lstrcpy,addr MyURL,edi           ; We don't want to modify the original url string since we have to modify the cases of the url
        invoke lstrcpy,URL,addr MyURL
        invoke lstrlen,URL
        mov URLLength,eax
        invoke RtlFillMemory,addr HostName,501,0   ; fill HostName and RelativeURL with zeroes
        invoke CharLower,addr MyURL             ; change to lower case for ease of comparison
        lea edi,MyURL
        mov esi,offset HTTP             ; check if the url starts with "http://"
        mov ecx,7
        repe cmpsb
        jne No_HTTP
        mov eax,URLLength       ; if it is, substract the length of url string by 7 to
        sub eax,7               ; account for the length of "http://" string
        mov URLLength,eax
        jmp Common_parse
No_HTTP:
        lea edi,MyURL
Common_parse:
        push edi
        invoke lstrcpy,addr MyURL,URL
        pop edi
        xor ecx,ecx
        mov esi,offset HostName
        mov HTTPPort,80         ; Default port =80
        .while ecx < URLLength
                .if byte ptr [edi]=="/"         ; if "/" is found, it denotes the end of the host name string
                        invoke lstrcpy,addr RelativeURL,edi     ; and the start of the relative url string
                        .break
                .elseif byte ptr [edi]==":"     ; if ":" is found, it means an HTTP port is specified in the url
                        inc ecx
                        inc edi
                        invoke RtlFillMemory,addr PortString,10,0
                        mov eax,offset PortString
                        .while (byte ptr [edi]!="/") && (byte ptr [edi]!=0)
                                mov dl,byte ptr [edi]
                                mov byte ptr [eax],dl
                                inc eax
                                inc ecx
                                inc edi
                        .endw

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜精品网| 99视频精品在线| 国产精品人妖ts系列视频| 精品国产污网站| 欧美久久高跟鞋激| 欧美日韩精品是欧美日韩精品| 9久草视频在线视频精品| 国产盗摄一区二区三区| 国产在线观看一区二区| 九九精品视频在线看| 欧美bbbbb| 奇米888四色在线精品| 秋霞影院一区二区| 蜜桃视频在线一区| 美女久久久精品| 美女精品自拍一二三四| 日韩女优电影在线观看| 丰满白嫩尤物一区二区| 大桥未久av一区二区三区中文| 国产精品白丝av| 国产毛片精品国产一区二区三区| 国产综合色在线视频区| 国产成人亚洲综合a∨猫咪| 国产99精品在线观看| 风间由美性色一区二区三区| 成人h动漫精品| 91国产视频在线观看| 欧美色电影在线| 7777精品伊人久久久大香线蕉经典版下载 | 成人午夜精品在线| 成人性生交大片| 不卡视频在线看| 国产精品欧美经典| 一区二区三区高清不卡| 亚洲激情图片一区| 亚洲大片在线观看| 视频一区在线播放| 美女网站色91| 狠狠v欧美v日韩v亚洲ⅴ| 国产精品主播直播| 成人精品在线视频观看| 国产99精品视频| 国产91精品久久久久久久网曝门| 天天色天天操综合| 美女视频黄频大全不卡视频在线播放| 日韩高清一区二区| 美女尤物国产一区| 国产成人av影院| 91亚洲永久精品| 欧美三电影在线| 日韩亚洲欧美在线观看| 精品欧美乱码久久久久久| 亚洲精品在线观| 国产精品人人做人人爽人人添| 亚洲丝袜美腿综合| 婷婷开心激情综合| 免费高清成人在线| 国产成人av资源| 在线中文字幕不卡| 欧美一区二区视频在线观看2022| 日韩欧美激情四射| 国产精品每日更新| 亚洲一区二区精品3399| 久久99久久99精品免视看婷婷| 高清久久久久久| 日本韩国欧美一区二区三区| 日韩欧美区一区二| 中文在线资源观看网站视频免费不卡| 亚洲综合精品自拍| 美日韩一级片在线观看| 91小视频免费看| 日韩一区二区三区在线| 国产精品网站在线播放| 亚洲第一av色| 国产91精品免费| 欧美欧美欧美欧美| 欧美激情综合五月色丁香| 亚洲电影在线播放| 国产激情一区二区三区四区| 欧美色图第一页| 国产视频视频一区| 亚洲成av人片观看| 成人在线视频一区| 777色狠狠一区二区三区| 亚洲欧美综合色| 美国欧美日韩国产在线播放| 成人av网在线| 日韩午夜三级在线| 亚洲婷婷国产精品电影人久久| 蜜臀av一区二区在线免费观看 | 制服视频三区第一页精品| 久久综合久久久久88| 亚洲一区二区美女| 风流少妇一区二区| 精品三级在线观看| 亚洲bt欧美bt精品777| 不卡的av电影| 日韩一级黄色片| 亚洲欧美一区二区不卡| 韩国一区二区视频| 在线播放中文字幕一区| 亚洲三级电影网站| 成年人国产精品| 久久精品一区二区三区四区| 青草国产精品久久久久久| 91香蕉视频黄| 国产日韩欧美精品在线| 日韩高清在线不卡| 欧美日韩在线三区| 一级特黄大欧美久久久| 国产99久久久国产精品潘金| 久久日一线二线三线suv| 日韩影院精彩在线| 欧美日韩免费高清一区色橹橹 | xvideos.蜜桃一区二区| 青青草成人在线观看| 欧美日韩大陆在线| 亚洲一区在线免费观看| 91女人视频在线观看| 国产日韩亚洲欧美综合| 成人99免费视频| 国产精品灌醉下药二区| 国产成人av资源| 中文字幕欧美区| 国产成人免费视频精品含羞草妖精| 精品国产a毛片| 精品影视av免费| 精品欧美久久久| 久久99精品久久久久久动态图| 欧美不卡视频一区| 天堂va蜜桃一区二区三区漫画版| 欧美精品自拍偷拍| 天使萌一区二区三区免费观看| 欧美精品日日鲁夜夜添| 天堂va蜜桃一区二区三区| www成人在线观看| 成人网页在线观看| 中文字幕亚洲在| 欧洲精品在线观看| 日韩国产欧美在线观看| 欧美一区二区三区免费| 韩国精品久久久| 国产精品无人区| 一本色道久久加勒比精品| 亚洲综合激情小说| 欧美妇女性影城| 九九视频精品免费| 中日韩免费视频中文字幕| 成人激情动漫在线观看| 亚洲欧美自拍偷拍色图| 欧美视频中文一区二区三区在线观看| 天天色图综合网| 久久久久久**毛片大全| av不卡在线播放| 亚洲一级片在线观看| 日韩欧美一区中文| 国产成人免费视频网站| 亚洲黄色性网站| 91麻豆精品国产91久久久资源速度| 久久国产日韩欧美精品| 久久亚洲综合色| 91久久精品日日躁夜夜躁欧美| 污片在线观看一区二区| www久久精品| 97精品久久久午夜一区二区三区| 亚洲午夜一区二区三区| 日韩欧美不卡一区| 波多野结衣一区二区三区 | 日韩精品每日更新| 亚洲精品在线一区二区| 91网页版在线| 久久疯狂做爰流白浆xx| 中文字幕日韩一区二区| 91超碰这里只有精品国产| 国产精品一区二区久激情瑜伽| 一区二区三区在线高清| 欧美r级在线观看| 成人小视频在线观看| 午夜精品福利视频网站| 亚洲国产岛国毛片在线| 日韩欧美在线一区二区三区| 国产91丝袜在线播放| 人妖欧美一区二区| 亚洲免费毛片网站| 久久伊99综合婷婷久久伊| 色乱码一区二区三区88| 国产麻豆视频精品| 亚洲成人免费看| 国产精品久久久久久久久免费相片 | 国产一区二区精品久久99| 伊人一区二区三区| 欧美精品一区二区三区四区 | 日韩午夜激情免费电影| 色综合久久综合网97色综合| 国产一区999| 青青青爽久久午夜综合久久午夜| 亚洲免费av高清| 欧美一区二区三区四区五区| 99这里都是精品| 激情综合色播激情啊|