Function at 0x413880
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], str.ws2_32.dll
call fcn.00453a60
test eax, eax
mov dword [0x465730], eax
mov dword [0x465584], eax
je 0x413f30
mov dword [esp + 4], str.getaddrinfo
mov dword [esp], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
sub esp, 8
test eax, eax
je 0x413f55
mov eax, dword [0x465730]
test eax, eax
je 0x413de0
mov dword [esp + 4], str.getaddrinfo
mov dword [esp], eax
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.0046573c], eax
test edx, edx
je 0x413fe2
mov dword [esp], edx
mov dword [esp + 4], str.freeaddrinfo
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465738], eax
test edx, edx
je 0x41391f
mov dword [esp + 4], str.getnameinfo
mov dword [esp], edx
call ebx
sub esp, 8
mov edx, dword [0x465584]
xor eax, eax
test edx, edx
je 0x41393b
mov dword [esp + 4], str.WSAAddressToStringA
mov dword [esp], edx
call ebx
sub esp, 8
mov dword [0x465734], eax
mov eax, dword [0x465730]
test eax, eax
je 0x413e00
mov dword [esp + 4], str.WSAAsyncSelect
mov dword [esp], eax
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465e6c], eax
test edx, edx
je 0x413ffd
mov dword [esp], edx
mov dword [esp + 4], str.WSAEventSelect
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465e78], eax
test edx, edx
je 0x413e14
mov dword [esp], edx
mov dword [esp + 4], str.select
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465e70], eax
test edx, edx
je 0x414011
mov dword [esp], edx
mov dword [esp + 4], str.WSAGetLastError
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.00465e74], eax
test edx, edx
je 0x413e28
mov dword [esp], edx
mov dword [esp + 4], str.WSAEnumNetworkEvents
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465e68], eax
test edx, edx
je 0x414025
mov dword [esp], edx
mov dword [esp + 4], str.WSAStartup
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x4657a0], eax
test edx, edx
je 0x413e3c
mov dword [esp], edx
mov dword [esp + 4], str.WSACleanup
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x46579c], eax
test edx, edx
je 0x414039
mov dword [esp], edx
mov dword [esp + 4], str.closesocket
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.00465798], eax
test edx, edx
je 0x413e50
mov dword [esp], edx
mov dword [esp + 4], str.ntohl
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.00465794], eax
test edx, edx
je 0x41404d
mov dword [esp], edx
mov dword [esp + 4], str.htonl
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465790], eax
test edx, edx
je 0x413e64
mov dword [esp], edx
mov dword [esp + 4], str.htons
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.0046578c], eax
test edx, edx
je 0x414061
mov dword [esp], edx
mov dword [esp + 4], str.ntohs
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465788], eax
test edx, edx
je 0x413e78
mov dword [esp], edx
mov dword [esp + 4], str.gethostname
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465784], eax
test edx, edx
je 0x414075
mov dword [esp], edx
mov dword [esp + 4], str.gethostbyname
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465780], eax
test edx, edx
je 0x413e8c
mov dword [esp], edx
mov dword [esp + 4], str.getservbyname
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x46577c], eax
test edx, edx
je 0x414089
mov dword [esp], edx
mov dword [esp + 4], str.inet_addr
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.00465778], eax
test edx, edx
je 0x413ea0
mov dword [esp], edx
mov dword [esp + 4], str.inet_ntoa
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465774], eax
test edx, edx
je 0x41409d
mov dword [esp], edx
mov dword [esp + 4], str.inet_ntop
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465770], eax
test edx, edx
je 0x413eb4
mov dword [esp], edx
mov dword [esp + 4], str.connect
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x46576c], eax
test edx, edx
je 0x4140b1
mov dword [esp], edx
mov dword [esp + 4], str.bind
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.00465768], eax
test edx, edx
je 0x413ec8
mov dword [esp], edx
mov dword [esp + 4], str.setsockopt
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.00465764], eax
test edx, edx
je 0x4140c5
mov dword [esp], edx
mov dword [esp + 4], str.socket
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.00465760], eax
test edx, edx
je 0x413edc
mov dword [esp], edx
mov dword [esp + 4], str.listen
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [fcn.0046575c], eax
test edx, edx
je 0x4140d9
mov dword [esp], edx
mov dword [esp + 4], str.send
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465758], eax
test edx, edx
je 0x413ef0
mov dword [esp], edx
mov dword [esp + 4], str.shutdown
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465754], eax
test edx, edx
je 0x4140ed
mov dword [esp], edx
mov dword [esp + 4], str.ioctlsocket
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465750], eax
test edx, edx
je 0x413f04
mov dword [esp], edx
mov dword [esp + 4], str.accept
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x46574c], eax
test edx, edx
je 0x414101
mov dword [esp], edx
mov dword [esp + 4], str.getpeername
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465748], eax
test edx, edx
je 0x413f18
mov dword [esp], edx
mov dword [esp + 4], str.recv
call ebx
mov edx, dword [0x465730]
sub esp, 8
mov dword [0x465744], eax
test edx, edx
je 0x41411c
mov dword [esp + 4], str.WSAIoctl
mov dword [esp], edx
call ebx
sub esp, 8
mov dword [0x465740], eax
mov dword [esp + 4], 0x4655a0
mov dword [esp], 0x202
call dword [0x4657a0]
sub esp, 8
test eax, eax
je 0x413fb4
mov dword [esp + 4], 0x4655a0
mov dword [esp], 2
call dword [0x4657a0]
sub esp, 8
test eax, eax
je 0x413fd0
mov dword [esp + 4], 0x4655a0
mov dword [esp], 0x101
call dword [0x4657a0]
sub esp, 8
test eax, eax
jne 0x413ff1
cmp byte [0x4655a0], 1
jne 0x413ff1
mov dword [esp], 0x413030
call fcn.004521c0
mov dword [0x4657a4], eax
add esp, 0x18
pop ebx
ret
mov dword [fcn.0046573c], 0
mov dword [0x465738], 0
jmp 0x41391f
mov dword [0x465e6c], 0
mov dword [0x465e78], 0
mov dword [0x465e70], 0
mov dword [fcn.00465e74], 0
mov dword [0x465e68], 0
mov dword [0x4657a0], 0
mov dword [0x46579c], 0
mov dword [fcn.00465798], 0
mov dword [fcn.00465794], 0
mov dword [0x465790], 0
mov dword [fcn.0046578c], 0
mov dword [0x465788], 0
mov dword [0x465784], 0
mov dword [0x465780], 0
mov dword [0x46577c], 0
mov dword [fcn.00465778], 0
mov dword [0x465774], 0
mov dword [0x465770], 0
mov dword [0x46576c], 0
mov dword [fcn.00465768], 0
mov dword [fcn.00465764], 0
mov dword [fcn.00465760], 0
mov dword [fcn.0046575c], 0
mov dword [0x465758], 0
mov dword [0x465754], 0
mov dword [0x465750], 0
mov dword [0x46574c], 0
mov dword [0x465748], 0
mov dword [0x465744], 0
xor eax, eax
jmp 0x413d54
mov dword [esp], str.wsock32.dll
call fcn.00453a60
test eax, eax
mov dword [0x465730], eax
jne 0x4138a2
mov dword [esp], str.Unable_to_load_any_WinSock_library
call fcn.00402250
mov dword [esp], str.wship6.dll
call fcn.00453a60
test eax, eax
mov dword [0x465580], eax
je 0x41391f
mov dword [esp + 4], str.getaddrinfo
mov dword [esp], eax
call ebx
mov dword [fcn.0046573c], eax
mov eax, dword [0x465580]
sub esp, 8
test eax, eax
je 0x413fe2
mov dword [esp + 4], str.freeaddrinfo
mov dword [esp], eax
call ebx
mov edx, dword [0x465580]
sub esp, 8
mov dword [0x465738], eax
test edx, edx
jne 0x41390f
jmp 0x41391f
cmp byte [0x4655a0], 2
jne 0x413d79
jmp 0x413dc6
cmp byte [0x4655a0], 2
jne 0x413d99
jmp 0x413dc6
mov dword [0x465738], 0
jmp 0x41391f
mov dword [esp], str.Unable_to_initialise_WinSock
call fcn.00402250
mov dword [0x465e78], 0
mov dword [0x465e70], 0
mov dword [fcn.00465e74], 0
mov dword [0x465e68], 0
mov dword [0x4657a0], 0
mov dword [0x46579c], 0
mov dword [fcn.00465798], 0
mov dword [fcn.00465794], 0
mov dword [0x465790], 0
mov dword [fcn.0046578c], 0
mov dword [0x465788], 0
mov dword [0x465784], 0
mov dword [0x465780], 0
mov dword [0x46577c], 0
mov dword [fcn.00465778], 0
mov dword [0x465774], 0
mov dword [0x465770], 0
mov dword [0x46576c], 0
mov dword [fcn.00465768], 0
mov dword [fcn.00465764], 0
mov dword [fcn.00465760], 0
mov dword [fcn.0046575c], 0
mov dword [0x465758], 0
mov dword [0x465754], 0
mov dword [0x465750], 0
mov dword [0x46574c], 0
mov dword [0x465748], 0
mov dword [0x465744], 0
xor eax, eax
jmp 0x413d54
xor eax, eax
jmp 0x413d54