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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov r12, rcx
lea rcx, [rbp - 0x38]
call fcn.1400ad260
mov dword [rsp + 0x28], 1
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r13 + 1]
mov esi, 2
lea r8d, [r13 + 6]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
mov r14, 0xffffffffffffffff
cmp rax, r14
je 0x1400fc89a
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
jmp 0x1400fc8c0
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
mov rdi, r14
mov qword [rbp + 0x60], rdi
cmp rdi, 0xffffffffffffffff
jne 0x1400fc943
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400af4e0
mov dword [rbp + 0x50], 1
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movaps xmm0, xmmword [rbp - 0x38]
movdqa xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x20], r13
mov word [rbp - 0x28], si
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x24], eax
mov word [rbp - 0x26], r13w
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movaps xmm0, xmmword [rbp - 0x38]
movdqa xmmword [rbp - 0x38], xmm0
lea r15d, [rdi + 0x11]
jmp 0x1400fca4c
mov dword [rbp + 0x50], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400fc981
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
jmp 0x1400fc9a4
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x20], r13
mov word [rbp - 0x28], si
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov r15d, reloc.WS2_32.dll_recv
mov word [rbp - 0x26], r13w
mov dword [rbp - 0x24], eax
mov r8d, r15d
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov esi, eax
test eax, eax
jne 0x1400fca24
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
mov dword [rbp + 0x48], reloc.WS2_32.dll_recv
lea r8, [rbp + 0x48]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov esi, eax
movsxd r15, dword [rbp + 0x48]
test eax, eax
jne 0x1400fca83
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
jmp 0x1400fcabb
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
cmp esi, 0xffffffff
jne 0x1400fc9ec
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400af4e0
cmp rdi, 0xffffffffffffffff
jne 0x1400fc9ec
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movaps xmm0, xmmword [rbp - 0x38]
movdqa xmmword [rbp - 0x38], xmm0
jmp 0x1400fcaab
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
cmp esi, 0xffffffff
jne 0x1400fcabb
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400af4e0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x24], eax
jne 0x1400fcad6
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x24], eax
cmp rdi, 0xffffffffffffffff
jne 0x1400fcafd
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movaps xmm0, xmmword [rbp - 0x38]
movdqa xmmword [rbp - 0x38], xmm0
jmp 0x1400fcb4c
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
mov esi, eax
test eax, eax
jne 0x1400fcb24
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
jmp 0x1400fcb5c
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
cmp esi, 0xffffffff
jne 0x1400fcb5c
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400af4e0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r9 + 1]
lea ecx, [rdx + 1]
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400fcb99
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
jmp 0x1400fcbbf
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
mov rsi, r14
mov qword [rbp + 0x48], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400fcbfa
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400af4e0
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movaps xmm0, xmmword [rbp - 0x38]
movdqa xmmword [rbp - 0x38], xmm0
jmp 0x1400fcc4d
mov r8d, r15d
lea rdx, [rbp - 0x28]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov r15d, eax
test eax, eax
jne 0x1400fcc24
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
jmp 0x1400fcc5d
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
cmp r15d, 0xffffffff
jne 0x1400fcc5d
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400af4e0
cmp rdi, 0xffffffffffffffff
jne 0x1400fcc84
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movaps xmm0, xmmword [rbp - 0x38]
movdqa xmmword [rbp - 0x38], xmm0
jmp 0x1400fcce1
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400fccbe
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov qword [rbp - 0x30], rax
mov r14, rbx
jmp 0x1400fcce1
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x48], r14
cmp r14, 0xffffffffffffffff
jne 0x1400fccfb
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400af4e0
mov dword [rbp + 0x58], 1
cmp rsi, 0xffffffffffffffff
jne 0x1400fcd29
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movaps xmm0, xmmword [rbp - 0x38]
movdqa xmmword [rbp - 0x38], xmm0
jmp 0x1400fcd7b
lea r8, [rbp + 0x58]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
js 0x1400fcd58
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
test ebx, ebx
je 0x1400fcd8b
jmp 0x1400fcd7b
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400af4e0
mov dword [rbp + 0x50], 1
cmp rsi, 0xffffffffffffffff
jne 0x1400fcdb9
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movaps xmm0, xmmword [rbp - 0x38]
movdqa xmmword [rbp - 0x38], xmm0
jmp 0x1400fce11
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x50]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400fcdee
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
jmp 0x1400fce11
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
mov dword [rbp + 0x58], 1
cmp r14, 0xffffffffffffffff
jne 0x1400fce3f
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movaps xmm0, xmmword [rbp - 0x38]
movdqa xmmword [rbp - 0x38], xmm0
jmp 0x1400fce91
lea r8, [rbp + 0x58]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
js 0x1400fce6e
lea rcx, [rbp - 0x38]
call fcn.1400ad2a0
mov dword [rbp - 0x38], r13d
mov qword [rbp - 0x30], rax
test ebx, ebx
je 0x1400fcea1
jmp 0x1400fce91
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.1400ad280
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400af4e0
mov dword [rbp + 0x50], 1
cmp r14, 0xffffffffffffffff
jne 0x1400fcebd
call fcn.1400af580
mov r8, rax
mov edx, 0x2719
jmp 0x1400fcef2
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x50]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400fcefb
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.1400ad280
mov qword [r12], r14
mov qword [r12 + 8], rsi
cmp rdi, 0xffffffffffffffff
je 0x1400fcf2a
lea rcx, [rbp - 0x38]
call fcn.1400ad260
mov byte [rbp + 0x48], 0
lea r9, [rbp - 0x38]
mov r8b, 1
lea rdx, [rbp + 0x48]
mov rcx, rdi
call fcn.1400fbde0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret