Function at 0x10006450
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 0x1006584d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1008600c]
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 - 0x40], 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 0x100064a8
xor eax, eax
mov dword [ebp - 0x24], 0x10086b38
jmp 0x100064b7
call fcn.10002f00
mov esi, eax
call ebx
mov dword [ebp - 0x24], esi
or edi, 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x100064d1
test eax, eax
jne 0x100068eb
mov dword [ebp - 0x34], 1
cmp edi, 0xffffffff
jne 0x10006523
call fcn.10002f00
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
mov dword [ebp - 0x38], 0x10
call fcn.10002f00
mov ecx, 0x2719
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x100065c6
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1000656f
call fcn.10002f00
mov esi, eax
call ebx
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov eax, 2
mov dword [ebp - 0x24], esi
push 0x7f000001
movlpd qword [ebp - 0x18], xmm0
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x38], 0x10
jmp 0x10006592
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0x10
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
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100065e5
call fcn.10002f00
mov esi, eax
call ebx
cmp dword [ebp - 0x2c], 0xffffffff
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
jne 0x100065e5
test ecx, ecx
jne 0x100068eb
cmp edi, 0xffffffff
jne 0x100065e5
call fcn.10002f00
mov ecx, 0x2719
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x1000661f
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ecx
test eax, eax
je 0x10006627
call fcn.10002f00
mov esi, eax
call ebx
cmp dword [ebp - 0x2c], 0xffffffff
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
jne 0x10006627
test ecx, ecx
jne 0x100068eb
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push 0
call esi
cmp dword [ebp - 0x1c], eax
jne 0x10006640
push 0x7f000001
call esi
mov dword [ebp - 0x1c], eax
cmp edi, 0xffffffff
jne 0x10006657
call fcn.10002f00
mov ecx, 0x2719
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10006681
push closesocket
push edi
call dword [sym.imp.WS2_32.dll_listen]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10006689
call fcn.10002f00
mov esi, eax
call ebx
cmp dword [ebp - 0x2c], 0xffffffff
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
jne 0x10006689
test ecx, ecx
jne 0x100068eb
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100066a6
xor eax, eax
jmp 0x100066b9
call fcn.10002f00
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], esi
or ebx, 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
cmp ebx, 0xffffffff
jne 0x100066e2
test eax, eax
jne 0x100068f8
call fcn.10002f00
mov ecx, 0x2719
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10006712
push dword [ebp - 0x38]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1000671a
call fcn.10002f00
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x30], 0xffffffff
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
jne 0x1000671a
test ecx, ecx
jne 0x100068f8
cmp edi, 0xffffffff
jne 0x10006730
call fcn.10002f00
mov ecx, 0x2719
mov dword [ebp - 0x24], eax
or edi, edi
jmp 0x1000675a
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10006758
call fcn.10002f00
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x24], esi
or edi, edi
jmp 0x1000675a
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 2
cmp edi, 0xffffffff
jne 0x10006771
test ecx, ecx
jne 0x100068eb
mov dword [ebp - 0x3c], 1
cmp ebx, 0xffffffff
jne 0x10006793
call fcn.10002f00
mov dword [ebp - 0x24], eax
mov eax, 0x2719
mov dword [ebp - 0x28], 0x2719
jmp 0x100067c7
lea eax, [ebp - 0x3c]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, eax
test ecx, ecx
js 0x100067b4
xor eax, eax
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x100067cf
jmp 0x100067c7
call fcn.10002f00
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 0x100068eb
mov dword [ebp - 0x34], 1
cmp ebx, 0xffffffff
jne 0x100067ec
call fcn.10002f00
mov dword [ebp - 0x28], 0x2719
mov dword [ebp - 0x24], eax
jmp 0x10006814
push 4
lea eax, [ebp - 0x34]
push eax
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10006814
call fcn.10002f00
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], 1
cmp edi, 0xffffffff
jne 0x10006836
call fcn.10002f00
mov dword [ebp - 0x24], eax
mov eax, 0x2719
mov dword [ebp - 0x28], 0x2719
jmp 0x1000686a
lea eax, [ebp - 0x3c]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, eax
test ecx, ecx
js 0x10006857
xor eax, eax
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x1000686e
jmp 0x1000686a
call fcn.10002f00
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 0x100068eb
mov dword [ebp - 0x34], 1
cmp edi, 0xffffffff
jne 0x10006881
call fcn.10002f00
jmp 0x100068a1
push 4
lea eax, [ebp - 0x34]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x100068a1
call fcn.10002f00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
mov dword [eax], edi
mov dword [eax + 4], ebx
call fcn.10006410
lea ecx, [ebp - 0x2c]
call fcn.10006410
lea ecx, [ebp - 0x44]
call fcn.10006410
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.1004144e
mov esp, ebp
pop ebp
ret
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x28]
call fcn.10002e70
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x28]
call fcn.10002e70
int3