Function at 0x14000e220
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, rcx
movzx eax, byte [rcx + 0x99]
test al, al
je 0x14000e261
xor al, al
jmp 0x14000e514
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], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
xor r14d, r14d
mov qword [rbp + 8], r14
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call fcn.14001f100
mov qword [rbp + 8], rax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000e2c6
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov ecx, r14d
mov qword [rsp + 0x78], rcx
mov byte [rbp + 0x10], sil
test rcx, rcx
je 0x14000e2e5
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x78], r14
mov rcx, qword [rdi + 0x40]
test rcx, rcx
jne 0x14000e2f5
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 [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x14000e3c5
movabs r15, 0x20c49ba5e353f7cf
lea r12, vtable.std::_Func_impl_no_alloc_class__private:_bool___cdecl_httplib::Server::listen_internal_void____ptr64::_29::_lambda_2___void___.0
nop
mov r8, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x80]
mov rcx, qword [rdi + 0x48]
call fcn.140003ac0
test rax, rax
jne 0x14000e34b
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x14000e4d9
mov rcx, qword [rdi + 0x48]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_WSAAccept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000e40f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x18
jne 0x14000e390
mov qword [rbp - 0x40], 1
lea rcx, [rbp - 0x40]
call fcn.140019510
jmp 0x14000e4d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000e4d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0xb
je 0x14000e4d9
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x14000e3c5
mov rcx, qword [rdi + 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 0x14000e3e5
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
movzx eax, sil
xor al, 1
xchg byte [rdi + 0x99], al
cmp byte [rbp + 0x10], 0
je 0x14000e4f2
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x14000e4ec
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
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 [rbp - 0x40], edx
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
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 [rbp - 0x40], edx
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbx
mov qword [rbp - 0x80], r12
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x78], xmm0
lea rdx, [rbp - 0x80]
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x80]
call qword [rax + 8]
test al, al
jne 0x14000e4d9
mov edx, 2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x14000e320
jmp 0x14000e3c5
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14000e510
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.140027be0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret