Function at 0x4e5570
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 0x5fff28
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x686300]
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 [0x68f4b8]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
test al, 1
jne 0x4e55d7
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
mov dword [ebp - 0x24], 0x68f4a8
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.004a4ba0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x4e5612
or esi, eax
jmp 0x4e565d
mov eax, dword [0x68f4b8]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
test al, 1
jne 0x4e564c
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0x68f4a8
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x4e5680
cmp byte [ebp - 0x28], 0
je 0x4e5680
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489420
mov dword [ebp - 0x34], 1
cmp esi, 0xffffffff
jne 0x4e569b
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c390
jmp 0x4e56db
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.004a4ba0
add esp, 8
test eax, eax
jne 0x4e56db
lea ecx, [ebp - 0x48]
call fcn.00487ec0
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 0x4e571b
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c390
jmp 0x4e5787
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.004a4ba0
add esp, 8
test eax, eax
jne 0x4e5782
lea ecx, [ebp - 0x48]
call fcn.00487ec0
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.004deed0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e579b
cmp byte [ebp - 0x28], 0
je 0x4e579b
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489420
cmp eax, 0xffffffff
jne 0x4e5754
cmp byte [ebp - 0x28], 0
je 0x4e5754
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489420
push 0
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0x1c], eax
jne 0x4e57b6
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
cmp esi, 0xffffffff
jne 0x4e57ca
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c390
jmp 0x4e5835
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.004a4ba0
add esp, 8
test eax, eax
jne 0x4e5830
lea ecx, [ebp - 0x48]
call fcn.00487ec0
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.004a4ba0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4e5849
or edi, eax
jmp 0x4e5894
cmp eax, 0xffffffff
jne 0x4e5802
cmp byte [ebp - 0x28], 0
je 0x4e5802
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489420
mov eax, dword [0x68f4b8]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
test al, 1
jne 0x4e5883
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0x68f4a8
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
jne 0x4e58c3
cmp byte [ebp - 0x28], 0
je 0x4e58b4
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489420
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c390
jmp 0x4e591c
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.004a4ba0
add esp, 8
test eax, eax
jne 0x4e5917
lea ecx, [ebp - 0x48]
call fcn.00487ec0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
cmp esi, 0xffffffff
jne 0x4e5930
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c390
or esi, esi
jmp 0x4e5979
cmp eax, 0xffffffff
jne 0x4e5901
cmp byte [ebp - 0x28], 0
je 0x4e5901
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489420
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.004a4ba0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x4e5962
or esi, eax
jmp 0x4e5979
lea ecx, [ebp - 0x48]
call fcn.00487ec0
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 0x4e5999
cmp byte [ebp - 0x28], 0
je 0x4e5999
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489420
mov dword [ebp - 0x38], 1
cmp edi, 0xffffffff
jne 0x4e59b4
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c390
jmp 0x4e59fe
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.004a4ba0
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x4e59fc
lea ecx, [ebp - 0x60]
call fcn.00487ec0
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 0x4e5a12
cmp byte [ebp - 0x28], 0
je 0x4e5a12
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489420
mov dword [ebp - 0x34], 1
cmp edi, 0xffffffff
jne 0x4e5a2d
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c390
jmp 0x4e5a6e
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.004a4ba0
add esp, 8
test eax, eax
jne 0x4e5a6e
lea ecx, [ebp - 0x60]
call fcn.00487ec0
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 0x4e5a89
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c390
jmp 0x4e5ad3
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.004a4ba0
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x4e5ad1
lea ecx, [ebp - 0x60]
call fcn.00487ec0
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 0x4e5ae7
cmp byte [ebp - 0x28], 0
je 0x4e5ae7
push str.socket_select_interrupter
lea eax, [ebp - 0x2c]
push eax
call fcn.00489420
mov dword [ebp - 0x34], 1
cmp esi, 0xffffffff
jne 0x4e5b02
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048c390
jmp 0x4e5b34
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.004a4ba0
add esp, 8
test eax, eax
jne 0x4e5b34
lea ecx, [ebp - 0x60]
call fcn.00487ec0
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.004c59c0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.004c59c0
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.004c59c0
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.005b7dc4
mov esp, ebp
pop ebp
ret