Function at 0x1400a4e50
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x100
mov rbx, r9
mov r14, r8
mov rsi, rcx
movzx ebp, word [rdx]
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rsp + 0xee], xmm0
movups xmm0, xmmword [rdx + 2]
movaps xmmword [rsp + 0xe0], xmm0
test bp, bp
mov eax, 2
mov ecx, 0x17
cmove ecx, eax
mov rax, qword [0x1404a5088]
cmp rax, 3
jne 0x1400a5268
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov edx, 1
mov r8d, 6
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400a50b2
mov rdi, rax
mov dword [rsp + 0x58], 1
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1400a5141
mov r12d, dword [r14 + 0x48]
cmp r12d, 0x3b9aca00
je 0x1400a4fd5
mov r15, qword [r14 + 0x40]
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 8
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400a4fd0
mov ecx, 0x3e8
mov rax, r15
mul rcx
mov ecx, r12d
imul rcx, rcx, 0x431bde83
shr rcx, 0x32
add rcx, rax
adc rdx, 0
mov eax, 0xffffffff
cmp rcx, rax
cmovae rcx, rax
xor eax, eax
neg rdx
sbb eax, eax
or eax, ecx
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x58]
mov rcx, rdi
mov edx, 0x98000004
mov r9d, 0xc
call sub.ws2_32.dll_WSAIoctl
cmp eax, 0xffffffff
jne 0x1400a4fd5
call sub.kernel32.dll_GetLastError
test bp, bp
je 0x1400a51d5
cmp byte [r14 + 0x56], 0
je 0x1400a525c
movups xmm0, xmmword [r14 + 0x57]
movups xmmword [rsp + 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0x58], 0x17
mov dword [rsp + 0xd8], 0x1c
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov r8d, 0x1c
call sub.ws2_32.dll_bind
test eax, eax
je 0x1400a5325
call sub.kernel32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
test r15, r15
je 0x1400a5331
movzx eax, byte [0x1404a5170]
mov r14d, 0x14
mov edx, 0x14
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x1400a5460
mov rbx, rax
movups xmm0, xmmword [0x1403c338f]
movups xmmword [rax], xmm0
mov dword [rax + 0x10], 0x726f7272
jmp 0x1400a518b
call sub.kernel32.dll_GetLastError
mov edi, eax
movzx eax, byte [0x1404a5170]
mov edx, 0xe
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x1400a5451
mov rbx, rax
movabs rax, 0x726f727265206e65
mov qword [rbx + 6], rax
movabs rax, 0x6e65706f20706374
mov qword [rbx], rax
movzx eax, byte [0x1404a5170]
mov edx, 8
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x1400a5442
shl rdi, 0x20
or rdi, 2
mov qword [rax], rdi
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xe
mov qword [rsi + 0x20], rax
lea rax, sym.core::ptr::drop_in_place_std::io::error::Error_::h1cced9c0c53a0db9
mov qword [rsi + 0x28], rax
mov dword [rsi + 8], 0x3b9aca01
jmp 0x1400a5430
call sub.kernel32.dll_GetLastError
mov r15d, eax
movzx eax, byte [0x1404a5170]
mov r14d, 0x19
mov edx, 0x19
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x1400a546f
mov rbx, rax
shl r15, 0x20
or r15, 2
movups xmm0, xmmword [0x1403c337f]
movups xmmword [rax + 9], xmm0
movups xmm0, xmmword [0x1403c3376]
movups xmmword [rax], xmm0
movzx eax, byte [0x1404a5170]
mov edx, 8
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x1400a5442
mov qword [rax], r15
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], r14
mov qword [rsi + 0x20], rax
lea rax, sym.core::ptr::drop_in_place_std::io::error::Error_::h1cced9c0c53a0db9
mov qword [rsi + 0x28], rax
mov dword [rsi + 8], 0x3b9aca01
mov rcx, rdi
call fcn.14021a4fc
jmp 0x1400a5430
cmp byte [r14 + 0x51], 0
je 0x1400a52a9
mov eax, dword [r14 + 0x52]
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0x58], 2
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0xd8], 0x10
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov r8d, 0x10
call sub.ws2_32.dll_bind
test eax, eax
jne 0x1400a505e
jmp 0x1400a5325
mov ax, 0x17
mov r8d, 0x1c
jmp 0x1400a52b3
mov byte [rsp + 0x54], 1
lea rax, [rsp + 0x54]
mov qword [rsp + 0x58], rax
lea rax, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_socket2_0.5.7_src_syswindows.rs
mov qword [rsp + 0x20], rax
lea rax, [0x1404a5088]
lea r9, [0x14043ea90]
lea r8, [rsp + 0x58]
mov edi, ecx
mov rcx, rax
xor edx, edx
call sym.std::sys::sync::once::queue::Once::call::hb4e640d06204af1e
mov ecx, edi
jmp 0x1400a4ea6
mov ax, 2
mov r8d, 0x10
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xd0], 0
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0xd8], r8d
lea rdx, [rsp + 0x58]
mov rcx, rdi
call sub.ws2_32.dll_bind
test eax, eax
jne 0x1400a505e
xor r15d, r15d
test r15, r15
jne 0x1400a5077
cmp byte [r14 + 0x68], 0
je 0x1400a536a
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 4
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x1400a536a
call sub.kernel32.dll_GetLastError
cmp qword [r14], 0
je 0x1400a53ae
mov rax, qword [r14 + 8]
mov ecx, 0xffffffff
cmp rax, rcx
cmovb rcx, rax
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1001
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x1400a53ae
call sub.kernel32.dll_GetLastError
mov r15d, dword [rsp + 0x160]
cmp qword [r14 + 0x10], 0
je 0x1400a53fb
mov rax, qword [r14 + 0x18]
mov ecx, 0xffffffff
cmp rax, rcx
cmovb rcx, rax
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1002
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x1400a53fb
call sub.kernel32.dll_GetLastError
movups xmm0, xmmword [rsp + 0xee]
movups xmmword [rsi + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rsi + 0x12], xmm0
mov qword [rsi], rbx
mov dword [rsi + 8], r15d
mov word [rsi + 0x10], bp
mov qword [rsi + 0x30], rdi
mov byte [rsi + 0x80], 0
mov byte [rsi + 0x88], 0
add rsp, 0x100
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 8
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
mov ecx, 1
mov edx, 0xe
call sym.alloc::raw_vec::handle_error::h5313441c9bd13595
mov ecx, 1
mov edx, 0x14
call sym.alloc::raw_vec::handle_error::h5313441c9bd13595
mov ecx, 1
mov edx, 0x19
call sym.alloc::raw_vec::handle_error::h5313441c9bd13595
int3