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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0xc8]
mov rsi, r8
mov rbx, rcx
test edi, edi
jne 0x140067c92
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 0x140067aca
mov ecx, dword [rdx + 8]
test ecx, ecx
jns 0x140067ac1
test rax, rax
je 0x140067aca
mov ecx, ebp
cmp dword [rdx + 8], ecx
jl 0x140067aca
movsxd rdx, dword [rdx + 4]
add rdx, rax
jmp 0x140067acf
mov rdx, rbp
mov ecx, ebp
mov r10, qword [rbx + 0x148]
test r10, r10
je 0x140067cf2
movsxd r9, dword [rbx + 0x140]
test r9d, r9d
js 0x140067cf2
cmp ecx, 0xf4240
jae 0x140067cf2
movsxd r8, dword [rbx + 0x13c]
lea eax, [r8 + r9]
add eax, ecx
cmp eax, dword [rbx + 0x138]
jg 0x140067cf2
lea eax, [r9 + rcx]
add r8, r10
mov dword [rbx + 0x140], eax
mov rax, r9
add rax, r8
je 0x140067cf2
movsxd r8, ecx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x148]
test rcx, rcx
je 0x140067b5d
cmp dword [rbx + 0x140], ebp
jl 0x140067b5d
movsxd rax, dword [rbx + 0x13c]
add rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140067b67
mov qword [rsp + 0x58], rbp
test rcx, rcx
je 0x140067b71
mov eax, dword [rbx + 0x140]
test eax, eax
jns 0x140067b73
mov eax, ebp
mov rcx, qword [rbx + 0xe8]
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x140067d0b
mov eax, dword [rbx + 0x24]
mov dword [rbx + 0xf4], ebp
cmp eax, 4
ja 0x140067d79
cmp eax, 1
jne 0x140067c1c
mov byte [rbx + 0xfc], al
lea rcx, [rbx + 0x100]
movups xmm0, xmmword [rsi]
cmp word [rsi], 0x17
movups xmmword [rcx], xmm0
jne 0x140067bd3
movsd xmm1, qword [rsi + 0x10]
mov edx, 0x1c
movsd qword [rcx + 0x10], xmm1
mov eax, dword [rsi + 0x18]
mov dword [rcx + 0x18], eax
jmp 0x140067bd8
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 0x140067c62
add eax, 0xfffffffd
cmp eax, 1
ja 0x140067d60
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 0x140067cb1
mov rcx, qword [rbx + 0xe8]
mov edi, 2
mov dword [rbx + 0xc8], edi
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x140067d24
mov edi, dword [rbx + 0xc8]
mov dword [rbx + 0xf8], ebp
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008aca0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x3e5
jne 0x140067cce
mov dword [rbx + 0xc8], edi
mov dword [rbx + 0xf8], eax
jmp 0x140067c92
mov rcx, qword [rbx + 0xe8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x140067d3d
mov edi, 2
mov dword [rbx + 0xf8], esi
mov dword [rbx + 0xc8], edi
jmp 0x140067c92
lea r8, str.buf_copy_sock__writes.buf__buf_
mov edx, 0xe93
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.ResetEvent_sock__writes.overlapped.hEvent_
mov edx, 0xe9a
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.SetEvent_sock__writes.overlapped.hEvent_
mov edx, 0xed0
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.SetEvent_sock__writes.overlapped.hEvent_
mov edx, 0xee5
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, [0x14008d704]
mov edx, 0xec8
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, [0x14008d704]
mov edx, 0xc88
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3