Function at 0x1400571f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13, qword [rbp + 0x1e8]
xor ebx, ebx
mov r12, rcx
mov dword [rsp + 0x50], r9d
xor ecx, ecx
mov qword [rsp + 0x48], rbx
xorps xmm0, xmm0
mov esi, r8d
mov r14, rdx
mov r15d, ecx
movups xmmword [rsp + 0x38], xmm0
test r13, r13
je 0x140057269
movups xmm0, xmmword [r13]
movsd xmm1, qword [r13 + 0x10]
movsd qword [rsp + 0x48], xmm1
mov rbx, qword [rsp + 0x48]
movups xmmword [rsp + 0x38], xmm0
mov edi, dword [rsp + 0x38]
nop dword [rax]
test rbx, rbx
je 0x140057286
test edi, edi
js 0x1400574a2
mov qword [rsp + 0x3c], 0
movsxd rax, r12d
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], r9d
mov dword [rsp + 0x5c], ecx
xor r9d, r9d
lea ecx, [r12 + 1]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.140084ad0
mov rcx, qword [rbp + 0x1f0]
mov dword [rcx], eax
mov ecx, dword [rcx]
test ecx, ecx
jne 0x140057476
test ebx, ebx
je 0x140057445
js 0x14005741c
lea r8d, [rcx + 1]
xor r9d, r9d
mov rcx, r12
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x1400573f3
movzx ecx, byte [rsp + 0x30]
cmp esi, eax
jle 0x140057316
mov byte [r14], cl
inc r14
dec esi
mov rbx, qword [rsp + 0x48]
mov edi, dword [rsp + 0x38]
test rbx, rbx
je 0x140057377
movsxd rdx, dword [rsp + 0x40]
test edx, edx
js 0x140057356
movsxd r8, dword [rsp + 0x3c]
lea eax, [rdx + 1]
add eax, r8d
cmp eax, edi
jg 0x140057356
lea rax, [rbx + r8]
mov r8, rdx
inc edx
mov dword [rsp + 0x40], edx
add r8, rax
je 0x140057356
mov byte [r8], cl
movzx ecx, byte [rsp + 0x30]
movzx ecx, cl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
test eax, eax
jne 0x140057372
movzx ecx, byte [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140057392
movzx ecx, byte [rsp + 0x30]
cmp r15d, 0xd
jne 0x140057382
cmp cl, 0xa
je 0x1400573e4
mov r9d, dword [rsp + 0x50]
movzx r15d, cl
xor ecx, ecx
jmp 0x140057270
cmp byte [rbp + 0x1e0], 0
je 0x1400573c9
cmp dword [0x1400cfe94], 1
jb 0x1400573c9
mov ecx, 0x1000121
call fcn.14000e3d0
test al, al
je 0x1400573c9
movzx r8d, byte [rsp + 0x30]
lea rdx, str.recv_line:_Non_ASCII_character___d__read_on_recv__
mov ecx, 0x1000121
call fcn.14000e000
movups xmm0, xmmword [rsp + 0x38]
movsd xmm1, qword [rsp + 0x48]
movups xmmword [r13], xmm0
movsd qword [r13 + 0x10], xmm1
jmp 0x140057476
test esi, esi
jle 0x1400573ec
mov byte [r14], 0
mov al, 1
jmp 0x140057478
cmp byte [rbp + 0x1e0], 0
je 0x140057476
cmp dword [0x1400cfe94], 1
jb 0x140057476
mov ecx, 0x1000121
call fcn.14000e3d0
test al, al
je 0x140057476
lea rdx, str.recv_line:_TCP_port_read_failed_on_recv__
jmp 0x14005746c
cmp byte [rbp + 0x1e0], 0
je 0x140057476
cmp dword [0x1400cfe94], 1
jb 0x140057476
mov ecx, 0x1000121
call fcn.14000e3d0
test al, al
je 0x140057476
lea rdx, str.recv_line:_TCP_port_read_failed_on_select__
jmp 0x14005746c
cmp byte [rbp + 0x1e0], 0
je 0x140057476
cmp dword [0x1400cfe94], 1
jb 0x140057476
mov ecx, 0x1000121
call fcn.14000e3d0
test al, al
je 0x140057476
lea rdx, str.recv_line:_TCP_port_read_timeout_expired
mov ecx, 0x1000121
call fcn.14000e000
xor al, al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140088150
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str.buf_init_la__0_
mov edx, 0x5c
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpnproxy.c
call fcn.14000e4c0
int3