Function at 0x1400575a0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov r13, qword [rcx]
mov qword [rbp - 0x10], rcx
mov rbx, qword [r13]
lea r12, [r13 + 8]
lea rax, [rbp - 0x10]
mov qword [rbp - 0x28], rax
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov rax, qword [rax + 8]
test rax, rax
je 0x1400575f8
mov rcx, qword [rax + 8]
jmp 0x1400575fa
xor ecx, ecx
mov edx, 0x278
mov r8d, setsockopt
call fcn.1400274f0
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0
movzx r8d, byte [r13 + 0x10]
mov rdx, qword [r12]
add rbx, 0x28
mov qword [rax + 0x20], 0
lea rcx, [0x140057c00]
mov qword [rax + 0x28], rcx
mov dword [rax + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x38], rbx
mov qword [rax + 0x40], rdx
mov qword [rbp - 8], rax
mov qword [rax + 0x48], 0xffffffffffffffff
cmp qword [r13 + 0x88], 0
je 0x140057a8c
mov byte [rbp + 0x2f], r8b
lea rsi, [r13 + 0x68]
mov qword [rbp], 0
mov rax, qword [rsi + 0x30]
mov rdi, qword [rax]
mov rax, qword [rsi + 0x18]
mov rcx, rsi
call qword [rax + 0x18]
mov rcx, rbp
lea r8, [rbp + 0x2d]
mov rdx, rax
call rdi
mov rax, qword [rbp]
mov rcx, qword [rax]
lea rax, vtable.type_info.0
mov qword [rbp], rax
mov qword [rbp + 8], 0
mov r9, qword [rcx + 0x28]
lea r8, [0x140057150]
mov rdx, rbp
call fcn.140025000
mov rdi, rax
mov rax, qword [rbp - 8]
lea r15, [rax + 0x50]
mov qword [r15], rdi
xorps xmm0, xmm0
movups xmmword [r15 + 0x18], xmm0
mov dword [r15 + 0x40], 2
mov byte [r15 + 0x44], 0
movups xmmword [r15 + 0x50], xmm0
mov dword [r15 + 0x60], 0
mov qword [r15 + 0x48], 2
lea r14, [r15 + 0x68]
cmp qword [rsi + 0x20], 0
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], r12
je 0x140057730
mov rax, qword [rsi + 0x18]
mov qword [r14 + 0x18], rax
mov rcx, qword [rsi + 0x28]
mov qword [r14 + 0x28], rcx
mov rcx, r14
mov rdx, rsi
call qword [rax + ioctlsocket]
mov rdi, qword [r15]
mov rbx, qword [r15 + 0x20]
jmp 0x14005773f
movups xmmword [r14 + 0x18], xmm0
mov qword [r14 + 0x28], 0
xor ebx, ebx
lea r12, [r15 + 8]
add r15, 0x18
mov rax, qword [rsi + 0x30]
mov qword [r14 + 0x30], rax
add rdi, 0x28
mov qword [r12], 0xffffffffffffffff
mov byte [r12 + 8], 0
xorps xmm0, xmm0
movups xmmword [r15], xmm0
test rbx, rbx
je 0x14005778a
lock dec dword [rbx + 8]
jne 0x14005778a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x14005778a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
add r13, 0x40
lea rbx, [rdi + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x50]
mov qword [r12 + 0x28], rax
mov qword [r12 + 0x30], 0
test rax, rax
movzx r14d, byte [rbp + 0x2f]
je 0x1400577bb
mov qword [rax + 0x30], r12
mov qword [rdi + 0x50], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
shr r14b, 2
and r14b, 1
mov eax, dword [r13]
mov rbx, qword [rbp - 8]
mov dword [rbx + 0xf0], eax
mov qword [rbx + 0xf8], 0
mov byte [rbx + 0x220], r14b
xorps xmm0, xmm0
movups xmmword [rbx + 0x228], xmm0
mov rax, qword [rbp - 0x10]
mov qword [rbx + 0x238], rax
lea rcx, [rbx + 0x240]
mov rdx, rsi
call fcn.1400408e0
mov qword [rbp - 0x18], rbx
mov edi, dword [r13]
mov r14, qword [rbp - 0x38]
mov rax, qword [r14 + 8]
lock inc dword [rax + 0x30]
mov r15, qword [rbp - 0x30]
cmp qword [r15], 0xffffffffffffffff
je 0x14005793a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
mov r8d, 6
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14005795c
mov rsi, rax
cmp edi, 0x17
jne 0x140057895
mov dword [rbp + 0x10], 0
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x10]
mov rcx, rsi
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1400578c1
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], 0
mov byte [rbp], 0
mov rdx, rbp
lea r9, [rbp + 0x10]
mov r8b, 1
call fcn.1400571b0
mov r8, rbx
add r8, 0x100
mov qword [rbx + 0x48], rsi
mov dword [rbp + 0x10], 0
mov rcx, qword [r15]
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x90
mov dword [rsp + 0x20], 0x90
mov rdx, rsi
xor r9d, r9d
call sub.MSWSOCK.dll_AcceptEx
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [r14 + 8]
test esi, esi
jne 0x140057a32
cmp eax, 0x3e5
je 0x140057a32
mov dword [rbx + 0x30], 1
lea rcx, [0x14009ae58]
mov qword [rbx], rcx
mov dword [rbx + 0x10], eax
jmp 0x1400579eb
mov rdi, qword [r14 + 8]
mov dword [rbx + 0x30], 1
lea rax, [0x14009ae58]
mov qword [rbx], rax
mov qword [rbx + 0x10], 0x2719
jmp 0x1400579f2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov rax, qword [0x14009ae60]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14005799f
mov rax, qword [0x14009ae58]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005799f
lea rcx, [0x14009ae58]
mov edx, esi
call rax
mov rcx, qword [rbx + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1400579cb
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], 0
mov byte [rbp], 0
mov rdx, rbp
lea r9, [rbp + 0x10]
mov r8b, 1
call fcn.1400571b0
mov qword [rbx + 0x48], 0xffffffffffffffff
mov rdi, qword [r14 + 8]
mov dword [rbx + 0x30], 1
lea rax, [0x14009ae58]
mov qword [rbx], rax
mov dword [rbx + 0x10], esi
mov dword [rbx + 0x14], 0
mov rcx, qword [rdi + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140057a64
lea rsi, [rdi + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rbx + 0x20], 0
mov rax, qword [rdi + 0x98]
test rax, rax
je 0x140057a45
mov qword [rax + 0x20], rbx
jmp 0x140057a4c
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rbx + 0x30], ecx
cmp eax, 1
je 0x1400579f2
jmp 0x140057a64
mov qword [rdi + 0x90], rbx
mov qword [rdi + 0x98], rbx
mov eax, 1
xchg dword [rdi + 0x58], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rax, [rbp - 0x20]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
lea rcx, [rbp - 0x28]
call fcn.140058b50
nop
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movups xmmword [rbp + 0x18], xmm0
lea rax, vtable.boost::asio::execution::bad_executor.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.140027ac0
int3