Function at 0x14009b5ef
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf0
mov r14, r9
mov rbx, r8
mov r15, rdx
mov r13, rcx
cmp word [rdx], 0
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov rax, qword [0x14051f120]
cmp rax, 3
jne 0x14009b86b
mov dword [rsp + 0x28], 0x81
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 0x14009b7a4
mov r12, rax
lea r8, [rsp + 0x68]
mov dword [r8], 1
mov rcx, rax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14009b80e
mov esi, dword [rbx + 0x28]
cmp esi, 0x3b9aca00
je 0x14009b76a
mov rdi, qword [rbx + 0x20]
lea r9, [rsp + 0x68]
mov dword [r9], 1
mov dword [rsp + 0x20], 4
mov rcx, r12
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14009b750
mov ecx, 0x3e8
mov rax, rdi
mul rcx
mov ecx, esi
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
mov edx, 0
sbb edx, edx
or edx, ecx
lea r8, [rsp + 0x68]
mov dword [r8], 1
mov dword [r8 + 4], edx
mov dword [r8 + 8], eax
lea rcx, [rsp + 0x48]
mov dword [rcx], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
mov rcx, r12
mov edx, 0x98000004
mov r9d, 0xc
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x14009b76a
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
call fcn.14007ddf7
cmp word [r15], 0
je 0x14009b849
cmp byte [rbx + 0x56], 0
je 0x14009b865
movups xmm0, xmmword [rbx + 0x57]
lea rdx, [rsp + 0x48]
movups xmmword [rdx + 4], xmm0
mov qword [rdx + 0x14], 0
mov word [rdx + 0x1c], 0
mov word [rdx], 1
jmp 0x14009b8b6
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
lea rdi, [rax + 2]
mov ecx, 0xe
xor edx, edx
call fcn.140056949
mov rbx, rdx
movabs rax, 0x6e65706f20706374
mov qword [rdx], rax
movabs rax, 0x726f727265206e65
mov qword [rdx + 6], rax
mov rcx, rdi
call fcn.140097975
mov qword [r13], rax
lea rax, fcn.14007ddf7
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], 0xe
mov dword [r13 + 0x88], 0x3b9aca01
jmp 0x14009ba03
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
lea rdi, [rax + 2]
mov esi, 0x19
mov ecx, 0x19
xor edx, edx
call fcn.140056949
mov rbx, rdx
movups xmm0, xmmword [str.tcp_set_nonblocking_errortcp_bind_local_errorbyteshttps_required_but_URI_was_not_httpsForceHttpsButUriNotHttps]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [0x14042e1e9]
movups xmmword [rdx + 9], xmm0
jmp 0x14009b8fb
cmp byte [rbx + 0x51], 0
je 0x14009b8a1
mov eax, dword [rbx + 0x52]
xor ecx, ecx
lea rdx, [rsp + 0x48]
mov word [rdx + 6], cx
mov dword [rdx + 2], eax
mov word [rdx], cx
jmp 0x14009b8b6
mov ax, 1
jmp 0x14009b8a3
lea rax, [rsp + 0x48]
mov byte [rax], 1
lea r8, [rsp + 0x68]
mov qword [r8], rax
lea rax, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823_socket2_0.4.10_src_syswindows.rs_
mov qword [rsp + 0x20], rax
lea rcx, [0x14051f120]
lea r9, [0x1404bf3d0]
xor edx, edx
call fcn.1403b92c0
jmp 0x14009b62f
xor eax, eax
lea rdx, [rsp + 0x48]
mov word [rdx], ax
xorps xmm0, xmm0
movups xmmword [rdx + 2], xmm0
movups xmmword [rdx + 0xe], xmm0
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.14009638a
mov rcx, r12
mov rdx, rdi
call fcn.14023b421
mov rdi, rax
test rax, rax
je 0x14009b933
mov esi, 0x14
mov ecx, 0x14
xor edx, edx
call fcn.140056949
mov rbx, rdx
movups xmm0, xmmword [0x14042e1f9]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], 0x726f7272
mov rcx, rdi
call fcn.140097975
mov qword [r13], rax
lea rax, fcn.14007ddf7
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], rsi
mov dword [r13 + 0x88], 0x3b9aca01
mov rcx, r12
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x14009ba03
cmp byte [rbx + 0x68], 0
je 0x14009b95e
mov rcx, r12
mov edx, 4
mov r8d, 1
call fcn.14023b349
test rax, rax
je 0x14009b95e
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
call fcn.14007ddf7
cmp dword [rbx + 0x30], 1
jne 0x14009b994
mov rax, qword [rbx + 0x38]
mov r8d, 0xffffffff
cmp rax, r8
cmovb r8, rax
mov rcx, r12
mov edx, 0x1001
call fcn.14023b349
test rax, rax
je 0x14009b994
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
call fcn.14007ddf7
mov esi, dword [rsp + 0x150]
cmp dword [rbx + 0x40], 1
jne 0x14009b9d1
mov rax, qword [rbx + 0x48]
mov r8d, 0xffffffff
cmp rax, r8
cmovb r8, rax
mov rcx, r12
mov edx, 0x1002
call fcn.14023b349
test rax, rax
je 0x14009b9d1
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
call fcn.14007ddf7
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [r13 + 0x10], xmm1
movups xmmword [r13], xmm0
mov qword [r13 + 0x70], r12
xor eax, eax
mov byte [r13 + 0x78], al
mov qword [r13 + 0x80], r14
mov dword [r13 + 0x88], esi
mov byte [r13 + 0x90], al
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret