Function at 0x140065f20
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov edi, dword [rcx + 0xc8]
mov rsi, r8
mov rbx, rcx
test edi, edi
jne 0x14006615b
movups xmm0, xmmword [rcx + 0x120]
xor ebp, ebp
movsd xmm1, qword [rcx + 0x130]
movups xmmword [rcx + 0x138], xmm0
movsd qword [rcx + 0x148], xmm1
mov dword [rcx + 0x140], ebp
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x140065f93
mov ecx, dword [rdx + 8]
test ecx, ecx
jns 0x140065f8a
test rax, rax
je 0x140065f93
mov ecx, ebp
cmp dword [rdx + 8], ecx
jl 0x140065f93
movsxd rdx, dword [rdx + 4]
add rdx, rax
jmp 0x140065f98
mov rdx, rbp
mov ecx, ebp
mov r10, qword [rbx + 0x148]
test r10, r10
je 0x1400661b6
movsxd r9, dword [rbx + 0x140]
test r9d, r9d
js 0x1400661b6
cmp ecx, 0xf4240
jae 0x1400661b6
movsxd r8, dword [rbx + 0x13c]
lea eax, [r8 + r9]
add eax, ecx
cmp eax, dword [rbx + 0x138]
jg 0x1400661b6
lea eax, [r9 + rcx]
add r8, r10
mov dword [rbx + 0x140], eax
mov rax, r9
add rax, r8
je 0x1400661b6
movsxd r8, ecx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x148]
test rcx, rcx
je 0x140066026
cmp dword [rbx + 0x140], ebp
jl 0x140066026
movsxd rax, dword [rbx + 0x13c]
add rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140066030
mov qword [rsp + 0x58], rbp
test rcx, rcx
je 0x14006603a
mov eax, dword [rbx + 0x140]
test eax, eax
jns 0x14006603c
mov eax, ebp
mov rcx, qword [rbx + 0xe8]
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x1400661cf
mov eax, dword [rbx + 0x24]
mov dword [rbx + 0xf4], ebp
cmp eax, 4
ja 0x140066239
cmp eax, 1
jne 0x1400660e5
mov byte [rbx + 0xfc], al
lea rcx, [rbx + 0x100]
movups xmm0, xmmword [rsi]
cmp word [rsi], 0x17
movups xmmword [rcx], xmm0
jne 0x14006609c
movsd xmm1, qword [rsi + 0x10]
mov edx, 0x1c
movsd qword [rcx + 0x10], xmm1
mov eax, dword [rsi + 0x18]
mov dword [rcx + 0x18], eax
jmp 0x1400660a1
mov edx, reloc.WS2_32.dll_recv
mov qword [rsp + 0x40], rbp
lea rax, [rbx + 0xd0]
mov qword [rsp + 0x38], rax
lea r9, [rbx + 0xf0]
mov dword [rsp + 0x30], edx
mov edi, 1
mov qword [rsp + 0x28], rcx
mov r8d, edi
mov dword [rbx + 0x11c], edx
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x30]
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WS2_32.dll_WSASendTo]
jmp 0x14006612b
add eax, 0xfffffffd
cmp eax, 1
ja 0x140066220
mov rcx, qword [rbx + 0x30]
lea rax, [rbx + 0xd0]
mov qword [rsp + 0x30], rbp
lea r9, [rbx + 0xf0]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov edi, 1
mov dword [rsp + 0x20], ebp
mov r8d, edi
mov byte [rbx + 0xfc], bpl
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x140066175
mov rcx, qword [rbx + 0xe8]
mov edi, 2
mov dword [rbx + 0xc8], edi
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1400661e8
mov edi, dword [rbx + 0xc8]
mov dword [rbx + 0xf8], ebp
mov rbx, qword [rsp + 0x70]
mov eax, edi
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x3e5
jne 0x140066192
mov dword [rbx + 0xc8], edi
mov dword [rbx + 0xf8], eax
jmp 0x14006615b
mov rcx, qword [rbx + 0xe8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x140066201
mov edi, 2
mov dword [rbx + 0xf8], esi
mov dword [rbx + 0xc8], edi
jmp 0x14006615b
lea r8, str.buf_copy_sock__writes.buf__buf_
mov edx, 0xe93
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.ResetEvent_sock__writes.overlapped.hEvent_
mov edx, 0xe9a
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.SetEvent_sock__writes.overlapped.hEvent_
mov edx, 0xed0
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.SetEvent_sock__writes.overlapped.hEvent_
mov edx, 0xee5
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, [0x14008b3f4]
mov edx, 0xec8
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, [0x14008b3f4]
mov edx, 0xc88
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3