Function at 0x1400bd9b0
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x58], r12
mov r12, r8
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x70], r15
mov r15, rcx
mov qword [rbp + 0x48], r13
mov r13d, r9d
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x98], rdx
mov edi, dword [rbp + 0xb0]
mov ebx, dword [rbp + 0xb8]
mov qword [rbp + 0x40], 0xfffffffffffffffe
cmp qword [r12], 0xffffffffffffffff
jne 0x1400bda99
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, rsp
mov ecx, r13d
mov edx, edi
mov r8d, ebx
xor r9d, r9d
mov dword [rax + 0x20], 0
mov dword [rax + 0x28], 1
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rsi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call fcn.1400cc560
mov dword [rbp], ebx
mov qword [rbp + 8], rax
mov rbx, qword [rbp + 0xc0]
vmovups xmm0, xmmword [rbp]
vmovups xmmword [rbx], xmm0
cmp rsi, 0xffffffffffffffff
jne 0x1400bdd84
mov qword [rbp + 0x38], rsi
jne 0x1400bdb13
mov rax, qword [rbp + 0x98]
vmovups xmm0, xmmword [rbx]
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x68]
mov r12, qword [rbp + 0x58]
mov r13, qword [rbp + 0x48]
mov r15, qword [rbp + 0x70]
vmovups xmmword [rax], xmm0
lea rsp, [rbp + 0x80]
pop rbp
ret
mov eax, dword [0x1401a718c]
bts eax, 0
jb 0x1400bdac5
lea rcx, [0x140011980]
mov dword [0x1401a718c], eax
lea rax, [0x1401e35e8]
mov qword [0x1401a6eb8], rax
call fcn.140114edc
lea rax, [0x1401a6eb8]
mov dword [rbp], 1
mov qword [rbp + 8], rax
mov rdx, qword [rbp + 0xc0]
mov rcx, qword [rbp + 0x98]
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x68]
mov r12, qword [rbp + 0x58]
mov r13, qword [rbp + 0x48]
mov r15, qword [rbp + 0x70]
vmovups xmm0, xmmword [rbp]
vmovups xmmword [rdx], xmm0
vmovups xmmword [rcx], xmm0
lea rsp, [rbp + 0x80]
pop rbp
ret
mov rax, qword [r15 + 8]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
mov rdx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1400bdd5b
mov dword [rbp], 0
call fcn.1400cc560
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0xc0]
vmovups xmm0, xmmword [rbp]
vmovups xmmword [rcx], xmm0
vmovups xmm0, xmmword [rcx]
vmovups xmmword [rbp + 0x28], xmm0
cmp dword [rcx], 0
jne 0x1400bdcb9
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x38], 0xffffffffffffffff
mov qword [r12], rax
cmp edi, 1
jne 0x1400bdb82
mov byte [r12 + 8], setsockopt
jmp 0x1400bdb95
cmp edi, 2
jne 0x1400bdb8f
mov byte [r12 + 8], 0x20
jmp 0x1400bdb95
mov byte [r12 + 8], 0
mov ecx, 0x20
add r12, 0x10
xor ebx, ebx
mov qword [rbp + 0x10], r12
mov qword [rbp], rbx
mov qword [rbp + 8], rbx
mov dword [rbp + 0x1c], 0
call fcn.14010fbf8
mov rcx, rax
mov qword [rbp + 0x20], rcx
test rcx, rcx
je 0x1400bdbea
mov eax, 1
lea rdx, [0x1401e3b08]
mov dword [rcx + 8], eax
mov dword [rcx + 0xc], eax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov dword [rbp + 0x1c], 0
jmp 0x1400bdbed
mov rcx, rbx
mov qword [rbp + 8], rcx
mov rsi, qword [rbp + 0x10]
mov rax, qword [rbp]
mov rdx, qword [rbp + 8]
mov rbx, qword [rsi]
mov qword [rbp], rbx
mov rbx, qword [rsi + 8]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rbp + 8], rbx
test rbx, rbx
je 0x1400bdc65
lea rdx, [rbx + 8]
or eax, 0xffffffff
lock xadd dword [rdx], eax
dec eax
test eax, eax
jne 0x1400bdc65
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0xc]
or eax, 0xffffffff
lock xadd dword [rdx], eax
dec eax
test eax, eax
jne 0x1400bdc65
mov rsi, qword [rbx]
lea rax, [method.Concurrency::details::_RefCounter.virtual_8]
cmp rax, qword [rsi + 0x10]
jne 0x1400bdc5f
mov rcx, rbx
mov edx, 1
call qword [rsi]
jmp 0x1400bdc65
mov rcx, rbx
call qword [rsi + select]
mov dword [rbp + 0x28], 0
call fcn.1400cc560
nop
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x98]
cmp qword [rbp + 0x38], 0xffffffffffffffff
vmovups xmm0, xmmword [rbp + 0x28]
vmovups xmmword [rax], xmm0
vmovups xmmword [rdx], xmm0
jne 0x1400bdcf0
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x68]
mov r12, qword [rbp + 0x58]
mov r13, qword [rbp + 0x48]
mov r15, qword [rbp + 0x70]
lea rsp, [rbp + 0x80]
pop rbp
ret
mov rax, qword [rbp + 0x98]
vmovups xmm0, xmmword [rcx]
vmovups xmmword [rax], xmm0
cmp qword [rbp + 0x38], 0xffffffffffffffff
jne 0x1400bdd2b
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x60]
mov rdi, qword [rbp + 0x68]
mov r12, qword [rbp + 0x58]
mov r13, qword [rbp + 0x48]
mov r15, qword [rbp + 0x70]
lea rsp, [rbp + 0x80]
pop rbp
ret
lea rax, [rbp + 0x38]
mov qword [rbp + 0x10], rax
mov dword [rbp], 0
call fcn.1400cc560
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x1c]
mov rax, qword [rbp + 0x10]
mov r8d, 1
mov byte [rbp + 0x1c], 0
lea r9, [rbp]
mov rcx, qword [rax]
call fcn.1400bae90
jmp 0x1400bdc98
mov dword [rbp], 0
call fcn.1400cc560
mov r8d, 1
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x38]
lea r9, [rbp]
mov qword [rbp + 8], rax
mov byte [rbp + 0x10], 0
call fcn.1400bae90
jmp 0x1400bdccf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400cc560
mov dword [rbp], ebx
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0xc0]
vmovups xmm0, xmmword [rbp]
vmovups xmmword [rcx], xmm0
jmp 0x1400bdb53
cmp r13d, 0x17
je 0x1400bddb3
mov dword [rbp], 0
call fcn.1400cc560
mov qword [rbp + 8], rax
cmp rsi, 0xffffffffffffffff
mov rbx, qword [rbp + 0xc0]
vmovups xmm0, xmmword [rbp]
vmovups xmmword [rbx], xmm0
jmp 0x1400bda5f
mov rax, rsp
mov rcx, rsi
mov edx, 0x29
mov r8d, 0x1b
mov dword [rbp + 0x18], 0
lea r9, [rbp + 0x18]
mov dword [rax + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x1400bdd8a