Function at 0x14002b190
Capabilities:
Get socket status
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14004f010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r12, rcx
mov rdi, r9
mov rcx, r8
mov r13, r8
mov rbx, rdx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14002b400
mov eax, dword [r13 + 0x4c]
cmp eax, 0x7fffffff
je 0x14002b35f
mov rcx, rbx
call qword [sym.imp.libssl_3_x64.dll_SSL_new]
mov rcx, r13
mov rsi, rax
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rsi, rsi
je 0x14002b3fb
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0x8004667e
mov rcx, r12
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r12d
call qword [sym.imp.libcrypto_3_x64.dll_BIO_new_socket]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov rcx, rax
mov rbx, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
mov r8, rbx
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.libssl_3_x64.dll_SSL_set_bio]
mov rcx, qword [rdi + 8]
mov rbp, qword [rcx + 0x68]
mov r14, qword [rcx + 0x60]
mov rcx, qword [rdi]
mov rdi, qword [rcx]
mov rcx, rsi
call qword [sym.imp.libssl_3_x64.dll_SSL_accept]
cmp eax, 1
je 0x14002b3cb
mov edx, eax
mov rcx, rsi
call qword [sym.imp.libssl_3_x64.dll_SSL_get_error]
sub eax, 2
je 0x14002b2e0
cmp eax, 1
jne 0x14002b33a
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], ebp
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14002b332
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002b2b0
jmp 0x14002b332
mov qword [rsp + 0x268], rdi
mov dword [rsp + 0x260], 1
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], ebp
nop dword [rax]
lea rax, [rsp + 0x40]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x260]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14002b332
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002b300
test ebx, ebx
jg 0x14002b266
mov rcx, rsi
call qword [sym.imp.libssl_3_x64.dll_SSL_shutdown]
mov rcx, r13
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14002b400
mov eax, dword [r13 + 0x4c]
cmp eax, 0x7fffffff
jne 0x14002b371
dec eax
mov ecx, 6
mov dword [r13 + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, rsi
call qword [sym.imp.libssl_3_x64.dll_SSL_free]
mov rcx, r13
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 0
mov edx, 0x8004667e
mov rcx, r12
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14003a020
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x66]
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 0
mov edx, 0x8004667e
mov rcx, r12
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rsi
jmp 0x14002b3a0
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3