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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x14006f040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rdi, rcx
mov bpl, 1
mov eax, 1
xchg byte [rcx + 0xb0], al
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x14001b1de
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x88], rax
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x14001b3bf
movabs r14, 0x20c49ba5e353f7cf
lea r15, vtable.std::_Func_impl_no_alloc_class__private:_bool___cdecl_httplib::Server::listen_internal_void____ptr64::_5::_lambda_1___void___.0
nop dword [rax + rax]
mov rcx, qword [rdi + 0x88]
mov rax, qword [rdi + 0x80]
mov rdx, qword [rdi + 0x48]
mov qword [rsp + 0xa8], rdx
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x94], ecx
lea esi, [rdx + 1]
nop word [rax + rax]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14001b284
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14001b250
test ebx, ebx
jne 0x14001b29b
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x14001b398
mov rcx, qword [rdi + 0x48]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001b2da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x18
jne 0x14001b3a8
mov qword [rsp + 0x30], 1
lea rcx, [rsp + 0x30]
call fcn.14003d310
jmp 0x14001b398
mov rax, r14
imul qword [rdi + 0x68]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, dword [rdi + 0x60], 0x3e8
add edx, eax
mov dword [rsp + 0x80], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x80]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, r14
imul qword [rdi + 0x78]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, dword [rdi + 0x70], 0x3e8
add edx, eax
mov dword [rsp + 0x84], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x84]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x78], rdx
lea rdx, [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x14001b210
jmp 0x14001b3bf
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x14001b3bf
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
xor bpl, bpl
mov rbx, qword [rsp + 0x88]
mov r8, qword [rbx]
mov rcx, rbx
call qword [r8 + reloc.WS2_32.dll_recv]
nop
test rbx, rbx
je 0x14001b3e5
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
xor ecx, ecx
xchg byte [rdi + 0xb0], cl
movzx eax, bpl
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400527c0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret