将IpAddr转化为带"."的IP

.data
    buffer    db www.163.com",0
    wsa    WSADATA <0>                                 ;winsock data
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.code
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
CheckInternetConnect proc uses edi esi ebx IPAddr:dword
        LOCAL hsockt          : dword
        LOCAL destination_sin : sockaddr_in                              
        LOCAL yuip            : dword            
        LOCAL tiom            : timeval
        LOCAL writability[2]  : dword 
        LOCAL IpAddr          : dword

        xor edi, edi
    invoke gethostbyname, IPAddr
        .if eax != edi        
            mov eax, [eax+0Ch]
            mov eax, [eax]
            mov eax, [eax]    
        mov IpAddr, eax
        invoke socket, AF_INET, SOCK_STREAM, edi
        .if eax != -1
            mov    hsockt, eax                                                 
            mov    yuip, 1
            invoke ioctlsocket, hsockt, FIONBIO,  addr yuip              
            mov    destination_sin.sin_family, AF_INET                                                                                     
            mov    esi, IpAddr                                                                            
            mov    destination_sin.sin_addr, esi                                                    
            invoke htons, 80
            mov    destination_sin.sin_port, ax                            
            invoke connect, hsockt, addr destination_sin,  sizeof destination_sin       
            .if eax == -1                                                                           
                invoke WSAGetLastError
                .if eax == WSAEWOULDBLOCK 
                    mov    tiom.tv_sec, 6
                    mov    tiom.tv_usec, edi
                    mov    eax, hsockt
                    mov    writability[0], 1
                    mov    writability[4], eax
                    invoke select, edi, edi, addr writability, edi, addr tiom
                    .if eax != edi && eax != -1                            
                        inc edi
                    .endif
                .else
                    inc edi
                .endif
            .endif               
                invoke closesocket, hsockt           
        .endif
    .endif           
        mov   eax, edi
        ret

CheckInternetConnect  endp  
tart:
    invoke    WSAStartup,202h,addr wsa
    invoke    CheckInternetConnect, addr buffer