Function at 0x140042090
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x14006b028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
mov sil, 1
mov eax, 1
xchg byte [rcx + 0xb0], al
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x1400420dc
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 + 0x98], rax
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x1400422e2
movabs rbp, 0x7fffffffffffffff
movabs r14, 0x7ffffffffff0bdbf
movabs r15, 0x20c49ba5e353f7cf
lea r12, vtable.std::_Func_impl_no_alloc_class__private:_bool___cdecl_httplib::Server::listen_internal_void____ptr64::_5::_lambda_1___void___.0
nop dword [rax]
mov rcx, qword [rdi + 0x48]
mov r8, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x80]
call fcn.1400107a0
test rax, rax
jne 0x14004214f
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x1400422bc
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 0x1400421f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x18
jne 0x1400422cb
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov r8, rax
cmp rbx, 0x989680
jne 0x14004219b
imul rax, r8, 0x64
jmp 0x1400421be
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
mov rax, r8
cqo
idiv rbx
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r14
jge 0x1400421dd
add rax, 0xf4240
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.14002ff90
jmp 0x1400422bc
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x30]
call fcn.14002ff90
jmp 0x1400422bc
mov rax, r15
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 + 0x90], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x90]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, r15
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 + 0x94], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x94]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], r12
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x58], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x1400422e2
jmp 0x140042120
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x1400422e2
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
xor sil, sil
mov rbx, qword [rsp + 0x98]
mov r8, qword [rbx]
mov rcx, rbx
call qword [r8 + reloc.WS2_32.dll_recv]
nop
test rbx, rbx
je 0x140042308
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
xor ecx, ecx
xchg byte [rdi + 0xb0], cl
movzx eax, sil
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14004e1e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret