Function at 0x140036950
Capabilities:
Get socket status
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 - 0x250]
sub rsp, 0x350
mov rax, qword [0x14016d4c0]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rdi, rcx
mov r14b, 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
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140040420
mov byte [rbp + 0x20], r14b
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400369e4
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov qword [rsp + 0x78], 0
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x140036c67
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 0x140036afd
movabs r15, 0x20c49ba5e353f7cf
lea r12, vtable.std::_Func_impl_no_alloc_class__private:_bool___cdecl_httplib::Server::listen_internal_void____ptr64::_26::_lambda_2___void___.0
nop word [rax + rax]
mov rcx, qword [rdi + 0x88]
mov rax, qword [rdi + 0x80]
mov rdx, qword [rdi + 0x48]
mov qword [rbp + 0x38], rdx
mov dword [rbp + 0x30], 1
mov dword [rbp - 0x30], eax
mov dword [rbp - 0x2c], ecx
lea esi, [rdx + 1]
nop word [rax + rax]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x30]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x140036a7b
call fcn.1400d4108
cmp dword [rax], 4
je 0x140036a50
test ebx, ebx
jne 0x140036a8e
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
jmp 0x140036c4e
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 0x140036b84
call fcn.1400d4108
cmp dword [rax], 0x18
jne 0x140036aca
mov qword [rbp - 0x40], 1
lea rcx, [rbp - 0x40]
call fcn.140042720
jmp 0x140036c4e
call fcn.1400d4108
cmp dword [rax], 4
je 0x140036c4e
call fcn.1400d4108
cmp dword [rax], 0xb
je 0x140036c4e
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x140036afd
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
xor r14b, r14b
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 0x140036b1e
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp byte [rbp + 0x20], 0
je 0x140036b37
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140036c61
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140036b55
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
lea rax, [rbp - 0x20]
cmp rcx, rax
setne dl
call r8
nop
movzx eax, r14b
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400c4df0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
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 + reloc.WS2_32.dll_htonl]
test al, al
jne 0x140036c4e
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 0x140036a20
jmp 0x140036afd
call fcn.1400c289c
nop
call fcn.1400c289c
int3