Function at 0x14002a4a0
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:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, r9
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x14002a6a0
mov rdi, rax
mov qword [rsp + 0x98], 0
mov word [rsp + 0x90], 2
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x94], eax
mov word [rsp + 0x92], 0
pcmpeqd xmm0, xmm0
movdqu xmmword [rsi], xmm0
mov dword [rsp + 0x80], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x80]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14002a67b
lea rdx, [rsp + 0x90]
mov rcx, rdi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14002a67b
lea rdx, [rsp + 0x90]
lea r8, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14002a67b
cmp dword [rsp + 0x68], 0x10
jl 0x14002a67b
mov rcx, rdi
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002a67b
mov ecx, 2
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14002a67b
lea rdx, [rsp + 0x90]
mov rcx, rax
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002a67b
mov rcx, rdi
mov edx, 1
call fcn.140050c50
test eax, eax
js 0x14002a67b
mov qword [rsp + 0x80], rdi
mov dword [rsp + 0x88], 0x300
lea rcx, [rsp + 0x80]
mov r8d, 0x3e8
mov edx, 1
call fcn.14004d330
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14002a67b
lea rcx, [rsp + 0x58]
call fcn.140019d90
lea rdx, [rsp + 0x77]
mov ebx, 9
mov r8d, 9
xor ecx, ecx
call fcn.14004ebc0
test eax, eax
je 0x14002a6cb
mov rbx, qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call rbx
mov rcx, qword [rsi]
call rbx
mov rdi, qword [rsi + 8]
mov esi, 0xffffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14002a6a5
mov esi, 0xffffffff
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140890ac0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi]
lea rdx, [rsp + 0x77]
mov r8d, 9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
lea r14, [rsp + 0x6e]
mov r15, qword [sym.imp.WS2_32.dll_recv]
lea r12, [rsp + 0x48]
lea r13, [rsp + 0x30]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0x300
mov r8d, 0x3e8
lea rcx, [rsp + 0x80]
mov edx, 1
call fcn.14004d330
mov rcx, qword [rsi + 8]
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call r15
cmp eax, 0xffffffff
jne 0x14002a77c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov rcx, r12
call fcn.140019d90
movdqu xmm0, xmmword [rsp + 0x58]
movdqa xmmword [rsp + 0x30], xmm0
mov rcx, r12
mov rdx, r13
call fcn.140019e50
cmp rax, 0xea60
jg 0x14002a67b
cmp ebp, 0x2733
je 0x14002a6f8
jmp 0x14002a67b
cdqe
sub rbx, rax
je 0x14002a78b
add r14, rax
jmp 0x14002a6f8
mov rax, qword [rsp + 0x77]
xor rax, qword [rsp + 0x6e]
movzx ecx, byte [rsp + 0x7f]
xor cl, byte [rsp + 0x76]
movzx ecx, cl
or rcx, rax
jne 0x14002a67b
xor esi, esi
jmp 0x14002a695