Function at 0x406f60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x41efc0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x44701c], eax
test eax, eax
jne 0x406fce
lea eax, [ebp - 4]
push eax
push 1
push str.ws2_32.dll
call fcn.004106c0
add esp, 0xc
test eax, eax
jns 0x406fb1
lea eax, [ebp - 4]
push eax
push 1
push str.wsock32.dll
call fcn.004106c0
add esp, 0xc
test eax, eax
js 0x407273
mov byte [0x446ea4], 1
push dword [ebp - 4]
call fcn.00410560
push dword [ebp - 4]
mov dword [0x44701c], eax
call fcn.00410780
mov eax, dword [0x44701c]
add esp, 8
push str.WSAStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
push dword [0x44701c]
mov dword [0x447020], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAGetLastError
push dword [0x44701c]
mov dword [0x447024], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASetLastError
push dword [0x44701c]
mov dword [0x447028], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACreateEvent
push dword [0x44701c]
mov dword [0x44702c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACloseEvent
push dword [0x44701c]
mov dword [0x447030], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASetEvent
push dword [0x44701c]
mov dword [0x447034], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAEventSelect
push dword [0x44701c]
mov dword [0x447038], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAEnumNetworkEvents
push dword [0x44701c]
mov dword [0x44703c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASocketW
push dword [0x44701c]
mov dword [0x447040], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASend
push dword [0x44701c]
mov dword [0x447044], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAIoctl
push dword [0x44701c]
mov dword [0x447048], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.socket
push dword [0x44701c]
mov dword [0x44704c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.closesocket
push dword [0x44701c]
mov dword [0x447050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.recv
push dword [0x44701c]
mov dword [0x447054], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.send
push dword [0x44701c]
mov dword [0x447058], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.recvfrom
push dword [0x44701c]
mov dword [0x44705c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sendto
push dword [0x44701c]
mov dword [0x447060], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.bind
push dword [0x44701c]
mov dword [0x447064], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.listen
push dword [0x44701c]
mov dword [0x447068], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44706c], eax
push str.accept
push dword [0x44701c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.connect
push dword [0x44701c]
mov dword [0x447070], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.shutdown
push dword [0x44701c]
mov dword [0x447074], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getsockopt
push dword [0x44701c]
mov dword [0x447078], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.setsockopt
push dword [0x44701c]
mov dword [0x44707c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ioctlsocket
push dword [0x44701c]
mov dword [0x447080], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getpeername
push dword [0x44701c]
mov dword [0x447084], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getsockname
push dword [0x44701c]
mov dword [0x447088], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.__WSAFDIsSet
push dword [0x44701c]
mov dword [0x44708c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.select
push dword [0x44701c]
mov dword [0x447090], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gethostbyname
push dword [0x44701c]
mov dword [0x447094], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x447098], eax
mov esp, ebp
pop ebp
ret