Function at 0x40fd50
Capabilities:
Link many functions at runtime

Disassembly:
push str.ws2_32.dll
call fcn.004327c0
add esp, 4
mov dword [0x4c2d08], eax
mov dword [0x4c2d0c], eax
test eax, eax
jne 0x40fd85
push str.wsock32.dll
call fcn.004327c0
add esp, 4
mov dword [0x4c2d08], eax
test eax, eax
je 0x4103a0
push str.getaddrinfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fdd1
mov eax, dword [0x4c2d08]
test eax, eax
je 0x40fe2a
push str.getaddrinfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d10], eax
test ecx, ecx
je 0x40fe34
push str.freeaddrinfo
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
jmp 0x40fe13
push str.wship6.dll
call fcn.004327c0
add esp, 4
mov dword [0x4c2d1c], eax
test eax, eax
je 0x40fe45
push str.getaddrinfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c2d10], eax
mov eax, dword [0x4c2d1c]
test eax, eax
je 0x40fe34
push str.freeaddrinfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d1c]
mov dword [0x4c2d14], eax
test ecx, ecx
je 0x40fe3e
push str.getnameinfo
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x40fe40
mov dword [0x4c2d10], 0
mov dword [0x4c2d14], 0
xor eax, eax
mov dword [0x4c2d18], eax
mov eax, dword [0x4c2d0c]
test eax, eax
je 0x40fe5c
push str.WSAAddressToStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x40fe5e
xor eax, eax
mov dword [0x4c2d20], eax
mov eax, dword [0x4c2d08]
test eax, eax
je 0x410204
push str.WSAAsyncSelect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d24], eax
test ecx, ecx
je 0x41020e
push str.WSAEventSelect
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d28], eax
test ecx, ecx
je 0x410218
push str.select
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d2c], eax
test ecx, ecx
je 0x410222
push str.WSAGetLastError
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d30], eax
test ecx, ecx
je 0x41022c
push str.WSAEnumNetworkEvents
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d34], eax
test ecx, ecx
je 0x410236
push str.WSAStartup
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d38], eax
test ecx, ecx
je 0x410240
push str.WSACleanup
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d3c], eax
test ecx, ecx
je 0x41024a
push str.closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d40], eax
test ecx, ecx
je 0x410254
push str.ntohl
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d44], eax
test ecx, ecx
je 0x41025e
push str.htonl
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d48], eax
test ecx, ecx
je 0x410268
push str.htons
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d4c], eax
test ecx, ecx
je 0x410272
push str.ntohs
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d50], eax
test ecx, ecx
je 0x41027c
push str.gethostname
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d54], eax
test ecx, ecx
je 0x410286
push str.gethostbyname
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d58], eax
test ecx, ecx
je 0x410290
push str.getservbyname
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d5c], eax
test ecx, ecx
je 0x41029a
push str.inet_addr
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d60], eax
test ecx, ecx
je 0x4102a4
push str.inet_ntoa
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d64], eax
test ecx, ecx
je 0x4102ae
push str.inet_ntop
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d68], eax
test ecx, ecx
je 0x4102b8
push 0x4a75be
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d6c], eax
test ecx, ecx
je 0x4102c2
push str.bind
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d70], eax
test ecx, ecx
je 0x4102cc
push str.setsockopt
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d74], eax
test ecx, ecx
je 0x4102d6
push 0x4a727b
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d78], eax
test ecx, ecx
je 0x4102e0
push str.listen
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d7c], eax
test ecx, ecx
je 0x4102ea
push str.send
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d80], eax
test ecx, ecx
je 0x4102f4
push 0x4a931f
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d84], eax
test ecx, ecx
je 0x4102fe
push str.ioctlsocket
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d88], eax
test ecx, ecx
je 0x410308
push str.accept
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d8c], eax
test ecx, ecx
je 0x410312
push str.getpeername
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d90], eax
test ecx, ecx
je 0x41031c
push str.recv
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c2d08]
mov dword [0x4c2d94], eax
test ecx, ecx
je 0x410326
push str.WSAIoctl
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x410328
mov dword [0x4c2d24], 0
mov dword [0x4c2d28], 0
mov dword [0x4c2d2c], 0
mov dword [0x4c2d30], 0
mov dword [0x4c2d34], 0
mov dword [0x4c2d38], 0
mov dword [0x4c2d3c], 0
mov dword [0x4c2d40], 0
mov dword [0x4c2d44], 0
mov dword [0x4c2d48], 0
mov dword [0x4c2d4c], 0
mov dword [0x4c2d50], 0
mov dword [0x4c2d54], 0
mov dword [0x4c2d58], 0
mov dword [0x4c2d5c], 0
mov dword [0x4c2d60], 0
mov dword [0x4c2d64], 0
mov dword [0x4c2d68], 0
mov dword [0x4c2d6c], 0
mov dword [0x4c2d70], 0
mov dword [0x4c2d74], 0
mov dword [0x4c2d78], 0
mov dword [0x4c2d7c], 0
mov dword [0x4c2d80], 0
mov dword [0x4c2d84], 0
mov dword [0x4c2d88], 0
mov dword [0x4c2d8c], 0
mov dword [0x4c2d90], 0
mov dword [0x4c2d94], 0
xor eax, eax
mov dword [0x4c2d98], eax
push 0x4c2da0
push 0x202
call dword [0x4c2d38]
test eax, eax
jne 0x41034e
movzx eax, byte [0x4c2da0]
cmp ax, 2
je 0x41038d
push 0x4c2da0
push 2
call dword [0x4c2d38]
test eax, eax
jne 0x41036c
movzx eax, byte [0x4c2da0]
cmp ax, 2
je 0x41038d
push 0x4c2da0
push 0x101
call dword [0x4c2d38]
test eax, eax
jne 0x4103aa
movzx eax, byte [0x4c2da0]
cmp ax, 1
jne 0x4103aa
push 0x4103c0
call fcn.004158c0
add esp, 4
mov dword [0x4c2d9c], eax
ret
push str.Unable_to_load_any_WinSock_library
call fcn.00407670
push str.Unable_to_initialise_WinSock
call fcn.00407670
int3