Function at 0x18006f850
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180106040]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rbx, rcx
mov sil, 1
mov eax, 1
xchg byte [rcx + 0x98], al
lea rax, vtable.std::_Func_impl_no_alloc_class__private:_bool___cdecl_httplib::Server::listen_internal_void____ptr64::_2::_lambda_1___void___.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
xor edi, edi
mov qword [rbp + 8], rdi
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.18007c400
mov byte [rbp + 0x10], sil
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18006f8e6
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x78], rdi
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x18006f8f6
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 [rbp - 0x38], rax
mov rax, qword [rbx + 0x48]
cmp rax, 0xffffffffffffffff
je 0x18006fa04
movabs r14, 0x7ffffffffff0bdbf
mov r12d, 0xff
movabs r15, 0x7fffffffffffffff
movabs r13, 0x20c49ba5e353f7cf
mov r8, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x80]
mov rcx, qword [rbx + 0x48]
call fcn.180066ac0
test rax, rax
jne 0x18006f95d
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x18006faee
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18006fa43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x18
jne 0x18006f9cf
lea rcx, [rsp + 0x30]
call fcn.180064260
mov rax, qword [rsp + 0x30]
cmp rax, r14
je 0x18006f9bd
mov ecx, 1
cmovl ecx, r12d
test cl, cl
jns 0x18006f9bd
add rax, 0xf4240
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x40]
call fcn.180083450
jmp 0x18006faee
mov qword [rbp - 0x40], r15
lea rcx, [rbp - 0x40]
call fcn.180083450
jmp 0x18006faee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x18006faee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0xb
je 0x18006faee
mov rax, qword [rbx + 0x48]
cmp rax, 0xffffffffffffffff
je 0x18006fa04
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
xor sil, sil
mov rbx, qword [rbp - 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
nop
test rbx, rbx
je 0x18006fa25
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp byte [rbp + 0x10], 0
je 0x18006fb07
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x18006fb01
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
mov rax, r13
imul qword [rbx + 0x68]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, dword [rbx + 0x60], 0x3e8
add edx, eax
mov dword [rbp - 0x40], edx
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, r13
imul qword [rbx + 0x78]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, dword [rbx + 0x70], 0x3e8
add edx, eax
mov dword [rbp - 0x40], edx
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
lea rdx, vtable.std::_Func_impl_no_alloc_class__private:_bool___cdecl_httplib::Server::listen_internal_void____ptr64::_5::_lambda_2___void___.0
mov qword [rbp - 0x80], rdx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rdi
lea rdx, [rbp - 0x80]
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x80]
call qword [rax + 8]
mov rax, qword [rbx + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x18006f932
jmp 0x18006fa04
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x18006fb25
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
lea rax, [rbp - 0x30]
cmp rcx, rax
setne dl
call r8
nop
movzx eax, sil
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1800caa50
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret