Function at 0x1400373f0
Capabilities:
Act as tcp client
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
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1401c5538]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xor esi, esi
mov qword [rbp - 0x29], rsi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea edx, [rsi + 1]
lea ecx, [rsi + 2]
lea r8d, [rsi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x39]
call fcn.14000a290
mov r15, 0xffffffffffffffff
cmp rdi, r15
cmove rdi, r15
mov qword [rbp + 0xf], rdi
cmp rdi, r15
jne 0x14003749a
test byte [rbp - 0x29], 1
je 0x14003749a
cmp qword [rbp - 0x29], 1
jne 0x140037c7c
cmp dword [rbp - 0x39], esi
setne al
test al, al
jne 0x140037c7c
mov dword [rbp - 5], 1
movabs rbx, 0x4d54ee85da812030
lea r13, [0x1401c1018]
cmp rdi, 0xffffffffffffffff
jne 0x14003750b
mov dword [rbp - 0x1d], esi
mov rcx, qword [0x1401c1020]
add rcx, rbx
cmp rcx, 1
jbe 0x1400374df
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400374e1
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp - 0x29], xmm1
jmp 0x140037539
mov dword [rsp + 0x20], 4
lea r9, [rbp - 5]
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 - 0x39]
call fcn.14000a290
mov r14d, setsockopt
mov qword [rbp + 0x27], rsi
mov eax, 2
mov word [rbp + 0x1f], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x23], eax
mov word [rbp + 0x21], si
cmp rdi, 0xffffffffffffffff
jne 0x1400375b7
mov dword [rbp - 0x1d], esi
mov rcx, qword [0x1401c1020]
add rcx, rbx
cmp rcx, 1
jbe 0x14003758b
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x14003758d
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp - 0x29], xmm1
jmp 0x1400375dc
mov r8d, r14d
lea rdx, [rbp + 0x1f]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x39]
call fcn.14000a290
cmp ebx, 0xffffffff
jne 0x1400375fc
test byte [rbp - 0x29], 1
je 0x1400375fc
cmp qword [rbp - 0x29], 1
jne 0x140037c7c
cmp dword [rbp - 0x39], 0
setne al
test al, al
jne 0x140037c7c
cmp rdi, 0xffffffffffffffff
jne 0x14003765f
mov dword [rbp - 0x1d], esi
mov rcx, qword [0x1401c1020]
movabs rbx, 0x4d54ee85da812030
add rcx, rbx
cmp rcx, 1
jbe 0x140037633
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140037635
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp - 0x29], xmm1
jmp 0x140037697
mov dword [rbp + 7], r14d
lea r8, [rbp + 7]
lea rdx, [rbp + 0x1f]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r14, dword [rbp + 7]
test eax, eax
setne dl
lea rcx, [rbp - 0x39]
call fcn.14000a290
cmp ebx, 0xffffffff
movabs rbx, 0x4d54ee85da812030
jne 0x1400376b7
test byte [rbp - 0x29], 1
je 0x1400376b7
cmp qword [rbp - 0x29], 1
jne 0x140037c7c
cmp dword [rbp - 0x39], 0
setne al
test al, al
jne 0x140037c7c
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp + 0x23], eax
jne 0x1400376d2
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x23], eax
cmp rdi, 0xffffffffffffffff
jne 0x14003772b
mov dword [rbp - 0x1d], esi
mov rcx, qword [0x1401c1020]
add rcx, rbx
cmp rcx, 1
jbe 0x1400376ff
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140037701
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp - 0x29], xmm1
jmp 0x14003774e
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 - 0x39]
call fcn.14000a290
cmp ebx, 0xffffffff
jne 0x14003776e
test byte [rbp - 0x29], 1
je 0x14003776e
cmp qword [rbp - 0x29], 1
jne 0x140037c7c
cmp dword [rbp - 0x39], 0
setne al
test al, al
jne 0x140037c7c
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], esi
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
sete dl
lea rcx, [rbp - 0x39]
call fcn.14000a290
cmp rsi, 0xffffffffffffffff
cmove rsi, r15
mov qword [rbp + 7], rsi
cmp rsi, 0xffffffffffffffff
jne 0x14003783b
test byte [rbp - 0x29], 1
je 0x1400377d7
cmp qword [rbp - 0x29], 1
jne 0x140037c8d
cmp dword [rbp - 0x39], 0
setne al
test al, al
jne 0x140037c8d
cmp rsi, 0xffffffffffffffff
jne 0x14003783b
mov dword [rbp - 0x1d], 0
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1401c1020]
cmp rcx, 1
jbe 0x14003780f
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140037811
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp - 0x29], xmm1
jmp 0x140037860
mov r8d, r14d
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x39]
call fcn.14000a290
cmp ebx, 0xffffffff
jne 0x140037880
test byte [rbp - 0x29], 1
je 0x140037880
cmp qword [rbp - 0x29], 1
jne 0x140037c8d
cmp dword [rbp - 0x39], 0
setne al
test al, al
jne 0x140037c8d
cmp rdi, 0xffffffffffffffff
jne 0x1400378d4
xor r14d, r14d
mov dword [rbp - 0x1d], r14d
mov rcx, qword [0x1401c1020]
movabs rbx, 0x4d54ee85da812030
add rcx, rbx
cmp rcx, 1
jbe 0x1400378bb
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400378bd
mov al, 1
movzx eax, al
add rax, 2
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
jmp 0x140037977
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov r14, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x39]
call fcn.14000a290
cmp r14, 0xffffffffffffffff
jne 0x14003790d
xor r14d, r14d
movabs rbx, 0x4d54ee85da812030
jmp 0x14003798d
mov rax, qword [rbp - 0x29]
test rax, rax
jne 0x14003791b
mov rbx, r13
jmp 0x14003792b
lea rbx, section..data
cmp rax, 1
cmovne rbx, qword [rbp - 0x31]
xor r15d, r15d
mov dword [rbp - 0x1d], r15d
mov rax, qword [rbx + 8]
movabs rcx, 0x4d54ee85da812030
add rax, rcx
cmp rax, 1
jbe 0x140037956
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140037958
xor al, al
movzx eax, al
add rax, 2
mov dword [rbp - 0x21], r15d
mov qword [rbp - 0x19], rbx
mov r15, r14
xor r14d, r14d
movabs rbx, 0x4d54ee85da812030
mov qword [rbp - 0x11], rax
movsd xmm1, qword [rbp - 0x11]
movups xmm0, xmmword [rbp - 0x21]
movsd qword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp + 0x17], r15
cmp r15, 0xffffffffffffffff
jne 0x1400379b7
test byte [rbp - 0x29], 1
je 0x1400379b7
cmp qword [rbp - 0x29], 1
jne 0x140037c6b
cmp dword [rbp - 0x39], 0
setne al
test al, al
jne 0x140037c6b
mov dword [rbp - 1], 1
cmp rsi, 0xffffffffffffffff
jne 0x140037a18
mov dword [rbp - 0x1d], r14d
mov rcx, qword [0x1401c1020]
add rcx, rbx
cmp rcx, 1
jbe 0x1400379ec
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400379ee
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp - 0x29], xmm1
jmp 0x140037a3e
lea r8, [rbp - 1]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rbp - 0x39]
call fcn.14000a290
test ebx, ebx
je 0x140037a5e
test byte [rbp - 0x29], 1
je 0x140037a5e
cmp qword [rbp - 0x29], 1
jne 0x140037c6b
cmp dword [rbp - 0x39], 0
setne al
test al, al
jne 0x140037c6b
mov dword [rbp - 5], 1
cmp rsi, 0xffffffffffffffff
jne 0x140037ac9
mov dword [rbp - 0x1d], r14d
mov rcx, qword [0x1401c1020]
movabs rbx, 0x4d54ee85da812030
add rcx, rbx
cmp rcx, 1
jbe 0x140037a9d
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140037a9f
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp - 0x29], xmm1
jmp 0x140037aff
mov dword [rsp + 0x20], 4
lea r9, [rbp - 5]
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 - 0x39]
call fcn.14000a290
movabs rbx, 0x4d54ee85da812030
mov dword [rbp - 1], 1
cmp r15, 0xffffffffffffffff
jne 0x140037b60
mov dword [rbp - 0x1d], r14d
mov rcx, qword [0x1401c1020]
add rcx, rbx
cmp rcx, 1
jbe 0x140037b34
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140037b36
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp - 0x29], xmm1
jmp 0x140037b86
lea r8, [rbp - 1]
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rbp - 0x39]
call fcn.14000a290
test ebx, ebx
je 0x140037ba6
test byte [rbp - 0x29], 1
je 0x140037ba6
cmp qword [rbp - 0x29], 1
jne 0x140037c6b
cmp dword [rbp - 0x39], 0
setne al
test al, al
jne 0x140037c6b
mov dword [rbp - 5], 1
cmp r15, 0xffffffffffffffff
jne 0x140037be1
mov rdx, qword [0x1401c1020]
movabs rcx, 0x4d54ee85da812030
add rdx, rcx
cmp rdx, 1
jbe 0x140037c0d
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140037c0d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 5]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x39]
call fcn.14000a290
mov qword [r12], r15
mov qword [r12 + 8], rsi
cmp rdi, 0xffffffffffffffff
je 0x140037c3e
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r14
mov byte [rbp - 9], 0
lea r9, [rbp - 0x21]
mov r8b, 1
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.140009870
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401453a0
lea r11, [rsp + 0xa0]
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 - 0x39]
call fcn.140004d40
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x39]
call fcn.140004d40
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x39]
call fcn.140004d40
int3