Function at 0x10008730
Capabilities:
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 0x1006990d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10086040]
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
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x10086bb8
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
lea ecx, [ebp - 0x28]
cmp edi, 0xffffffff
sete dl
call fcn.10007cd0
or eax, 0xffffffff
cmp edi, eax
cmove edi, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 0
cmp edi, eax
jne 0x10008812
cmp dword [ebp - 0x28], 0
jne 0x10008c6b
mov ebx, dword [0x1008813c]
mov esi, dword fs:[0x2c]
mov eax, dword [0x10088e30]
mov dword [ebp - 0x30], 1
mov ecx, dword [esi + ebx*4]
cmp eax, dword [ecx + 4]
jle 0x10008802
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], 0xffffffff
jne 0x10008802
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov dword [ebp - 0x28], 0x2719
mov dword [ebp - 0x24], 0x10086bc8
jmp 0x10008847
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x28]
setne dl
call fcn.10007cd0
mov ebx, dword [0x1008813c]
mov esi, dword fs:[0x2c]
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
lea edx, [ebp - 0x20]
xor eax, eax
mov ecx, edi
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x28]
push eax
push 0x10
call fcn.10007d40
add esp, 8
cmp eax, 0xffffffff
jne 0x10008895
cmp dword [ebp - 0x28], 0
jne 0x10008c6b
cmp edi, 0xffffffff
jne 0x100088ea
mov ecx, dword [esi + ebx*4]
mov eax, dword [0x10088e30]
cmp eax, dword [ecx + 4]
jle 0x100088d9
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], edi
jne 0x100088d9
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov eax, 0x2719
mov dword [ebp - 0x24], 0x10086bc8
mov dword [ebp - 0x28], eax
jmp 0x1000891d
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov esi, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x34]
test esi, esi
mov dword [ebp - 0x38], eax
setne dl
call fcn.10007cd0
cmp esi, 0xffffffff
jne 0x10008925
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10008c6b
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push 0
call esi
cmp dword [ebp - 0x1c], eax
jne 0x1000893e
push 0x7f000001
call esi
mov dword [ebp - 0x1c], eax
cmp edi, 0xffffffff
jne 0x1000899a
mov esi, dword fs:[0x2c]
mov eax, dword [0x10088e30]
mov ecx, dword [esi + ebx*4]
cmp eax, dword [ecx + 4]
jle 0x10008989
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], edi
jne 0x10008989
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov eax, 0x2719
mov dword [ebp - 0x24], 0x10086bc8
mov dword [ebp - 0x28], eax
jmp 0x100089c4
push closesocket
push edi
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
lea ecx, [ebp - 0x28]
test esi, esi
setne dl
call fcn.10007cd0
cmp esi, 0xffffffff
mov esi, dword fs:[0x2c]
jne 0x100089cc
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10008c6b
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
lea ecx, [ebp - 0x28]
cmp ebx, 0xffffffff
sete dl
call fcn.10007cd0
cmp ebx, 0xffffffff
mov eax, 0xffffffff
cmove ebx, eax
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 1
cmp ebx, eax
jne 0x10008a0e
cmp dword [ebp - 0x28], 0
jne 0x10008c78
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
push dword [ebp - 0x38]
lea edx, [ebp - 0x20]
call fcn.10007f60
add esp, 8
cmp eax, 0xffffffff
jne 0x10008a31
cmp dword [ebp - 0x28], 0
jne 0x10008c78
cmp edi, 0xffffffff
jne 0x10008a8d
mov edi, dword [0x1008813c]
mov eax, dword [0x10088e30]
mov ecx, dword [esi + edi*4]
cmp eax, dword [ecx + 4]
jle 0x10008a7c
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], 0xffffffff
jne 0x10008a7c
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov eax, 0x2719
mov dword [ebp - 0x24], 0x10086bc8
or esi, 0xffffffff
jmp 0x10008abc
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
lea ecx, [ebp - 0x28]
cmp esi, 0xffffffff
sete dl
call fcn.10007cd0
mov edi, dword [0x1008813c]
cmp esi, 0xffffffff
jne 0x10008aba
mov eax, dword [ebp - 0x28]
or esi, esi
jmp 0x10008abf
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x10008ad3
test eax, eax
jne 0x10008c85
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], 1
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x29], 0
push eax
push ecx
lea edx, [ebp - 0x29]
mov ecx, ebx
call fcn.10008630
add esp, 0xc
test eax, eax
je 0x10008b02
cmp dword [ebp - 0x28], 0
jne 0x10008c85
mov dword [ebp - 0x30], 1
cmp ebx, 0xffffffff
jne 0x10008b63
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x10088e30]
cmp eax, dword [ecx + 4]
jle 0x10008b53
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], ebx
jne 0x10008b53
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
mov dword [ebp - 0x28], 0x2719
mov dword [ebp - 0x24], 0x10086bc8
jmp 0x10008b81
push 4
lea eax, [ebp - 0x30]
push eax
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x28]
setne dl
call fcn.10007cd0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], 1
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x29], 0
push eax
push ecx
lea edx, [ebp - 0x29]
mov ecx, esi
call fcn.10008630
add esp, 0xc
test eax, eax
je 0x10008bb0
cmp dword [ebp - 0x28], 0
jne 0x10008c85
mov dword [ebp - 0x30], 1
cmp esi, 0xffffffff
jne 0x10008c03
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x10088e30]
cmp eax, dword [ecx + 4]
jle 0x10008c21
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], esi
jne 0x10008c21
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
jmp 0x10008c21
push 4
lea eax, [ebp - 0x30]
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x28]
setne dl
call fcn.10007cd0
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
mov dword [eax], esi
mov dword [eax + 4], ebx
call fcn.100086f0
lea ecx, [ebp - 0x34]
call fcn.100086f0
lea ecx, [ebp - 0x44]
call fcn.100086f0
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.10045df2
mov esp, ebp
pop ebp
ret
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x28]
call fcn.100042f0
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x28]
call fcn.100042f0
mov edx, str.socket_select_interrupter
lea ecx, [ebp - 0x28]
call fcn.100042f0
int3