Function at 0x140083740
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140492fc0]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
mov dword [rbp - 0x68], r8d
mov qword [rbp], rax
lea rsi, [rbp - 0x50]
mov dword [rbp + 8], eax
xor edi, edi
test r8, r8
mov qword [rsp + 0x68], rdi
mov r15, r9
mov qword [rbp - 0x74], rdi
cmovne rax, rdx
mov dword [rbp - 0x6c], edi
mov qword [rbp - 0x60], rax
lea r8, [r9 + 8]
xorps xmm0, xmm0
mov dword [rsp + 0x78], 1
movzx edx, word [r15 + 0x1e]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x70], rax
lea r9, [rbp - 0x10]
lea rax, [rbp - 0x10]
mov r14, rcx
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x7c], xmm0
movups xmmword [rbp - 0x10], xmm0
call fcn.1400843d0
mov eax, dword [r15 + 0x14]
xor r12b, r12b
cmp dword [rsp + 0x68], 0x1c
mov dword [rsp + 0x54], edi
jne 0x1400838ec
cmp eax, 0xffffffff
je 0x140083814
add dword [rbp - 0x80], 0x18
lea rsi, [rbp - 0x38]
mov qword [rbp - 0x50], setsockopt
mov dword [rbp - 0x48], 0x29
mov dword [rbp - 0x44], reloc.WS2_32.dll_setsockopt
mov dword [rbp - 0x40], eax
mov rcx, r15
call fcn.140048c50
mov ecx, dword [r15 + 0x10]
test al, al
jne 0x140083860
add dword [rbp - 0x80], 0x28
lea rdx, [rbp + 0x10]
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi], 0x24
mov dword [rsi + 8], 0x29
mov dword [rsi + 0xc], setsockopt
mov dword [rsi + 0x20], ecx
mov rcx, r15
call fcn.1400499e0
movups xmm0, xmmword [rbp + 0x10]
movups xmmword [rsi + 0x10], xmm0
jmp 0x14008395d
test ecx, ecx
je 0x14008395d
mov rcx, qword [r14 + 0xa8]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov edx, 0x29
mov dword [rsp + 0x58], 4
mov r8d, 9
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400838cd
mov rcx, qword [r14 + 0xa8]
lea r9, [r15 + 0x10]
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 9
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400838cd
mov r12b, 1
jmp 0x14008395d
mov edx, 7
mov r8d, reloc.WS2_32.dll_select
mov rcx, r14
call fcn.140070600
mov rax, 0xffffffffffffffff
jmp 0x140083a38
cmp eax, 0xffffffff
je 0x14008390e
add dword [rbp - 0x80], 0x18
lea rsi, [rbp - 0x38]
mov qword [rbp - 0x50], setsockopt
mov dword [rbp - 0x48], edi
mov dword [rbp - 0x44], 4
mov dword [rbp - 0x40], eax
cmp dword [r15 + 0x10], edi
jne 0x140083920
mov rcx, r15
call fcn.140048c50
test al, al
jne 0x14008395d
add dword [rbp - 0x80], 0x18
xor eax, eax
mov qword [rsi + 0x10], rax
mov rcx, r15
mov eax, dword [r15 + 0x10]
mov qword [rsi], 0x18
mov dword [rsi + 8], edi
mov dword [rsi + 0xc], setsockopt
mov dword [rsi + 0x14], eax
call fcn.1400499d0
mov rcx, qword [r14 + 0xa8]
lea r8, [rsi + 0x10]
mov edx, eax
call qword [sym.imp.WS2_32.dll_WSAHtonl]
cmp dword [rbp - 0x80], edi
lea rax, [rbp - 0x50]
mov rcx, qword [r14 + 0xa8]
lea r9, [rsp + 0x50]
cmove rax, qword [rbp - 0x78]
mov qword [rbp - 0x78], rax
mov rax, qword [r14 + 0xc8]
mov dword [rsp + 0x50], edi
test rax, rax
je 0x14008399f
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call rax
jmp 0x1400839cf
mov eax, dword [rsp + 0x68]
lea rdx, [rbp - 0x68]
mov qword [rsp + 0x40], rdi
mov r8d, 1
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140083a07
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
mov rcx, r14
cmp eax, 0x2738
setne r8b
add r8d, 0x11
cmp eax, 0x2738
setne dil
lea edx, [rdi + 6]
call fcn.140070600
mov rbx, 0xffffffffffffffff
jmp 0x140083a0b
mov ebx, dword [rsp + 0x50]
test r12b, r12b
je 0x140083a35
mov rcx, qword [r14 + 0xa8]
lea r9, [rsp + 0x54]
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 9
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140229fa0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret