Function at 0x140065c00
Capabilities:
Receive data
Receive 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 + 0x40]
mov rbx, rcx
test edi, edi
jne 0x140065dee
mov eax, dword [rcx + 0x24]
cmp eax, 4
ja 0x140065e3e
cmp eax, 1
jne 0x140065c4b
movups xmm0, xmmword [rcx + 0x98]
movsd xmm1, qword [rcx + 0xa8]
movups xmmword [rcx + 0xb0], xmm0
jmp 0x140065c7b
add eax, 0xfffffffd
cmp eax, 1
ja 0x140065ef9
cmp qword [rcx + 0x230], 0
je 0x140065e57
movups xmm0, xmmword [rcx + 0x220]
movups xmmword [rcx + 0xb0], xmm0
movsd xmm1, qword [rcx + 0x230]
movsd qword [rcx + 0xc0], xmm1
xor ebp, ebp
mov rcx, qword [rcx + 0xc0]
test rcx, rcx
je 0x140065caa
cmp dword [rbx + 0xb8], ebp
jl 0x140065caa
movsxd rax, dword [rbx + 0xb4]
add rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140065cb4
mov qword [rsp + 0x58], rbp
test rcx, rcx
je 0x140065cc4
mov eax, dword [rbx + 0xb8]
test eax, eax
js 0x140065cc4
mov dword [rsp + 0x50], eax
jmp 0x140065ccf
mov dword [rsp + 0x50], ebp
mov eax, ebp
test rcx, rcx
je 0x140065cd9
mov ecx, dword [rbx + 0xb8]
test ecx, ecx
jns 0x140065cdb
mov ecx, ebp
cmp eax, ecx
ja 0x140065e70
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x140065e89
mov eax, dword [rbx + 0x24]
lea r8, [rbx + 0x6c]
mov dword [r8], ebp
cmp eax, 4
ja 0x140065e3e
mov esi, 0x1c
cmp eax, 1
jne 0x140065d5c
mov qword [rsp + 0x40], rbp
lea rdx, [rbx + 0x94]
mov byte [rbx + 0x74], al
lea rcx, [rbx + 0x78]
lea rax, [rbx + 0x48]
mov dword [rdx], esi
mov qword [rsp + 0x38], rax
lea r9, [rbx + 0x68]
mov qword [rsp + 0x30], rdx
mov edi, 1
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x30]
mov qword [rsp + 0x20], r8
mov r8d, edi
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
jmp 0x140065d9a
add eax, 0xfffffffd
cmp eax, 1
ja 0x140065ee0
mov rcx, qword [rbx + 0x30]
lea rax, [rbx + 0x48]
mov qword [rsp + 0x30], rbp
lea r9, [rbx + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r8
mov edi, 1
mov r8d, edi
mov byte [rbx + 0x74], bpl
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x140065e08
movzx eax, word [rbx + 0x28]
cmp ax, 2
je 0x140065db1
cmp ax, 0x17
cmovne esi, ebp
jmp 0x140065db6
mov esi, reloc.WS2_32.dll_recv
cmp byte [rbx + 0x74], bpl
je 0x140065dce
test esi, esi
je 0x140065dce
mov ecx, dword [rbx + 0x94]
cmp ecx, esi
jne 0x140065ea2
mov rcx, qword [rbx + 0x60]
mov edi, 2
mov dword [rbx + 0x40], edi
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x140065eaa
mov edi, dword [rbx + 0x40]
mov dword [rbx + 0x70], 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 0x140065e1f
mov dword [rbx + 0x40], edi
mov dword [rbx + 0x70], eax
jmp 0x140065dee
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x140065ec3
mov edi, 2
mov dword [rbx + 0x70], esi
mov dword [rbx + 0x40], edi
jmp 0x140065dee
lea r8, [0x14008b3f4]
mov edx, 0xc88
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.buf_defined_sb__next_
mov edx, 0xa9f
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.wsabuf_0_.len___BLEN_sock__reads.buf_
mov edx, 0xe35
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.ResetEvent_sock__reads.overlapped.hEvent_
mov edx, 0xe38
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
mov edx, esi
call fcn.140065a80
int3
lea r8, str.SetEvent_sock__reads.overlapped.hEvent_
mov edx, 0xe67
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.SetEvent_sock__reads.overlapped.hEvent_
mov edx, 0xe7b
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, [0x14008b3f4]
mov edx, 0xe59
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, [0x14008b3f4]
mov edx, 0xe2d
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3