Function at 0x1400202e0
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:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401121f0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rcx
xor r13d, r13d
mov qword [rbp - 0x38], r13
lea rax, [0x140112e30]
mov qword [rbp - 0x30], rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r13 + 1]
lea r8d, [r13 + 6]
mov r14d, 2
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
mov rsi, 0xffffffffffffffff
cmp rdi, rsi
cmove rdi, rsi
mov qword [rbp - 0x48], rdi
cmp rdi, rsi
jne 0x1400203c5
cmp dword [rbp - 0x38], r13d
jne 0x140020780
mov dword [rbp - 0x28], 1
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
mov qword [rbp - 0x18], r13
mov word [rbp - 0x20], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r13w
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
lea r15d, [r13 + 0x10]
jmp 0x140020441
mov dword [rbp - 0x28], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x28]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
mov qword [rbp - 0x18], r13
mov word [rbp - 0x20], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r13w
mov r15d, select
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
cmp ebx, 0xffffffff
jne 0x140020461
cmp dword [rbp - 0x38], 0
jne 0x140020780
cmp rdi, 0xffffffffffffffff
jne 0x140020461
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
jmp 0x140020492
mov dword [rbp - shutdown], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r15, dword [rbp - 0x10]
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
cmp ebx, 0xffffffff
jne 0x14002049c
cmp dword [rbp - 0x38], 0
jne 0x140020780
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x1c], eax
jne 0x1400204b7
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
cmp rdi, 0xffffffffffffffff
jne 0x1400204cd
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
jmp 0x1400204f0
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
cmp ebx, 0xffffffff
jne 0x1400204fa
cmp dword [rbp - 0x38], 0
jne 0x140020780
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r14, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
cmp r14, 0xffffffffffffffff
cmove r14, rsi
mov qword [rbp - 0x10], r14
cmp r14, 0xffffffffffffffff
jne 0x14002055a
cmp dword [rbp - 0x38], 0
jne 0x140020791
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
jmp 0x14002057f
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
cmp ebx, 0xffffffff
jne 0x140020589
cmp dword [rbp - 0x38], 0
jne 0x140020791
cmp rdi, 0xffffffffffffffff
jne 0x14002059f
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
jmp 0x1400205cd
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
cmp rbx, 0xffffffffffffffff
je 0x1400205cd
mov dword [rbp - 0x38], r13d
mov rsi, rbx
mov qword [rbp - 0x40], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400205e1
cmp dword [rbp - 0x38], 0
jne 0x14002076f
mov dword [rbp - 0x24], 1
cmp r14, 0xffffffffffffffff
jne 0x1400205fe
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
jmp 0x140020624
lea r8, [rbp - 0x24]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
sets dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
test ebx, ebx
je 0x14002062e
cmp dword [rbp - 0x38], 0
jne 0x14002076f
mov dword [rbp - 0x28], 1
cmp r14, 0xffffffffffffffff
jne 0x14002064b
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
jmp 0x140020677
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x28]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
mov dword [rbp - 0x24], 1
cmp rsi, 0xffffffffffffffff
jne 0x140020694
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
jmp 0x1400206ba
lea r8, [rbp - 0x24]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
sets dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
test ebx, ebx
je 0x1400206c4
cmp dword [rbp - 0x38], 0
jne 0x14002076f
mov dword [rbp - 0x28], 1
cmp rsi, 0xffffffffffffffff
jne 0x1400206e1
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140032a70
jmp 0x14002070d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x28]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14001fa70
mov qword [r12], rsi
mov qword [r12 + 8], r14
cmp rdi, 0xffffffffffffffff
je 0x140020742
mov qword [rbp - 0x38], r13
lea rax, [0x140112e30]
mov qword [rbp - 0x30], rax
mov byte [rbp - 0x50], 0
lea r9, [rbp - 0x38]
mov r8b, 1
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.14001fb00
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a0cd0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400035b0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400035b0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.1400035b0
int3