Function at 0x493150
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WS2_32.DLL
call edi
xor ebx, ebx
mov dword [0x513988], eax
mov dword [0x51398c], eax
cmp eax, ebx
jne 0x493191
push str.WSOCK32.DLL
call edi
mov dword [0x513988], eax
cmp eax, ebx
jne 0x493191
push str.Unable_to_load_any_WinSock_library
call fcn.00454bb0
mov eax, dword [0x513988]
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
test eax, eax
je 0x49321b
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493201
push str.getaddrinfo
push eax
call esi
mov dword [0x513964], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493207
push str.freeaddrinfo
push eax
call esi
mov dword [0x5132cc], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x49320d
push str.getnameinfo
push eax
call esi
mov dword [0x513494], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493213
push str.gai_strerror
push eax
call esi
mov dword [0x51395c], eax
jmp 0x49328e
mov dword [0x513964], ebx
mov dword [0x5132cc], ebx
mov dword [0x513494], ebx
mov dword [0x51395c], ebx
jmp 0x493293
push str.wship6.dll
call edi
mov dword [0x513990], eax
cmp eax, ebx
je 0x49328e
push str.getaddrinfo
push eax
call esi
mov dword [0x513964], eax
mov eax, dword [0x513990]
cmp eax, ebx
je 0x49327c
push str.freeaddrinfo
push eax
call esi
mov dword [0x5132cc], eax
mov eax, dword [0x513990]
cmp eax, ebx
je 0x493282
push str.getnameinfo
push eax
call esi
mov dword [0x513494], eax
mov eax, dword [0x513990]
cmp eax, ebx
je 0x493288
push str.gai_strerror
push eax
call esi
mov dword [0x51395c], eax
jmp 0x49328e
mov dword [0x5132cc], ebx
mov dword [0x513494], ebx
mov dword [0x51395c], ebx
mov eax, dword [0x513988]
mov ecx, dword [0x51398c]
cmp ecx, ebx
je 0x4932b1
push str.WSAAddressToStringA
push ecx
call esi
mov dword [0x513974], eax
mov eax, dword [0x513988]
jmp 0x4932b7
mov dword [0x513974], ebx
cmp eax, ebx
je 0x49355b
push str.WSAAsyncSelect
push eax
call esi
mov dword [0x514a2c], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493561
push str.WSAEventSelect
push eax
call esi
mov dword [0x514a38], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493567
push str.select
push eax
call esi
mov dword [0x514a30], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x49356d
push str.WSAGetLastError
push eax
call esi
mov dword [0x514a28], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493573
push str.WSAEnumNetworkEvents
push eax
call esi
mov dword [0x514a34], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493579
push str.WSAStartup
push eax
call esi
mov dword [0x5132d0], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x49357f
push str.WSACleanup
push eax
call esi
mov dword [0x513978], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493585
push str.closesocket
push eax
call esi
mov dword [0x513970], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x49358b
push str.ntohl
push eax
call esi
mov dword [0x5132f0], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493591
push str.htonl
push eax
call esi
mov dword [0x51396c], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x493597
push str.htons
push eax
call esi
mov dword [0x513960], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x49359d
push str.ntohs
push eax
call esi
mov dword [0x5132ec], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935a3
push str.gethostbyname
push eax
call esi
mov dword [0x5132d4], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935a9
push str.getservbyname
push eax
call esi
mov dword [0x513968], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935af
push str.inet_addr
push eax
call esi
mov dword [0x5132e4], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935b5
push str.inet_ntoa
push eax
call esi
mov dword [0x513490], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935bb
push str.connect
push eax
call esi
mov dword [0x5132e0], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935c1
push str.bind
push eax
call esi
mov dword [0x5132c8], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935c7
push str.setsockopt
push eax
call esi
mov dword [0x5132fc], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935cd
push str.socket
push eax
call esi
mov dword [0x513980], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935d3
push str.listen
push eax
call esi
mov dword [0x5132f4], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935d9
push str.send
push eax
call esi
mov dword [0x5132d8], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935df
push str.ioctlsocket
push eax
call esi
mov dword [0x51397c], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935e5
push str.accept
push eax
call esi
mov dword [0x5132f8], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935eb
push str.recv
push eax
call esi
mov dword [0x5132dc], eax
mov eax, dword [0x513988]
cmp eax, ebx
je 0x4935f1
push str.WSAIoctl
push eax
call esi
mov dword [0x5132e8], eax
jmp 0x4935f7
mov dword [0x514a2c], ebx
mov dword [0x514a38], ebx
mov dword [0x514a30], ebx
mov dword [0x514a28], ebx
mov dword [0x514a34], ebx
mov dword [0x5132d0], ebx
mov dword [0x513978], ebx
mov dword [0x513970], ebx
mov dword [0x5132f0], ebx
mov dword [0x51396c], ebx
mov dword [0x513960], ebx
mov dword [0x5132ec], ebx
mov dword [0x5132d4], ebx
mov dword [0x513968], ebx
mov dword [0x5132e4], ebx
mov dword [0x513490], ebx
mov dword [0x5132e0], ebx
mov dword [0x5132c8], ebx
mov dword [0x5132fc], ebx
mov dword [0x513980], ebx
mov dword [0x5132f4], ebx
mov dword [0x5132d8], ebx
mov dword [0x51397c], ebx
mov dword [0x5132f8], ebx
mov dword [0x5132dc], ebx
mov dword [0x5132e8], ebx
push 2
push 2
call fcn.00493110
add esp, 8
pop esi
test eax, eax
jne 0x493634
push ebx
push 2
call fcn.00493110
add esp, 8
test eax, eax
jne 0x493634
push 1
push 1
call fcn.00493110
add esp, 8
test eax, eax
jne 0x493634
push str.Unable_to_initialise_WinSock
call fcn.00454bb0
add esp, 4
push 0x492c70
call fcn.0047f3a0
add esp, 4
pop edi
mov dword [0x513984], eax
pop ebx
ret