Function at 0x4668f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fb3d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x49c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xffffffff
je 0x46694d
xor eax, eax
mov dword [ebp - 0x24], 0x49c034
mov esi, 0x49c034
jmp 0x46695c
call fcn.00433040
mov esi, eax
call ebx
mov dword [ebp - 0x24], esi
or edi, 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x4669cc
test eax, eax
jne 0x466d8c
mov dword [ebp - 0x38], 1
call fcn.00433040
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x2719
mov eax, 2
movlpd qword [ebp - 0x18], 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
mov dword [ebp - 0x3c], 0x10
call fcn.00433040
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x466a4f
push 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 1
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4669fa
call fcn.00433040
mov esi, eax
call ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [ebp - 0x18], xmm0
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
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
mov dword [ebp - 0x3c], 0x10
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x466a43
call fcn.00433040
mov esi, eax
call ebx
cmp dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
jne 0x466a70
test eax, eax
jne 0x466d8c
cmp edi, 0xffffffff
jne 0x466a70
call fcn.00433040
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x466aad
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], ecx
test eax, eax
jne 0x466a98
mov dword [ebp - 0x24], esi
jmp 0x466ab5
call fcn.00433040
mov esi, eax
call ebx
cmp dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jne 0x466ab5
test eax, eax
jne 0x466d8c
push 0
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0x1c], eax
jne 0x466ad0
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
cmp edi, 0xffffffff
jne 0x466ae9
call fcn.00433040
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x466b16
push accept
push edi
call dword [sym.imp.WS2_32.dll_listen]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x466b01
mov dword [ebp - 0x28], eax
jmp 0x466b10
call fcn.00433040
mov esi, eax
call ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x34], 0xffffffff
jne 0x466b1e
test eax, eax
jne 0x466d8c
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x466b3c
xor ecx, ecx
jmp 0x466b4d
call fcn.00433040
mov esi, eax
call ebx
mov ecx, eax
or eax, 0xffffffff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
jne 0x466b7b
test ecx, ecx
jne 0x466d9a
call fcn.00433040
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x466ba5
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x466b99
call fcn.00433040
mov esi, eax
call ebx
cmp dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
jne 0x466bad
test eax, eax
jne 0x466d9a
cmp edi, 0xffffffff
jne 0x466bc2
call fcn.00433040
mov esi, eax
or ebx, edi
mov eax, 0x2719
jmp 0x466be7
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x466be5
call fcn.00433040
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or ebx, ebx
jmp 0x466be7
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 2
cmp ebx, 0xffffffff
jne 0x466c01
test eax, eax
jne 0x466da8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], 1
cmp eax, 0xffffffff
jne 0x466c24
call fcn.00433040
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x466c58
lea ecx, [ebp - 0x40]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x34], eax
test eax, eax
js 0x466c3f
xor eax, eax
jmp 0x466c4c
call fcn.00433040
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x34], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
je 0x466c60
test eax, eax
jne 0x466da8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 1
cmp eax, 0xffffffff
jne 0x466c7f
call fcn.00433040
mov esi, eax
mov dword [ebp - 0x28], 0x2719
jmp 0x466ca4
push 4
lea ecx, [ebp - 0x38]
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x466ca7
call fcn.00433040
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x40], 1
cmp ebx, 0xffffffff
jne 0x466cc9
call fcn.00433040
mov dword [ebp - 0x24], eax
mov eax, 0x2719
mov dword [ebp - 0x28], 0x2719
jmp 0x466d11
lea eax, [ebp - 0x40]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, eax
test ecx, ecx
js 0x466cfe
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
test ecx, ecx
jne 0x466d11
mov dword [ebp - 0x38], 1
cmp ebx, 0xffffffff
jne 0x466d1b
call fcn.00433040
jmp 0x466d3b
call fcn.00433040
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
test eax, eax
jne 0x466da8
jmp 0x466ceb
push 4
lea eax, [ebp - 0x38]
push eax
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x466d3b
call fcn.00433040
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
cmp edi, 0xffffffff
je 0x466d70
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 1
lea eax, [ebp - 0x2d]
mov dword [ebp - 0x24], 0x49c034
push eax
push edi
mov byte [ebp - 0x2d], 0
call fcn.00452a60
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cb4
mov esp, ebp
pop ebp
ret
push str.socket_select_interrupter
lea eax, [ebp - 0x28]
push eax
call fcn.00432a80
push str.socket_select_interrupter
lea eax, [ebp - 0x28]
push eax
call fcn.00432a80
push str.socket_select_interrupter
lea eax, [ebp - 0x28]
push eax
call fcn.00432a80
int3