Function at 0x10126c70
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 0x102168ad
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10282800]
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 0x10126ccd
xor eax, eax
mov dword [ebp - 0x24], 0x10282038
mov esi, 0x10282038
jmp 0x10126cdc
call fcn.100e0d20
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 0x10126d4c
test eax, eax
jne 0x1012710c
mov dword [ebp - 0x38], 1
call fcn.100e0d20
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.100e0d20
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x10126dcf
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 0x10126d7a
call fcn.100e0d20
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 0x10126dc3
call fcn.100e0d20
mov esi, eax
call ebx
cmp dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
jne 0x10126df0
test eax, eax
jne 0x1012710c
cmp edi, 0xffffffff
jne 0x10126df0
call fcn.100e0d20
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x10126e2d
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 0x10126e18
mov dword [ebp - 0x24], esi
jmp 0x10126e35
call fcn.100e0d20
mov esi, eax
call ebx
cmp dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jne 0x10126e35
test eax, eax
jne 0x1012710c
push 0
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0x1c], eax
jne 0x10126e50
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
cmp edi, 0xffffffff
jne 0x10126e69
call fcn.100e0d20
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x10126e96
push closesocket
push edi
call dword [sym.imp.WS2_32.dll_listen]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x10126e81
mov dword [ebp - 0x28], eax
jmp 0x10126e90
call fcn.100e0d20
mov esi, eax
call ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x34], 0xffffffff
jne 0x10126e9e
test eax, eax
jne 0x1012710c
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 0x10126ebc
xor ecx, ecx
jmp 0x10126ecd
call fcn.100e0d20
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 0x10126efb
test ecx, ecx
jne 0x1012711a
call fcn.100e0d20
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x10126f25
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 0x10126f19
call fcn.100e0d20
mov esi, eax
call ebx
cmp dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
jne 0x10126f2d
test eax, eax
jne 0x1012711a
cmp edi, 0xffffffff
jne 0x10126f42
call fcn.100e0d20
mov esi, eax
or ebx, edi
mov eax, 0x2719
jmp 0x10126f67
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10126f65
call fcn.100e0d20
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or ebx, ebx
jmp 0x10126f67
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 0x10126f81
test eax, eax
jne 0x10127128
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], 1
cmp eax, 0xffffffff
jne 0x10126fa4
call fcn.100e0d20
mov esi, eax
mov eax, 0x2719
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x10126fd8
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 0x10126fbf
xor eax, eax
jmp 0x10126fcc
call fcn.100e0d20
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 0x10126fe0
test eax, eax
jne 0x10127128
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 1
cmp eax, 0xffffffff
jne 0x10126fff
call fcn.100e0d20
mov esi, eax
mov dword [ebp - 0x28], 0x2719
jmp 0x10127024
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 0x10127027
call fcn.100e0d20
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 0x10127049
call fcn.100e0d20
mov dword [ebp - 0x24], eax
mov eax, 0x2719
mov dword [ebp - 0x28], 0x2719
jmp 0x10127091
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 0x1012707e
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
test ecx, ecx
jne 0x10127091
mov dword [ebp - 0x38], 1
cmp ebx, 0xffffffff
jne 0x1012709b
call fcn.100e0d20
jmp 0x101270bb
call fcn.100e0d20
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 0x10127128
jmp 0x1012706b
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 0x101270bb
call fcn.100e0d20
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 0x101270f0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 1
lea eax, [ebp - 0x2d]
mov dword [ebp - 0x24], 0x10282038
push eax
push edi
mov byte [ebp - 0x2d], 0
call fcn.1010f060
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.101e3b75
mov esp, ebp
pop ebp
ret
push str.socket_select_interrupter
lea eax, [ebp - 0x28]
push eax
call fcn.100dfa60
push str.socket_select_interrupter
lea eax, [ebp - 0x28]
push eax
call fcn.100dfa60
push str.socket_select_interrupter
lea eax, [ebp - 0x28]
push eax
call fcn.100dfa60
int3