Function at 0x7ff62ffcccc0
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 [0x7ff630065e28]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, 0x10
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 0x7ff62ffccd0e
jmp 0x7ff62ffccf42
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 0x7ff62ffccf09
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x7ff62ffccf09
lea r8, [rbp - 0x59]
mov rcx, rsi
lea rdx, [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x7ff62ffccf09
cmp dword [rbp - 0x59], ebx
jl 0x7ff62ffccf09
lea edx, [r12 + 1]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x7ff62ffccf09
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 0x7ff62ffccf09
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x7ff62ffccf09
lea edx, [r12 + 1]
mov rcx, rsi
call fcn.7ff62fff4c40
test eax, eax
js 0x7ff62ffccf09
lea edx, [r12 + 1]
mov qword [rbp + 0x17], rsi
mov r8d, 0x3e8
mov dword [rbp + 0x1f], 0x300
lea rcx, [rbp + 0x17]
call fcn.7ff62ffc8e60
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 0x7ff62ffccf09
lea rcx, [rbp - 0x49]
call fcn.7ff62ffa9bd0
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.7ff62ffc8e60
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 0x7ff62ffccf5c
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.7ff62ffa9bd0
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x49]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x49], xmm0
call fcn.7ff62ffa9c60
cmp rax, 0xea60
jg 0x7ff62ffccf09
cmp r15d, 0x2733
je 0x7ff62ffcce82
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.7ff62ffbc1f0
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
sub rbx, rcx
je 0x7ff62ffccf69
add rdi, rcx
jmp 0x7ff62ffcce82
mov rax, qword [rbp - 9]
cmp rax, qword [rbp + 7]
jne 0x7ff62ffccf09
mov rax, qword [rbp - 1]
cmp rax, qword [rbp + 0xf]
jne 0x7ff62ffccf09
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x7ff62ffccf2a