Function at 0x140058f10
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 [0x1400cb008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13, qword [rbp + 0x1e8]
xor ebx, ebx
mov r12, rcx
mov dword [rsp + 0x48], r9d
xor ecx, ecx
mov qword [rsp + 0x40], rbx
xorps xmm0, xmm0
mov esi, r8d
mov r14, rdx
mov r15d, ecx
movups xmmword [rsp + 0x30], xmm0
test r13, r13
je 0x140058f89
movups xmm0, xmmword [r13]
movsd xmm1, qword [r13 + 0x10]
movsd qword [rsp + 0x40], xmm1
mov rbx, qword [rsp + 0x40]
movups xmmword [rsp + 0x30], xmm0
mov edi, dword [rsp + 0x30]
nop dword [rax]
test rbx, rbx
je 0x140058fa6
test edi, edi
js 0x1400591c2
mov qword [rsp + 0x34], 0
movsxd rax, r12d
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r9d
mov dword [rsp + 0x54], 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.140086800
mov rcx, qword [rbp + 0x1f0]
mov dword [rcx], eax
mov ecx, dword [rcx]
test ecx, ecx
jne 0x140059196
test ebx, ebx
je 0x140059165
js 0x14005913c
lea r8d, [rcx + 1]
xor r9d, r9d
mov rcx, r12
lea rdx, [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x140059113
movzx ecx, byte [rsp + 0x4c]
cmp esi, eax
jle 0x140059036
mov byte [r14], cl
inc r14
dec esi
mov rbx, qword [rsp + 0x40]
mov edi, dword [rsp + 0x30]
test rbx, rbx
je 0x140059097
movsxd rdx, dword [rsp + 0x38]
test edx, edx
js 0x140059076
movsxd r8, dword [rsp + 0x34]
lea eax, [rdx + 1]
add eax, r8d
cmp eax, edi
jg 0x140059076
lea rax, [rbx + r8]
mov r8, rdx
inc edx
mov dword [rsp + 0x38], edx
add r8, rax
je 0x140059076
mov byte [r8], cl
movzx ecx, byte [rsp + 0x4c]
movzx ecx, cl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
test eax, eax
jne 0x140059092
movzx ecx, byte [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x1400590b2
movzx ecx, byte [rsp + 0x4c]
cmp r15d, 0xd
jne 0x1400590a2
cmp cl, 0xa
je 0x140059104
mov r9d, dword [rsp + 0x48]
movzx r15d, cl
xor ecx, ecx
jmp 0x140058f90
cmp byte [rbp + 0x1e0], 0
je 0x1400590e9
cmp dword [0x1400d3ed4], 1
jb 0x1400590e9
mov ecx, 0x1000121
call fcn.14000ec70
test al, al
je 0x1400590e9
movzx r8d, byte [rsp + 0x4c]
lea rdx, str.recv_line:_Non_ASCII_character___d__read_on_recv__
mov ecx, 0x1000121
call fcn.14000e820
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
movups xmmword [r13], xmm0
movsd qword [r13 + 0x10], xmm1
jmp 0x140059196
test esi, esi
jle 0x14005910c
mov byte [r14], 0
mov al, 1
jmp 0x140059198
cmp byte [rbp + 0x1e0], 0
je 0x140059196
cmp dword [0x1400d3ed4], 1
jb 0x140059196
mov ecx, 0x1000121
call fcn.14000ec70
test al, al
je 0x140059196
lea rdx, str.recv_line:_TCP_port_read_failed_on_recv__
jmp 0x14005918c
cmp byte [rbp + 0x1e0], 0
je 0x140059196
cmp dword [0x1400d3ed4], 1
jb 0x140059196
mov ecx, 0x1000121
call fcn.14000ec70
test al, al
je 0x140059196
lea rdx, str.recv_line:_TCP_port_read_failed_on_select__
jmp 0x14005918c
cmp byte [rbp + 0x1e0], 0
je 0x140059196
cmp dword [0x1400d3ed4], 1
jb 0x140059196
mov ecx, 0x1000121
call fcn.14000ec70
test al, al
je 0x140059196
lea rdx, str.recv_line:_TCP_port_read_timeout_expired
mov ecx, 0x1000121
call fcn.14000e820
xor al, al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14008aca0
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_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpnproxy.c
call fcn.14000ed60
int3