Function at 0x40c140
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov ecx, str.ws2_32.dll
call fcn.00431e10
mov dword [0x468770], eax
mov ecx, eax
mov dword [0x468788], eax
test eax, eax
jne 0x40c16c
mov ecx, str.wsock32.dll
call fcn.00431e10
mov dword [0x468770], eax
mov ecx, eax
test ecx, ecx
je 0x40c57e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
test eax, eax
je 0x40c1cb
mov eax, dword [0x468770]
test eax, eax
je 0x40c1a0
push str.getaddrinfo
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c1a2
xor ecx, ecx
mov dword [0x468950], ecx
test eax, eax
je 0x40c1bd
push str.freeaddrinfo
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c1bf
xor ecx, ecx
mov dword [0x468940], ecx
test eax, eax
je 0x40c21e
jmp 0x40c211
mov ecx, str.wship6.dll
call fcn.00431e10
mov dword [0x46878c], eax
test eax, eax
je 0x40c219
push str.getaddrinfo
push eax
call esi
mov dword [0x468950], eax
mov eax, dword [0x46878c]
test eax, eax
je 0x40c205
push str.freeaddrinfo
push eax
call esi
mov ecx, eax
mov eax, dword [0x46878c]
jmp 0x40c207
xor ecx, ecx
mov dword [0x468940], ecx
test eax, eax
je 0x40c219
push str.getnameinfo
push eax
call esi
mov eax, dword [0x468770]
mov ecx, dword [0x468788]
test ecx, ecx
je 0x40c235
push str.WSAAddressToStringA
push ecx
call esi
mov eax, dword [0x468770]
test eax, eax
je 0x40c24a
push str.WSAAsyncSelect
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c24c
xor ecx, ecx
mov dword [0x4690ec], ecx
test eax, eax
je 0x40c289
push str.WSAEventSelect
push eax
call esi
mov eax, dword [0x468770]
test eax, eax
je 0x40c289
push str.select
push eax
call esi
mov eax, dword [0x468770]
test eax, eax
je 0x40c289
push str.WSAGetLastError
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c28b
xor ecx, ecx
mov dword [0x4690f0], ecx
test eax, eax
je 0x40c2b7
push str.WSAEnumNetworkEvents
push eax
call esi
mov eax, dword [0x468770]
test eax, eax
je 0x40c2b7
push str.WSAStartup
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c2b9
xor ecx, ecx
mov dword [0x468780], ecx
test eax, eax
je 0x40c2e5
push str.WSACleanup
push eax
call esi
mov eax, dword [0x468770]
test eax, eax
je 0x40c2e5
push str.closesocket
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c2e7
xor ecx, ecx
mov dword [0x468948], ecx
test eax, eax
je 0x40c302
push str.ntohl
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c304
xor ecx, ecx
mov dword [0x468930], ecx
test eax, eax
je 0x40c31f
push str.htonl
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c321
xor ecx, ecx
mov dword [0x468790], ecx
test eax, eax
je 0x40c33c
push str.htons
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c33e
xor ecx, ecx
mov dword [0x46877c], ecx
test eax, eax
je 0x40c359
push str.ntohs
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c35b
xor ecx, ecx
mov dword [0x468954], ecx
test eax, eax
je 0x40c3a9
push str.gethostname
push eax
call esi
mov eax, dword [0x468770]
test eax, eax
je 0x40c3a9
push str.gethostbyname
push eax
call esi
mov eax, dword [0x468770]
test eax, eax
je 0x40c3a9
push str.getservbyname
push eax
call esi
mov eax, dword [0x468770]
test eax, eax
je 0x40c3a9
push str.inet_addr
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c3ab
xor ecx, ecx
mov dword [0x468774], ecx
test eax, eax
je 0x40c3c6
push str.inet_ntoa
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c3c8
xor ecx, ecx
mov dword [0x468938], ecx
test eax, eax
je 0x40c3e3
push str.inet_ntop
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c3e5
xor ecx, ecx
mov dword [0x468798], ecx
test eax, eax
je 0x40c400
push str.connect
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c402
xor ecx, ecx
mov dword [0x46894c], ecx
test eax, eax
je 0x40c41d
push str.bind
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c41f
xor ecx, ecx
mov dword [0x468944], ecx
test eax, eax
je 0x40c43a
push str.setsockopt
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c43c
xor ecx, ecx
mov dword [0x468e20], ecx
test eax, eax
je 0x40c457
push str.socket
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c459
xor ecx, ecx
mov dword [0x468784], ecx
test eax, eax
je 0x40c474
push str.listen
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c476
xor ecx, ecx
mov dword [0x46879c], ecx
test eax, eax
je 0x40c491
push str.send
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c493
xor ecx, ecx
mov dword [0x468e30], ecx
test eax, eax
je 0x40c4ae
push str.shutdown
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c4b0
xor ecx, ecx
mov dword [0x468e24], ecx
test eax, eax
je 0x40c4cb
push str.ioctlsocket
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c4cd
xor ecx, ecx
mov dword [0x468794], ecx
test eax, eax
je 0x40c4e8
push str.accept
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c4ea
xor ecx, ecx
mov dword [0x468934], ecx
test eax, eax
je 0x40c505
push str.getpeername
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c507
xor ecx, ecx
mov dword [0x468e2c], ecx
test eax, eax
je 0x40c522
push str.recv
push eax
call esi
mov ecx, eax
mov eax, dword [0x468770]
jmp 0x40c524
xor ecx, ecx
mov dword [0x46893c], ecx
test eax, eax
je 0x40c538
push str.WSAIoctl
push eax
call esi
jmp 0x40c53a
xor eax, eax
mov edx, 2
mov dword [0x468778], eax
mov ecx, edx
call fcn.0040c110
test al, al
jne 0x40c56d
xor edx, edx
lea ecx, [edx + 2]
call fcn.0040c110
test al, al
jne 0x40c56d
mov edx, 1
mov ecx, edx
call fcn.0040c110
test al, al
je 0x40c588
mov ecx, 0x40c0c0
call fcn.00431e50
mov dword [0x468e34], eax
pop esi
ret
push str.Unable_to_load_any_WinSock_library
call fcn.00401000
push str.Unable_to_initialise_WinSock
call fcn.00401000
int3