Function at 0x1400ba170
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1401970d0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r14, r8
mov r15, rdx
mov rsi, rcx
xor r12d, r12d
cmp dword [rcx + 0x1a8], 1
je 0x1400ba243
lea r8, str.asio::listen_called_from_the_wrong_state
lea edx, [r12 + 2]
mov rcx, qword [rcx + 0x188]
call fcn.1400877e0
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea rbx, [0x1401a5de0]
mov eax, dword [rcx + rax]
cmp dword [0x1401a5e28], eax
jle 0x1400ba231
lea rcx, [0x1401a5e28]
call fcn.14010aa98
cmp dword [0x1401a5e28], 0xffffffff
jne 0x1400ba231
mov qword [0x1401a5de8], rbx
lea rax, vtable.websocketpp::error::category.0
mov qword [0x1401a5de0], rax
lea rcx, [0x140150c00]
call fcn.14010ae18
lea rcx, [0x1401a5e28]
call fcn.14010aa2c
mov dword [rsp + 0x30], 9
mov qword [rsp + 0x38], rbx
jmp 0x1400ba69d
lea r8, str.asio::listen
mov edx, 0x400
mov rcx, qword [rcx + 0x198]
call fcn.140082df0
mov qword [rbp - 0x50], r12
call fcn.14010c950
mov qword [rbp - 0x48], rax
mov eax, 2
mov ecx, 0x17
cmp word [r15], ax
cmovne eax, ecx
mov dword [rsp + 0x44], eax
mov rcx, qword [rsi + 0x150]
lea r8, [rcx + 8]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x70]
mov rcx, qword [rcx]
call fcn.140095c10
mov rcx, qword [rsi + 0x150]
cmp dword [rbp - 0x50], r12d
je 0x1400ba2f0
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400ba2bc
call fcn.1400bf580
lea r9, [rbp - 0x50]
lea r8, str.asio_listen
mov rcx, rsi
call fcn.1400b83e0
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400b8540
movups xmm0, xmmword [rsp + 0x50]
jmp 0x1400ba6a2
mov eax, r12d
cmp byte [rsi + 0x184], r12b
setne al
mov dword [rsp + 0x40], eax
mov rbx, qword [rcx + 8]
cmp rbx, 0xffffffffffffffff
jne 0x1400ba32c
call fcn.14010c950
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x1400ba565
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.14010c950
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x50], xmm0
test edi, edi
jne 0x1400ba55d
mov dword [rsp + 0x30], r12d
call fcn.14010c950
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x50], xmm0
cmp qword [rsi + 0xb8], r12
je 0x1400ba5ac
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov rax, qword [rsi + 0x158]
test rax, rax
je 0x1400ba3bf
lock inc dword [rax + 8]
mov rax, qword [rsi + 0x150]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 0x158]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x70], rax
mov rcx, qword [rsi + 0xb8]
test rcx, rcx
je 0x1400ba6c7
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x68]
call qword [rax + select]
nop
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400ba436
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ba436
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400ba436
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [r14], xmm0
cmp dword [r14], 0
je 0x1400ba5ac
mov rcx, qword [rsi + 0x150]
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400ba45b
call fcn.1400bf580
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x40]
call fcn.14010eb70
lea rcx, [rbp - 0x40]
call fcn.1400816a0
nop
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov r8d, dword [r14]
lea rdx, [rsp + 0x70]
call qword [rax + select]
nop
lea rdx, str.asio_listen
lea rcx, [rbp - 0x30]
call fcn.140067460
mov rcx, rax
lea rdx, str._error:
call fcn.140067460
mov rbx, rax
mov rcx, qword [r14 + 8]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
mov rdx, rax
mov rcx, rbx
call fcn.140067460
mov rcx, rax
mov dl, 0x3a
call fcn.140088840
mov rcx, rax
mov edx, dword [r14]
call fcn.140081960
lea rdx, [0x14016aa40]
mov rcx, rax
call fcn.140067460
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rcx, rax
call fcn.140067cf0
mov rcx, rax
lea rdx, [0x14016aa44]
call fcn.140067460
nop
lea rcx, [rsp + 0x70]
call fcn.14000e730
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x28]
call fcn.140084c00
nop
lea r8, [rsp + 0x50]
mov edx, 4
mov rcx, qword [rsi + 0x188]
call fcn.140085230
nop
lea rcx, [rsp + 0x50]
call fcn.14000e730
nop
lea rcx, [rbp - 0x40]
call fcn.140072ba0
movups xmm0, xmmword [r14]
jmp 0x1400ba6a2
test eax, eax
je 0x1400ba399
mov rcx, qword [rsi + 0x150]
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400ba578
call fcn.1400bf580
lea r9, [rbp - 0x50]
lea r8, str.asio_listen
mov rcx, rsi
call fcn.1400b83e0
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.1400b8540
movups xmm0, xmmword [rbp - 0x50]
jmp 0x1400ba6a2
mov eax, 0x1c
mov r8d, select
cmp word [r15], 2
cmovne r8d, eax
mov rcx, qword [rsi + 0x150]
lea r9, [rbp - 0x50]
mov rdx, r15
mov rcx, qword [rcx + 8]
call fcn.140077a00
mov rcx, qword [rsi + 0x150]
cmp dword [rbp - 0x50], 0
je 0x1400ba623
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400ba5f0
call fcn.1400bf580
lea r9, [rbp - 0x50]
lea r8, str.asio_listen
mov rcx, rsi
call fcn.1400b83e0
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400b8540
movups xmm0, xmmword [rsp + 0x70]
jmp 0x1400ba6a2
lea r8, [rbp - 0x50]
mov edx, dword [rsi + 0x180]
mov rcx, qword [rcx + 8]
call fcn.140077de0
cmp dword [rbp - 0x50], 0
je 0x1400ba682
mov rcx, qword [rsi + 0x150]
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400ba64f
call fcn.1400bf580
lea r9, [rbp - 0x50]
lea r8, str.asio_listen
mov rcx, rsi
call fcn.1400b83e0
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400b8540
movups xmm0, xmmword [rsp + 0x50]
jmp 0x1400ba6a2
mov dword [rsi + 0x1a8], 2
mov dword [rsp + 0x30], r12d
lea rax, [0x140197f18]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14], xmm0
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14010a950
add rsp, 0x1d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400e7abc
nop
int3