Function at 0x1401da4a0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov edx, 1
mov dword [rbp - 0x29], reloc.WS2_32.dll_recv
mov edi, 2
mov rsi, r9
mov ecx, edi
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1401da4ed
jmp 0x1401da815
mov qword [rsp + 0xc0], r12
mov ecx, 0x7f000001
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0x90], r15
xor r15d, r15d
mov qword [rbp - 9], r15
mov word [rbp - 0x11], di
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x21]
mov word [rbp - 0xf], r15w
mov edx, 0xffff
mov dword [rbp - 0xd], eax
lea r8d, [r15 - 5]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rsi], 0xffffffffffffffff
mov dword [rbp - 0x21], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401da7d4
lea r8d, [r15 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x11]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1401da7d4
lea r8, [rbp - 0x29]
mov rcx, rbx
lea rdx, [rbp - 0x11]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401da7d4
cmp dword [rbp - 0x29], 0x10
jl 0x1401da7d4
lea edx, [r15 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1401da7d4
xor r8d, r8d
lea edx, [r15 + 1]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1401da7d4
lea r8d, [r15 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x11]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401da7d4
lea r8, [rbp - 0x21]
mov dword [rbp - 0x21], 1
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x1401da7d4
lea edx, [r15 + 1]
mov qword [rbp - 1], rbx
mov r8d, 0x3e8
mov dword [rbp + 7], 0x300
lea rcx, [rbp - 1]
call fcn.1401a6f30
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1401da7d4
lea rcx, [rbp - 0x21]
call fcn.14019cca0
mov edi, 9
lea rdx, [rbp + 0xf]
mov r8d, edi
lea r14, [rbp + 0x1f]
xor ecx, ecx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x21], xmm0
call fcn.140182d00
test eax, eax
jne 0x1401da7d4
mov rcx, qword [rsi]
lea rdx, [rbp + 0xf]
xor r9d, r9d
mov r8d, edi
call qword [sym.imp.WS2_32.dll_send]
mov r13d, dword [rbp - 0x19]
mov r12, qword [rbp - 0x21]
nop word [rax + rax]
mov rax, qword [rsi + 8]
lea rcx, [rbp - 1]
mov edx, 1
mov qword [rbp - 1], rax
mov r8d, 0x3e8
mov dword [rbp + 7], 0x300
call fcn.1401a6f30
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, edi
mov rdx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1401da7a7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [0x140336ac1], 0
mov r15d, eax
je 0x1401da724
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x21]
cqo
idiv qword [0x140336ab8]
mov r9, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x140336ab8]
mov rcx, rax
jmp 0x1401da74b
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, r12
movabs rax, 0x20c49ba5e353f7
cmp r9, rax
jge 0x1401da7d4
movabs rax, 0xffdf3b645a1cac09
cmp r9, rax
jle 0x1401da796
sub ecx, r13d
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 0x1401da7d4
cmp r15d, 0x2733
jne 0x1401da7d4
xor r15d, r15d
jmp 0x1401da6a0
sub rdi, rcx
je 0x1401da7b4
add r14, rcx
jmp 0x1401da6a0
mov rax, qword [rbp + 0xf]
cmp rax, qword [rbp + 0x1f]
jne 0x1401da7d4
movzx eax, byte [rbp + 0x17]
cmp al, byte [rbp + 0x27]
jne 0x1401da7d4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1401da7f5
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401f4d70
add rsp, 0x98
pop rdi
pop rsi
pop rbx
pop rbp
ret