Function at 0x180083040
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
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1801925c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, reloc.WS2_32.dll_recv
mov edi, 2
mov ecx, edi
mov dword [rbp - 0x59], ebx
mov r14, r9
lea edx, [rbx - 0xf]
lea r8d, [rbx - 0xa]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18008308e
jmp 0x1800832c2
mov qword [rsp + 0xf0], r12
mov ecx, 0x7f000001
xor r12d, r12d
mov qword [rsp + 0xf8], r13
mov qword [rbp - 0x11], r12
mov qword [rsp + 0x100], r15
mov word [rbp - 0x19], di
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x55]
mov word [rbp - 0x17], r12w
mov edx, 0xffff
mov dword [rbp - 0x15], eax
lea r8d, [r12 - 5]
mov qword [r14 + 8], 0xffffffffffffffff
mov rcx, rsi
mov qword [r14], 0xffffffffffffffff
mov dword [rbp - 0x55], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x180083289
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x180083289
lea r8, [rbp - 0x59]
mov rcx, rsi
lea rdx, [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x180083289
cmp dword [rbp - 0x59], ebx
jl 0x180083289
lea edx, [r12 + 1]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x180083289
xor r8d, r8d
lea edx, [r12 + 1]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
je 0x180083289
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x180083289
lea edx, [r12 + 1]
mov rcx, rsi
call fcn.1800a8ae0
test eax, eax
js 0x180083289
lea edx, [r12 + 1]
mov qword [rbp + 0x17], rsi
mov r8d, 0x3e8
mov dword [rbp + 0x1f], 0x300
lea rcx, [rbp + 0x17]
call fcn.18007f370
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [r14 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x180083289
lea rcx, [rbp - 0x49]
call fcn.18006c830
mov rcx, qword [r14]
lea rdx, [rbp - 9]
xor r9d, r9d
lea rdi, [rbp + 7]
mov r8d, ebx
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 9], xmm0
call qword [sym.imp.WS2_32.dll_send]
mov rax, qword [r14 + 8]
lea rcx, [rbp + 0x17]
mov edx, 1
mov qword [rbp + 0x17], rax
mov r8d, 0x3e8
mov dword [rbp + 0x1f], 0x300
call fcn.18007f370
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1800832dc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movaps xmm0, xmmword [rbp - 9]
lea rcx, [rbp - 0x29]
movdqa xmmword [rbp - 0x39], xmm0
mov r15d, eax
call fcn.18006c830
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x49]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x49], xmm0
call fcn.18006c8c0
cmp rax, 0xea60
jg 0x180083289
cmp r15d, 0x2733
je 0x180083202
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r14 + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r13, qword [rsp + 0xf8]
mov r12, qword [rsp + 0xf0]
mov r15, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800b1bb0
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
sub rbx, rcx
je 0x1800832e9
add rdi, rcx
jmp 0x180083202
mov rax, qword [rbp - 9]
cmp rax, qword [rbp + 7]
jne 0x180083289
mov rax, qword [rbp - 1]
cmp rax, qword [rbp + 0xf]
jne 0x180083289
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1800832aa