Function at 0x4e60c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6008a8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x689300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [0x6924b8]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
test al, 1
jne 0x4e6127
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
mov dword [ebp - 0x24], 0x6924a8
call edi
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
push eax
call fcn.004a4dd0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x4e6162
or esi, eax
jmp 0x4e61ad
mov eax, dword [0x6924b8]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
test al, 1
jne 0x4e619c
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0x6924a8
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x4e61d0
cmp byte [ebp - 0x28], 0
je 0x4e61d0
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489360
mov dword [ebp - 0x34], 1
cmp esi, 0xffffffff
jne 0x4e61eb
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c2d0
jmp 0x4e622b
push 0
call edi
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a4dd0
add esp, 8
test eax, eax
jne 0x4e622b
lea ecx, [ebp - 0x48]
call fcn.00487e10
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0x10
mov eax, 2
movdqu xmmword [ebp - 0x20], xmm0
push 0x7f000001
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x1e], ax
cmp esi, 0xffffffff
jne 0x4e626b
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c2d0
jmp 0x4e62d7
push 0
call edi
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a4dd0
add esp, 8
test eax, eax
jne 0x4e62d2
lea ecx, [ebp - 0x48]
call fcn.00487e10
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.004dfaa0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e62eb
cmp byte [ebp - 0x28], 0
je 0x4e62eb
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489360
cmp eax, 0xffffffff
jne 0x4e62a4
cmp byte [ebp - 0x28], 0
je 0x4e62a4
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489360
push 0
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0x1c], eax
jne 0x4e6306
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
cmp esi, 0xffffffff
jne 0x4e631a
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c2d0
jmp 0x4e6385
push 0
call edi
lea eax, [ebp - 0x2c]
push eax
push SysReAllocString
push esi
call dword [sym.imp.WS2_32.dll_listen]
push eax
call fcn.004a4dd0
add esp, 8
test eax, eax
jne 0x4e6380
lea ecx, [ebp - 0x48]
call fcn.00487e10
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
push 0
call edi
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
push eax
call fcn.004a4dd0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4e6399
or edi, eax
jmp 0x4e63e4
cmp eax, 0xffffffff
jne 0x4e6352
cmp byte [ebp - 0x28], 0
je 0x4e6352
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489360
mov eax, dword [0x6924b8]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
test al, 1
jne 0x4e63d3
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0x6924a8
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
jne 0x4e6413
cmp byte [ebp - 0x28], 0
je 0x4e6404
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489360
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c2d0
jmp 0x4e646c
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a4dd0
add esp, 8
test eax, eax
jne 0x4e6467
lea ecx, [ebp - 0x48]
call fcn.00487e10
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
cmp esi, 0xffffffff
jne 0x4e6480
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c2d0
or esi, esi
jmp 0x4e64c9
cmp eax, 0xffffffff
jne 0x4e6451
cmp byte [ebp - 0x28], 0
je 0x4e6451
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489360
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push esi
mov dword [ebp - 0x64], 0
call dword [sym.imp.WS2_32.dll_accept]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a4dd0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x4e64b2
or esi, eax
jmp 0x4e64c9
lea ecx, [ebp - 0x48]
call fcn.00487e10
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x4e64e9
cmp byte [ebp - 0x28], 0
je 0x4e64e9
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489360
mov dword [ebp - 0x38], 1
cmp edi, 0xffffffff
jne 0x4e6504
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c2d0
jmp 0x4e654e
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.004a4dd0
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x4e654c
lea ecx, [ebp - 0x60]
call fcn.00487e10
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], ecx
je 0x4e6562
cmp byte [ebp - 0x28], 0
je 0x4e6562
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489360
mov dword [ebp - 0x34], 1
cmp edi, 0xffffffff
jne 0x4e657d
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c2d0
jmp 0x4e65be
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x34]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a4dd0
add esp, 8
test eax, eax
jne 0x4e65be
lea ecx, [ebp - 0x60]
call fcn.00487e10
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], 1
cmp esi, 0xffffffff
jne 0x4e65d9
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c2d0
jmp 0x4e6623
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.004a4dd0
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x4e6621
lea ecx, [ebp - 0x60]
call fcn.00487e10
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], ecx
je 0x4e6637
cmp byte [ebp - 0x28], 0
je 0x4e6637
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489360
mov dword [ebp - 0x34], 1
cmp esi, 0xffffffff
jne 0x4e6652
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c2d0
jmp 0x4e6684
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x34]
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a4dd0
add esp, 8
test eax, eax
jne 0x4e6684
lea ecx, [ebp - 0x60]
call fcn.00487e10
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
mov byte [ebp - 4], 1
mov dword [eax], esi
mov dword [eax + 4], edi
call fcn.004c64d0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.004c64d0
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.004c64d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b8774
mov esp, ebp
pop ebp
ret