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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14001b1f0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov qword [rcx], 0xffffffffffffffff
mov r12, rdx
mov qword [rdx], 0xffffffffffffffff
mov r14, rcx
mov dword [rsp + 0x34], reloc.WSOCK32.dll_recv
mov dword [rsp + 0x38], reloc.WSOCK32.dll_recv
mov dword [rsp + 0x30], 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
mov dword [rsp + 0x40], eax
mov edx, 1
mov eax, dword [0x14001b5b0]
mov ebx, 2
mov dword [rsp + 0x44], eax
mov ecx, ebx
inc eax
lea r8d, [rdx + 5]
mov dword [0x14001b5b0], eax
call qword [sym.imp.WSOCK32.dll_socket]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14001064a
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
jne 0x140010637
xor esi, esi
mov eax, esi
jmp 0x1400108d7
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea esi, [rax + 0xafc80]
mov eax, esi
jmp 0x1400108d7
lea rcx, str.127.0.0.1
mov qword [rsp + 0x2f0], rdi
mov dword [rsp + 0x58], ebx
xor esi, esi
call qword [sym.imp.WSOCK32.dll_inet_addr]
lea r8d, [rsi + 0x10]
mov rcx, r15
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
je 0x14001087c
lea r8, [rsp + 0x34]
mov rcx, r15
lea rdx, [rsp + 0x68]
call qword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14001087c
lea edx, [rsi + 1]
mov rcx, r15
call qword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
je 0x14001087c
lea edx, [rsi + 1]
mov ecx, ebx
lea r8d, [rsi + 6]
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [r12], rax
cmp rax, 0xffffffffffffffff
je 0x14001087c
lea r8d, [rsi + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x68]
call qword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x14001087c
mov rcx, qword [r12]
lea r8d, [rsi + 8]
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 8
je 0x140010730
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
je 0x140010726
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
add ebx, 0xafc80
jne 0x140010896
mov ebx, reloc.WSOCK32.dll_shutdown
jmp 0x140010896
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14001087c
nop dword [rax]
lea rax, [rsp + 0x48]
mov qword [rbp - 0x68], r15
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x70], 1
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x48], 1
xor ecx, ecx
mov edi, esi
call qword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x140010792
lea ecx, [rax + 0x65]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140010750
test eax, eax
je 0x140010750
lea r8, [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x78]
call qword [sym.imp.WSOCK32.dll_accept]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
je 0x14001087c
mov eax, edi
inc edi
test eax, eax
je 0x1400107c9
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [r14]
lea rdx, [rsp + 0x50]
xor r9d, r9d
lea r8d, [r9 + 8]
call qword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x140010834
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
je 0x140010886
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea ebx, [rax + 0xafc80]
cmp ebx, 0xb
je 0x1400107b6
cmp ebx, 0xafd68
je 0x1400107b6
cmp ebx, 0xafcd9
je 0x1400107b6
cmp ebx, 0xafd57
je 0x1400107b6
cmp ebx, 0xafd24
je 0x1400107b6
cmp ebx, 0xafca1
je 0x1400107b6
cmp ebx, 0xb23b3
je 0x1400107b6
jmp 0x140010896
cmp eax, 8
jne 0x140010845
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x50]
je 0x140010853
mov rcx, qword [r14]
call qword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x140010750
mov rcx, qword [r14]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], esi
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14001087c
mov rcx, r15
call qword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
jmp 0x1400108cf
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
jne 0x14001088a
mov ebx, esi
jmp 0x140010896
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea ebx, [rax + 0xafc80]
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x1400108a5
call qword [sym.imp.WSOCK32.dll_closesocket]
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x1400108b5
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [r14], 0xffffffffffffffff
mov rcx, r15
mov qword [r12], 0xffffffffffffffff
call qword [sym.imp.WSOCK32.dll_closesocket]
mov eax, ebx
mov rdi, qword [rsp + 0x2f0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140011030
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret