Function at 0x140035a8c
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov r12, 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 [0x140175058]
cmp rax, 3
jne 0x140035bf6
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 0x140035b25
mov qword [rsp + 0x70], r12
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 0x140035b76
xor edx, edx
jmp 0x140035b7e
call fcn.1400409a9
lea rdx, str.tcp_open_errortcp_set_nonblocking_errortcp_bind_local_error
lea r14, [rsp + 0xc0]
mov r8d, 0xe
mov rcx, r14
mov r9, rax
call fcn.14003585a
mov rax, qword [r14]
mov r14, qword [r14 + 8]
test rax, rax
je 0x140035afa
movups xmm0, xmmword [rsp + 0xd0]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r14
mov dword [rsi + 8], 0x3b9aca01
jmp 0x140035dab
call fcn.1400409a9
mov rdx, rax
lea r8, [0x14011d4de]
lea r13, [rsp + 0xc0]
mov r9d, 0x19
mov rcx, r13
call fcn.140035ebf
mov rax, qword [r13]
test rax, rax
je 0x140035bbd
mov rcx, qword [rsp + 0xd8]
mov qword [rsi + 0x28], rcx
movups xmm0, xmmword [rsp + 0xc8]
jmp 0x140035d94
mov ebp, dword [r15 + 0x48]
cmp ebp, 0x3b9aca00
je 0x140035cbd
mov r13, qword [r15 + 0x40]
mov rcx, r14
mov edx, 8
mov r8d, 1
call fcn.140095bd5
test rax, rax
je 0x140035c2f
mov rcx, rax
call fcn.14007746e
jmp 0x140035cbd
lea rax, [rsp + 0xa0]
mov byte [rax], 1
lea r8, [rsp + 0x50]
mov qword [r8], 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 rcx, [0x140175058]
lea r9, [0x140135d58]
xor edx, edx
call fcn.140097910
jmp 0x140035acf
mov ecx, 0x3e8
mov rax, r13
mul rcx
mov rcx, rax
mov r8, rdx
xor r9d, r9d
mov r10d, 0xf4240
mov eax, ebp
xor edx, edx
div r10d
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 + 0xc0]
mov dword [r8], 1
mov dword [r8 + 4], r9d
and dword [r8 + 8], 0
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 0x140035eb5
test di, di
je 0x140035cf5
cmp byte [r15 + 0x56], 0
je 0x140035d1b
mov eax, dword [r15 + 0x57]
mov ecx, dword [r15 + 0x63]
lea rdx, [rsp + 0x50]
mov dword [rdx + 0x10], ecx
mov rcx, qword [r15 + 0x5b]
mov qword [rdx + 8], rcx
mov dword [rdx + 4], eax
and qword [rdx + 0x14], 0
and word [rdx + 0x1c], 0
mov word [rdx], 1
jmp 0x140035d11
cmp byte [r15 + 0x51], 0
je 0x140035d31
mov eax, dword [r15 + 0x52]
lea rdx, [rsp + 0x50]
mov dword [rdx + 2], eax
and word [rdx + 6], 0
and word [rdx], 0
lea r12, [rsp + 0xc0]
jmp 0x140035d44
xorps xmm0, xmm0
movups xmmword [rsp + 0x5e], xmm0
movups xmmword [rsp + 0x54], xmm0
mov word [rsp + 0x50], 1
jmp 0x140035d37
and qword [rsp + 0x50], 0
lea r12, [rsp + 0xc0]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140095cf2
mov rcx, r14
mov rdx, r12
call fcn.140095caa
lea r8, [0x14011d4f7]
lea r12, [rsp + 0xa0]
mov r9d, 0x14
mov rcx, r12
mov rdx, rax
call fcn.140035ebf
mov rax, qword [r12]
test rax, rax
je 0x140035dc0
mov rcx, qword [rsp + 0xb8]
mov qword [rsi + 0x28], rcx
movups xmm0, xmmword [rsp + 0xa8]
movups xmmword [rsi + 0x18], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 8], 0x3b9aca01
mov rcx, r14
call sub.ws2_32.dll_closesocket
nop
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r15 + 0x68], 0
je 0x140035de7
mov rcx, r14
mov edx, 4
mov r8d, 1
call fcn.140095bd5
test rax, rax
je 0x140035de7
mov rcx, rax
call fcn.14007746e
cmp qword [r15], 0
mov r12, qword [rsp + 0x70]
je 0x140035e23
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.140095bd5
test rax, rax
je 0x140035e23
mov rcx, rax
call fcn.14007746e
mov edi, dword [rsp + 0x1b0]
cmp qword [r15 + 0x10], 0
je 0x140035e62
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.140095bd5
test rax, rax
je 0x140035e62
mov rcx, rax
call fcn.14007746e
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x90], xmm1
movups xmmword [rsp + 0x80], xmm0
mov qword [rsi], r12
mov dword [rsi + 8], edi
movups xmm0, xmmword [rsp + 0x7c]
movups xmm1, xmmword [rsp + 0x8c]
movups xmmword [rsi + 0xc], xmm0
movups xmmword [rsi + 0x1c], xmm1
mov eax, dword [rsp + 0x9c]
mov dword [rsi + 0x2c], eax
mov qword [rsi + 0x30], r14
xor eax, eax
mov byte [rsi + 0x88], al
mov byte [rsi + 0x90], al
jmp 0x140035dab
call fcn.1400409a9
jmp 0x140035be9