Function at 0x1403079a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp 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 qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x118
mov rax, qword [0x14045e9a8]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x38], 0x10
mov dword [rsp + 0x60], 1
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.ws2_32.dll_socket]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x140307a0a
mov eax, 0xffffffff
jmp 0x140307e93
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
mov eax, 2
mov word [rsp + 0xb0], ax
mov ecx, 0x7f000001
call qword [sym.imp.ws2_32.dll_htonl]
mov dword [rsp + 0xb4], eax
xor eax, eax
mov word [rsp + 0xb2], ax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x148]
mov qword [rcx + rax], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x148]
mov qword [rcx + rax], 0xffffffffffffffff
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov r8d, 0xfffffffb
mov edx, 0xffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140307aaf
jmp 0x140307e4d
mov r8d, 0x10
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140307ad2
jmp 0x140307e4d
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140307af6
cmp dword [rsp + 0x38], 0x10
jge 0x140307afb
jmp 0x140307e4d
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140307b15
jmp 0x140307e4d
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.ws2_32.dll_socket]
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x148]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x148]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x140307b5a
jmp 0x140307e4d
mov eax, 8
imul rax, rax, 0
mov r8d, 0x10
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140307b8d
jmp 0x140307e4d
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.140325810
test eax, eax
jge 0x140307ba5
jmp 0x140307e4d
mov eax, 0x10
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + rax + 0xd0], rcx
mov eax, 0x10
imul rax, rax, 0
mov ecx, 0x300
mov word [rsp + rax + 0xd8], cx
mov eax, 0x10
imul rax, rax, 0
xor ecx, ecx
mov word [rsp + rax + 0xda], cx
mov r8d, 0x3e8
mov edx, 1
lea rcx, [rsp + 0xd0]
call fcn.1402ea070
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_accept]
mov ecx, 8
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x148]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x148]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x140307c43
jmp 0x140307e4d
lea rcx, [rsp + 0x90]
call fcn.1402d1340
lea rcx, [rsp + 0xc0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0
lea rax, [rsp + rax + 0xf0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], 9
mov r8d, 9
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call fcn.1402f5540
test eax, eax
je 0x140307ca2
jmp 0x140307e4d
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 9
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ws2_32.dll_send]
mov eax, 8
imul rax, rax, 1
mov ecx, 0x10
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x148]
mov rax, qword [rdx + rax]
mov qword [rsp + rcx + 0xd0], rax
mov eax, 0x10
imul rax, rax, 0
mov ecx, 0x300
mov word [rsp + rax + 0xd8], cx
mov eax, 0x10
imul rax, rax, 0
xor ecx, ecx
mov word [rsp + rax + 0xda], cx
mov r8d, 0x3e8
mov edx, 1
lea rcx, [rsp + 0xd0]
call fcn.1402ea070
mov eax, 8
imul rax, rax, 1
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ws2_32.dll_recv]
cdqe
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140307ddc
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0xc0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xa0]
call fcn.1402d1340
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.1402d1420
cmp rax, 0xea60
jle 0x140307dce
jmp 0x140307e4d
cmp dword [rsp + 0x4c], 0x2733
jne 0x140307dda
jmp 0x140307e33
jmp 0x140307e4d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140307e10
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140307e33
mov r8d, 9
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xe0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140307e31
jmp 0x140307e4d
jmp 0x140307e3e
xor eax, eax
cmp eax, 1
jne 0x140307cce
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_closesocket]
xor eax, eax
jmp 0x140307e93
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_closesocket]
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ws2_32.dll_closesocket]
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ws2_32.dll_closesocket]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140354350
add rsp, 0x118
pop rdi
pop rsi
ret