Function at 0x40ce30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x422858
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x44b234], eax
test eax, eax
jne 0x40ce9e
lea eax, [ebp - 4]
push eax
push 1
push str.ws2_32.dll
call fcn.0040e680
add esp, 0xc
test eax, eax
jns 0x40ce81
lea eax, [ebp - 4]
push eax
push 1
push str.wsock32.dll
call fcn.0040e680
add esp, 0xc
test eax, eax
js 0x40d143
mov byte [0x44b0c0], 1
push dword [ebp - 4]
call fcn.0040e520
push dword [ebp - 4]
mov dword [0x44b234], eax
call fcn.00418d50
mov eax, dword [0x44b234]
add esp, 8
push str.WSAStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
push dword [0x44b234]
mov dword [0x44b238], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAGetLastError
push dword [0x44b234]
mov dword [0x44b23c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASetLastError
push dword [0x44b234]
mov dword [0x44b240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACreateEvent
push dword [0x44b234]
mov dword [0x44b244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACloseEvent
push dword [0x44b234]
mov dword [0x44b248], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASetEvent
push dword [0x44b234]
mov dword [0x44b24c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAEventSelect
push dword [0x44b234]
mov dword [0x44b250], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAEnumNetworkEvents
push dword [0x44b234]
mov dword [0x44b254], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASocketW
push dword [0x44b234]
mov dword [0x44b258], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSASend
push dword [0x44b234]
mov dword [0x44b25c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAIoctl
push dword [0x44b234]
mov dword [0x44b260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.socket
push dword [0x44b234]
mov dword [0x44b264], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.closesocket
push dword [0x44b234]
mov dword [0x44b268], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.recv
push dword [0x44b234]
mov dword [0x44b26c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.send
push dword [0x44b234]
mov dword [0x44b270], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.recvfrom
push dword [0x44b234]
mov dword [0x44b274], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sendto
push dword [0x44b234]
mov dword [0x44b278], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.bind
push dword [0x44b234]
mov dword [0x44b27c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.listen
push dword [0x44b234]
mov dword [0x44b280], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44b284], eax
push str.accept
push dword [0x44b234]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.connect
push dword [0x44b234]
mov dword [0x44b288], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.shutdown
push dword [0x44b234]
mov dword [0x44b28c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getsockopt
push dword [0x44b234]
mov dword [0x44b290], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.setsockopt
push dword [0x44b234]
mov dword [0x44b294], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ioctlsocket
push dword [0x44b234]
mov dword [0x44b298], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getpeername
push dword [0x44b234]
mov dword [0x44b29c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getsockname
push dword [0x44b234]
mov dword [0x44b2a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.__WSAFDIsSet
push dword [0x44b234]
mov dword [0x44b2a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.select
push dword [0x44b234]
mov dword [0x44b2a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gethostbyname
push dword [0x44b234]
mov dword [0x44b2ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44b2b0], eax
mov esp, ebp
pop ebp
ret