Function at 0x569b50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
mov dword [ebp - 4], eax
call fcn.00408a40
xor eax, eax
push fcn.00569b40
push ebp
push 0x414060
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 8], 0
mov byte [0x5e6c90], 0
cmp dword [ebp - 4], 0
jne 0x569b90
lea eax, [ebp - 4]
mov edx, str.ws2_32.dll
call fcn.00408a70
mov eax, dword [0x5e6c80]
call fcn.004d2910
xor eax, eax
push fcn.00569b30
push ebp
push 0x414060
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x587510], 0
jne 0x569fee
mov byte [0x5e6c90], 0
mov byte [0x5e6ca0], 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x569bd4
mov eax, 0x5e12f0
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x587520], eax
test eax, eax
je 0x569ff2
mov eax, str.WSAIoctl
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587500], eax
mov eax, str.__WSAFDIsSet
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5874f0], eax
mov eax, str.closesocket
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587470], eax
mov eax, str.ioctlsocket
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5873f0], eax
mov eax, str.WSAGetLastError
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5872d0], eax
mov eax, str.WSAStartup
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5872b0], eax
mov eax, str.WSACleanup
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5872c0], eax
mov eax, str.accept
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587490], eax
mov eax, str.bind
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587480], eax
mov eax, str.connect
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587460], eax
mov eax, str.getpeername
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587450], eax
mov eax, str.getsockname
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587440], eax
mov eax, str.getsockopt
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587370], eax
mov eax, str.htonl
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587430], eax
mov eax, str.htons
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587420], eax
mov eax, str.inet_addr
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587410], eax
mov eax, str.inet_ntoa
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587400], eax
mov eax, str.listen
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5873e0], eax
mov eax, str.ntohl
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5873d0], eax
mov eax, str.ntohs
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5873c0], eax
mov eax, str.recv
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5873a0], eax
mov eax, str.recvfrom
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5873b0], eax
mov eax, str.select
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5874b0], eax
mov eax, str.send
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587390], eax
mov eax, str.sendto
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587380], eax
mov eax, str.setsockopt
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587360], eax
mov eax, str.shutdown
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587350], eax
mov eax, str.socket
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5874a0], eax
mov eax, str.gethostbyaddr
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587330], eax
mov eax, str.gethostbyname
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587320], eax
mov eax, str.getprotobyname
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587300], eax
mov eax, str.getprotobynumber
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587310], eax
mov eax, str.getservbyname
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5872e0], eax
mov eax, str.getservbyport
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5872f0], eax
mov eax, str.gethostname
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x587340], eax
mov eax, str.getaddrinfo
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5874c0], eax
mov eax, str.freeaddrinfo
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5874d0], eax
mov eax, str.getnameinfo
push eax
push dword [0x587520]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5874e0], eax
cmp dword [0x5874c0], 0
je 0x569f4f
cmp dword [0x5874d0], 0
je 0x569f4f
cmp dword [0x5874e0], 0
je 0x569f4f
mov byte [0x5e6c90], 1
jmp 0x569f56
mov byte [0x5e6c90], 0
cmp byte [0x5e6c90], 0
jne 0x569fe8
mov eax, str.wship6.dll
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x587530], eax
test eax, eax
je 0x569fe8
mov eax, str.getaddrinfo
push eax
push dword [0x587530]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5874c0], eax
mov eax, str.freeaddrinfo
push eax
push dword [0x587530]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5874d0], eax
mov eax, str.getnameinfo
push eax
push dword [0x587530]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5874e0], eax
cmp dword [0x5874c0], 0
je 0x569fe1
cmp dword [0x5874d0], 0
je 0x569fe1
cmp dword [0x5874e0], 0
je 0x569fe1
mov byte [0x5e6ca0], 1
jmp 0x569fe8
mov byte [0x5e6ca0], 0
mov byte [ebp - 8], 1
jmp 0x569ff2
mov byte [ebp - 8], 1
cmp byte [ebp - 8], 0
je 0x56a000
add dword [0x587510], 1
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00569b30
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00569b40
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret