Function at 0x1400a2390
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push r12
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x98
mov ebx, 2
mov dword [rbp + 0x7f], reloc.WS2_32.dll_recv
mov ecx, ebx
mov edx, 1
mov r8d, 6
mov r12, r9
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a23e0
add rsp, 0x98
pop r15
pop r12
pop rbx
pop rbp
ret
mov qword [rsp + 0xc0], rsi
mov ecx, 0x7f000001
mov qword [rsp + 0xc8], rdi
xor edi, edi
mov qword [rsp + 0xd8], r13
mov qword [rbp + 0x17], rdi
mov qword [rsp + 0x90], r14
mov word [rbp + 0xf], bx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp + 0x6f]
mov word [rbp + 0x11], di
mov edx, 0xffff
mov dword [rbp + 0x13], eax
mov r8d, 0xfffffffb
mov qword [r12 + 8], 0xffffffffffffffff
mov rcx, r15
mov qword [r12], 0xffffffffffffffff
mov dword [rbp + 0x6f], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400a26f2
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0xf]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400a26f2
lea r8, [rbp + 0x7f]
mov rcx, r15
lea rdx, [rbp + 0xf]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400a26f2
cmp dword [rbp + 0x7f], 0x10
jl 0x1400a26f2
mov edx, 1
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400a26f2
xor r8d, r8d
mov edx, 1
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12], rax
cmp rax, 0xffffffffffffffff
je 0x1400a26f2
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0xf]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400a26f2
lea r8, [rbp + 0x6f]
mov dword [rbp + 0x6f], 1
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x1400a26f2
mov edx, 1
mov qword [rbp - 1], r15
mov r8d, 0x3e8
mov dword [rbp + 7], 0x300
lea rcx, [rbp - 1]
call fcn.140087460
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_accept]
mov qword [r12 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400a26f2
lea rcx, [rbp + 0x1f]
call fcn.140083250
mov r14d, 9
lea r13, [rbp - 0x11]
mov esi, r14d
lea rdi, [rbp - 0x21]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x31], xmm0
nop dword [rax]
mov rax, qword [0x1401630c0]
mov ebx, 4
cmp rsi, rbx
cmovb rbx, rsi
mov r9, qword [rax + 0x50]
test r9, r9
je 0x1400a26f2
mov r8d, 4
lea rdx, [rbp + 0x6f]
xor ecx, ecx
call r9
test eax, eax
jne 0x1400a26f2
test rbx, rbx
je 0x1400a25c3
mov eax, dword [rbp + 0x6f]
sub rsi, rbx
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x1400a25b2
mov dword [rbp + 0x6f], eax
test rsi, rsi
jne 0x1400a2570
mov rcx, qword [r12]
lea rdx, [rbp - 0x21]
xor r9d, r9d
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_send]
mov esi, dword [rbp - 0x29]
mov rdi, qword [rbp - 0x31]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r12 + 8]
lea rcx, [rbp - 1]
mov edx, 1
mov qword [rbp - 1], rax
mov r8d, 0x3e8
mov dword [rbp + 7], 0x300
call fcn.140087460
mov rcx, qword [r12 + 8]
xor r9d, r9d
mov r8d, r14d
mov rdx, r13
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400a2743
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [0x140163eb8], 0
mov ebx, eax
je 0x1400a2675
lea rcx, [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x31]
cqo
idiv qword [0x140163eb0]
mov r9, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x140163eb0]
mov rcx, rax
jmp 0x1400a269c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov r9d, edx
sub r8d, ecx
imul ecx, r8d, 0x3e8
sub r9, rdi
movabs rax, 0x20c49ba5e353f7
cmp r9, rax
jge 0x1400a26f2
movabs rax, 0xffdf3b645a1cac09
cmp r9, rax
jle 0x1400a26e6
sub ecx, esi
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r9, 0x3e8
movsxd rcx, edx
add rcx, rax
cmp rcx, 0xea60
jg 0x1400a26f2
cmp ebx, 0x2733
je 0x1400a25f0
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r12]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r12 + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r13, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xc0]
mov r14, qword [rsp + 0x90]
add rsp, 0x98
pop r15
pop r12
pop rbx
pop rbp
ret
sub r14, rcx
je 0x1400a2750
add r13, rcx
jmp 0x1400a25f0
mov rax, qword [rbp - 0x21]
cmp rax, qword [rbp - 0x11]
jne 0x1400a26f2
movzx eax, byte [rbp - 0x19]
cmp al, byte [rbp - 9]
jne 0x1400a26f2
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400a2715