Function at 0x1400405b9
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov qword [rsp + 0x80], r9
mov r15, r8
mov rbx, rdx
mov rsi, rcx
movzx edi, word [rdx]
test di, di
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov rax, qword [0x14021d0b0]
cmp rax, 3
jne 0x140040755
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 1
mov r8d, 6
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140040652
lea r12, [rsp + 0x50]
mov dword [r12], 1
mov rcx, r14
mov edx, 0x8004667e
mov r8, r12
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1400406ad
xor edx, edx
jmp 0x1400406b5
call fcn.140048fb7
lea rdx, str.tcp_open_errortcp_set_nonblocking_errortcp_bind_local_error
lea r12, [rsp + 0xd0]
mov r8d, 0xe
mov rcx, r12
mov r9, rax
call fcn.1400402f5
mov rax, qword [r12]
mov r14, qword [r12 + 8]
movups xmm0, xmmword [r12 + 0x10]
movaps xmmword [rsp + 0x50], xmm0
test rax, rax
je 0x14004062c
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r14
mov dword [rsi + 8], 0x3b9aca01
jmp 0x1400409ad
call fcn.140048fb7
mov rdx, rax
lea r8, [0x1401a8346]
lea rcx, [rsp + 0xd0]
mov r9d, 0x19
call fcn.140040af4
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x1400406f5
mov rcx, qword [rsp + 0xe8]
mov qword [rsi + 0x28], rcx
movups xmm0, xmmword [rsp + 0xd8]
jmp 0x140040996
mov r13d, dword [r15 + 0x48]
mov ebp, dword [r15 + 0x58]
cmp r13d, 0x3b9aca00
jne 0x140040712
cmp ebp, 0x3b9aca00
je 0x14004087a
cmp ebp, 0x3b9aca01
je 0x14004087a
mov rax, qword [r15 + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [r15 + 0x50]
mov qword [rsp + 0x78], rax
mov rcx, r14
mov edx, 8
mov r8d, 1
call fcn.1400b8be0
test rax, rax
je 0x140040791
mov rcx, rax
call fcn.14003f9b3
jmp 0x14004087a
lea rax, [rsp + 0x88]
mov byte [rax], 1
lea r8, [rsp + 0xd0]
mov qword [r8], rax
lea rax, str._home_wav_.cargo_registry_src_index.crates.io_6f17d22bba15001f_socket2_0.5.7_src_sys_windows.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14021d0b0]
lea r9, [0x1401c3418]
xor edx, edx
call fcn.1400b9d00
jmp 0x140040601
xor r9d, r9d
mov r10d, 0
cmp r13d, 0x3b9aca00
je 0x1400407e3
mov ecx, 0x3e8
mov rax, qword [rsp + 0x70]
mul rcx
mov rcx, rax
mov r8, rdx
xor r10d, r10d
mov r11d, 0xf4240
mov eax, r13d
xor edx, edx
div r11d
add rax, rcx
adc r8, 0
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
neg r8
sbb r10d, r10d
or r10d, eax
cmp ebp, 0x3b9aca00
je 0x14004082a
mov ecx, 0x3e8
mov rax, qword [rsp + 0x78]
mul rcx
mov rcx, rax
mov r8, rdx
xor r9d, r9d
mov r11d, 0xf4240
mov eax, ebp
xor edx, edx
div r11d
add rax, rcx
adc r8, 0
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
neg r8
sbb r9d, r9d
or r9d, eax
lea r8, [rsp + 0xd0]
mov dword [r8], 1
mov dword [r8 + 4], r10d
mov dword [r8 + 8], r9d
and dword [rsp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
and dword [rsp + 0x28], 0
mov qword [rsp + 0x30], r12
and qword [rsp + 0x20], 0
mov rcx, r14
mov edx, 0x98000004
mov r9d, 0xc
call sub.ws2_32.dll_WSAIoctl
cmp eax, 0xffffffff
je 0x140040ac0
test di, di
je 0x1400408dd
cmp byte [r15 + 0x86], 0
je 0x14004091c
mov eax, dword [r15 + 0x87]
mov ecx, dword [r15 + 0x93]
lea rdx, [rsp + 0x50]
mov dword [rdx + 0x10], ecx
mov rcx, qword [r15 + 0x8b]
mov qword [rdx + 8], rcx
mov dword [rdx + 4], eax
and qword [rdx + 0x14], 0
and word [rdx + 0x1c], 0
mov word [rdx], 1
lea r12, [rsp + 0xd0]
mov rcx, r12
call fcn.1400b8c5f
mov rcx, r14
mov rdx, r12
call fcn.1400b8c17
jmp 0x140040958
cmp byte [r15 + 0x81], 0
je 0x140040932
mov eax, dword [r15 + 0x82]
lea rdx, [rsp + 0x50]
mov dword [rdx + 2], eax
and word [rdx + 6], 0
and word [rdx], 0
lea r12, [rsp + 0xd0]
mov rcx, r12
call fcn.1400b8c5f
mov rcx, r14
mov rdx, r12
call fcn.1400b8c17
jmp 0x140040958
xorps xmm0, xmm0
movups xmmword [rsp + 0x5e], xmm0
movups xmmword [rsp + 0x54], xmm0
mov word [rsp + 0x50], 1
jmp 0x140040938
and qword [rsp + 0x50], 0
lea r12, [rsp + 0xd0]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.1400b8c5f
mov rcx, r14
mov rdx, r12
call fcn.1400b8c17
lea r8, [0x1401a835f]
lea rcx, [rsp + 0x88]
mov r9d, 0x14
mov rdx, rax
call fcn.140040af4
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x1400409c2
mov rcx, qword [rsp + 0xa0]
mov qword [rsi + 0x28], rcx
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi + 0x18], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 8], 0x3b9aca01
mov rcx, r14
call fcn.140102e8c
nop
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r15 + 0x98], 0
je 0x1400409ec
mov rcx, r14
mov edx, 4
mov r8d, 1
call fcn.1400b8be0
test rax, rax
je 0x1400409ec
mov rcx, rax
call fcn.14003f9b3
cmp qword [r15], 0
je 0x140040a23
mov rax, qword [r15 + 8]
mov rcx, rax
shr rcx, 0x20
xor r8d, r8d
neg rcx
sbb r8d, r8d
or r8d, eax
mov rcx, r14
mov edx, 0x1001
call fcn.1400b8be0
test rax, rax
je 0x140040a23
mov rcx, rax
call fcn.14003f9b3
cmp qword [r15 + 0x10], 0
je 0x140040a5b
mov rax, qword [r15 + 0x18]
mov rcx, rax
shr rcx, 0x20
xor r8d, r8d
neg rcx
sbb r8d, r8d
or r8d, eax
mov rcx, r14
mov edx, 0x1002
call fcn.1400b8be0
test rax, rax
je 0x140040a5b
mov rcx, rax
call fcn.14003f9b3
mov eax, dword [rsp + 0x1c0]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0xc0], xmm1
movups xmmword [rsp + 0xb0], xmm0
mov ecx, dword [rsp + 0xcc]
mov dword [rsi + 0x2c], ecx
movups xmm0, xmmword [rsp + 0xbc]
movups xmmword [rsi + 0x1c], xmm0
movups xmm0, xmmword [rsp + 0xac]
movups xmmword [rsi + 0xc], xmm0
mov rcx, qword [rsp + 0x80]
mov qword [rsi], rcx
mov dword [rsi + 8], eax
mov qword [rsi + 0x30], r14
xor eax, eax
mov byte [rsi + 0x88], al
mov byte [rsi + 0x90], al
jmp 0x1400409ad
call fcn.140048fb7
jmp 0x140040748