Function at 0x18009d174
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov rbx, rdx
mov qword [rsp + 0x58], rcx
movzx eax, byte [rdx + 0x378]
test eax, eax
mov qword [rsp + 0x168], r8
je 0x18009d1c8
cmp eax, 3
jne case.default.0x18009d1c6
mov r15, r8
lea r12, [rbx + 0x1f0]
movzx eax, byte [rbx + 0x280]
lea rcx, [0x18009dc60]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov rax, qword [rbx]
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
and qword [rbx + 0x20], 0
mov qword [rbx + 0x40], rax
jmp 0x18009d4a7
lea rcx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chain.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_util_0.7.9_srcutilpoll_buf.rs
lea r8, str..cargo_registry_srcindex.crates.io_6f17d22bba15001fhyper_0.14.27_srcclientconnecthttp.rs
jmp 0x18009d360
ud2
lea rsi, [rbx + 0x288]
lea r13, [rbx + 0x2f8]
call fcn.1800e2819
mov edi, eax
lea rbp, [rsp + 0xb8]
mov rcx, rbp
mov rdx, r13
mov r8, r15
call fcn.18009e085
mov r14, qword [rbp]
cmp r14, 3
jne 0x18009d2de
cmp dil, 2
setne bpl
test dil, 1
sete dil
call fcn.1800e2819
test bpl, dil
jne 0x18009d338
cmp al, 2
je 0x18009d338
and al, 1
jne 0x18009d338
call fcn.18006f718
mov dil, 2
test rax, rax
je 0x18009d27a
mov dil, byte [rax + 0x4c]
mov bpl, byte [rax + 0x4d]
mov byte [rax + 0x4c], 0
mov rcx, rsi
mov rdx, r15
call fcn.1800e55fd
mov r13d, eax
mov ecx, edi
mov edx, ebp
call fcn.180096f1b
test r13b, r13b
jne 0x18009d34b
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [rsp + 0x1b0]
movaps xmmword [rsp + 0x60], xmm0
mov rcx, rsi
call fcn.18009e04c
mov edx, 1
xor ecx, ecx
call fcn.18003ce24
lea r8, [0x1801bc7f0]
mov cl, reloc.WS2_32.dll_shutdown
mov rdx, rax
call fcn.1800cb4e0
mov rdi, rax
jmp 0x18009d30e
mov rdi, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xd8]
movups xmm0, xmmword [rsp + 0xc8]
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov rcx, rsi
call fcn.18009e04c
cmp r14d, 2
jne 0x18009d319
mov r14d, 2
jmp 0x18009d3dc
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xa0], xmm0
jmp 0x18009d3dc
mov rcx, rsi
mov rdx, r15
call fcn.1800e55fd
test al, al
je 0x18009d29a
mov al, 3
jmp 0x18009db39
lea rcx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chain.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_util_0.7.9_srcutilpoll_buf.rs
lea r8, str..cargo_registry_srcindex.crates.io_6f17d22bba15001fhyper_0.14.27_srcclientconnecthttp.rs
mov edx, 0x23
call fcn.180146900
ud2
lea rsi, [rbx + 0x200]
lea rdi, [rbx + 0x288]
mov ecx, reloc.WS2_32.dll_recv
rep movsq qword [rdi], qword [rsi]
lea rsi, [rbx + 0x288]
lea rdi, [rsp + 0x240]
mov rcx, rdi
mov rdx, rsi
mov r8, r15
call fcn.18009e085
mov r14, qword [rdi]
cmp r14, 3
je 0x18009db37
mov rdi, qword [rsp + 0x248]
movups xmm0, xmmword [rsp + 0x250]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x260]
mov qword [rsp + 0xb0], rax
mov rcx, rsi
call fcn.18009e02c
cmp r14d, 2
jne 0x18009d401
lea rcx, [rsp + 0x80]
lea rdx, [0x1801bf92b]
mov r8d, setsockopt
mov r9, rdi
call fcn.180042c35
jmp 0x18009d429
mov qword [rsp + 0x80], rdi
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rsp + 0x88], xmm0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x148], rcx
mov qword [rsp + 0x150], rdx
mov qword [rsp + 0x158], r8
mov byte [rbx + 0x280], 1
mov rcx, r12
call fcn.18009dfea
cmp r14d, 2
jne 0x18009dad8
lea rcx, [rbx + 0x20]
call fcn.18009e021
movaps xmm0, xmmword [rsp + 0x140]
movaps xmm1, xmmword [rsp + 0x150]
movups xmmword [rbx + 0x30], xmm1
movups xmmword [rbx + 0x20], xmm0
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x18009daad
lea rdx, [rcx + 0x20]
mov qword [rax + 0x10], rdx
movzx eax, word [rcx]
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x19e], xmm0
movups xmm0, xmmword [rcx + 2]
movaps xmmword [rsp + 0x190], xmm0
cmp ax, 2
je 0x18009daad
mov word [rbx + 0x48], ax
movaps xmm0, xmmword [rsp + 0x190]
movups xmmword [rbx + 0x4a], xmm0
movups xmm0, xmmword [rsp + 0x19e]
movups xmmword [rbx + 0x58], xmm0
mov rcx, qword [rbx + 0x10]
mov r13, qword [rbx + 0x18]
mov r15, qword [rcx + 0x20]
mov r14d, dword [rcx + 0x28]
test ax, ax
mov eax, 2
mov esi, 0x17
cmove esi, eax
mov rax, qword [0x180200d50]
cmp rax, 3
jne 0x18009db01
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, esi
mov edx, 1
mov r8d, 6
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18009d593
call fcn.18006440a
lea rdx, str.tcp_open_errortcp_set_nonblocking_errortcp_bind_local_error
lea rsi, [rsp + 0xb8]
mov r8d, recv
mov rcx, rsi
mov r9, rax
call fcn.180042c35
mov r12, qword [rsi]
test r12, r12
jne 0x18009dc44
mov rsi, qword [rsp + 0xc0]
lea rdi, [rsp + 0x78]
mov dword [rdi], 1
mov rcx, rsi
mov edx, 0x8004667e
mov r8, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
cmp eax, 0xffffffff
jne 0x18009d5be
call fcn.18006440a
mov rdx, rax
lea r8, [0x18018d6d6]
lea r12, [rsp + 0xb8]
mov r9d, 0x19
mov rcx, r12
call fcn.180042e74
mov r12, qword [r12]
test r12, r12
jne 0x18009db52
mov ebp, dword [r13 + 0x48]
cmp ebp, 0x3b9aca00
je 0x18009d6cf
mov r12, qword [r13 + 0x40]
lea r9, [rsp + 0xb8]
mov dword [r9], 1
mov dword [rsp + 0x20], 4
mov rcx, rsi
mov edx, 0xffff
mov r8d, 8
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x18009d6ba
mov ecx, 0x3e8
mov rax, r12
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 + 0xb8]
mov dword [r8], 1
mov dword [r8 + 4], r9d
and dword [r8 + 8], 0
and dword [rsp + 0x78], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
and dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rdi
and qword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 0x98000004
mov r9d, recv
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x18009d6cf
call fcn.18006440a
lea rcx, [rsp + 0xb8]
mov qword [rcx], rax
call fcn.18006b95e
cmp word [rbx + 0x48], 0
je 0x18009d735
cmp byte [r13 + 0x56], 0
je 0x18009d788
mov eax, dword [r13 + 0x57]
lea rdx, [rsp + 0xb8]
mov dword [rdx + 8], eax
mov rax, qword [r13 + 0x5b]
mov qword [rdx + 0xc], rax
mov eax, dword [r13 + 0x63]
mov dword [rdx + 0x14], eax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
movups xmmword [rdx + 0x28], xmm0
movups xmmword [rdx + 0x38], xmm0
movups xmmword [rdx + 0x48], xmm0
and qword [rdx + 0x78], 0
movups xmmword [rdx + 0x58], xmm0
movups xmmword [rdx + 0x68], xmm0
mov qword [rdx], 0x17
mov dword [rdx + 0x80], 0x1c
jmp 0x18009d84f
cmp byte [r13 + 0x51], 0
je 0x18009d7e8
mov eax, dword [r13 + 0x52]
xorps xmm0, xmm0
lea rdx, [rsp + 0xb8]
movups xmmword [rdx + 0x68], xmm0
movups xmmword [rdx + 0x58], xmm0
movups xmmword [rdx + 0x48], xmm0
movups xmmword [rdx + 0x38], xmm0
movups xmmword [rdx + 0x28], xmm0
movups xmmword [rdx + 0x18], xmm0
and qword [rdx + 0x78], 0
movups xmmword [rdx + 8], xmm0
mov dword [rdx], 2
mov dword [rdx + 4], eax
mov dword [rdx + 0x80], reloc.WS2_32.dll_recv
jmp 0x18009d84f
and dword [rsp + 0xc0], 0
and qword [rsp + 0xc4], 0
and dword [rsp + 0xcc], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
and qword [rsp + 0x130], 0
movups xmmword [rsp + 0x110], xmm0
movups xmmword [rsp + 0x120], xmm0
mov eax, 0x1c
mov cx, 0x17
jmp 0x18009d835
xorps xmm0, xmm0
movups xmmword [rsp + 0x120], xmm0
movups xmmword [rsp + 0x110], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0xe0], xmm0
and qword [rsp + 0x130], 0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xc0], xmm0
mov eax, reloc.WS2_32.dll_recv
mov cx, 2
lea rdx, [rsp + 0xb8]
mov word [rdx], cx
and word [rdx + 2], 0
and dword [rdx + 4], 0
mov dword [rdx + 0x80], eax
mov rcx, rsi
call fcn.1800bfa7d
lea r8, [0x18018d6ef]
lea rdi, [rsp + 0x78]
mov r9d, setsockopt
mov rcx, rdi
mov rdx, rax
call fcn.180042e74
mov r12, qword [rdi]
test r12, r12
jne 0x18009db64
cmp byte [r13 + 0x68], 0
je 0x18009d8af
mov rcx, rsi
mov edx, 4
mov r8d, 1
call fcn.1800bfaa2
test rax, rax
je 0x18009d8af
lea rcx, [rsp + 0xb8]
mov qword [rcx], rax
call fcn.18006b95e
cmp qword [r13], 0
je 0x18009d8ef
mov rax, qword [r13 + 8]
mov rcx, rax
shr rcx, 0x20
xor r8d, r8d
neg rcx
sbb r8d, r8d
or r8d, eax
mov rcx, rsi
mov edx, 0x1001
call fcn.1800bfaa2
test rax, rax
je 0x18009d8ef
lea rcx, [rsp + 0xb8]
mov qword [rcx], rax
call fcn.18006b95e
cmp qword [r13 + 0x10], 0
je 0x18009d92f
mov rax, qword [r13 + 0x18]
mov rcx, rax
shr rcx, 0x20
xor r8d, r8d
neg rcx
sbb r8d, r8d
or r8d, eax
mov rcx, rsi
mov edx, 0x1002
call fcn.1800bfaa2
test rax, rax
je 0x18009d92f
lea rcx, [rsp + 0xb8]
mov qword [rcx], rax
call fcn.18006b95e
movups xmm0, xmmword [rbx + 0x48]
movups xmm1, xmmword [rbx + 0x58]
movaps xmmword [rsp + 0x60], xmm1
lea r13, [rbx + 0x68]
mov qword [rbx + 0x68], r15
mov dword [rbx + 0x70], r14d
movups xmmword [rbx + 0x78], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x88], xmm0
mov qword [rbx + 0x98], rsi
lea rdi, [rbx + 0xa0]
lea rsi, [rsp + 0x1b0]
mov ecx, 0xa
rep movsq qword [rdi], qword [rsi]
xor eax, eax
mov byte [rbx + 0xf0], al
mov ecx, dword [rsp + 0xa0]
mov edx, dword [rsp + 0xa3]
mov dword [rbx + 0xf1], ecx
mov dword [rbx + 0xf4], edx
mov byte [rbx + 0xf8], al
lea rcx, [rbx + 0xf9]
lea rdx, [rsp + 0x240]
mov r8d, 0xf7
call sub.VCRUNTIME140.dll_memcpy
lea r12, [rbx + 0x1f0]
mov r8d, 0x188
mov rcx, r12
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [rbx + 0x280]
lea rcx, [0x18009dc60]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov r15, qword [rsp + 0x168]
jmp rax
mov ebp, dword [rbx + 0x1f8]
cmp ebp, 0x3b9aca00
je 0x18009d36c
mov r13, qword [rbx + 0x1f0]
lea rsi, [rbx + 0x200]
lea rdi, [rsp + 0xb8]
mov ecx, reloc.WS2_32.dll_recv
rep movsq qword [rdi], qword [rsi]
call fcn.1800da6b0
mov rcx, rax
mov r8, r13
mov r9d, ebp
call fcn.1800dab00
cmp edx, 0x3b9aca00
jne 0x18009da49
lea rcx, [rsp + 0x1b0]
call fcn.1800e8250
jmp 0x18009da63
mov r8d, edx
lea r9, str..cargo_registry_srcindex.crates.io_6f17d22bba15001fhyper_0.14.27_srcclientconnecthttp.rs
lea rcx, [rsp + 0x1b0]
mov rdx, rax
call fcn.1800e8116
lea rdx, [rsp + 0x240]
lea rsi, [rsp + 0x1b0]
mov ecx, recv
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
lea rdi, [rsp + 0x2b0]
lea rsi, [rsp + 0xb8]
mov ecx, reloc.WS2_32.dll_recv
rep movsq qword [rdi], qword [rsi]
lea rcx, [rbx + 0x288]
mov r8d, 0xf0
call sub.VCRUNTIME140.dll_memcpy
jmp case.0x18009d1c6.3
cmp qword [rbx + 0x20], 0
je 0x18009dbd1
lea rax, [rbx + 0x20]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x180], xmm1
movaps xmmword [rsp + 0x170], xmm0
jmp 0x18009dc02
movaps xmm0, xmmword [rsp + 0x140]
movaps xmm1, xmmword [rsp + 0x150]
lea rax, [rsp + 0x220]
movaps xmmword [rax + 0x10], xmm1
movaps xmmword [rax], xmm0
mov rsi, qword [rsp + 0x58]
jmp 0x18009dbaf
lea rax, [rsp + 0x57]
mov byte [rax], 1
lea r8, [rsp + 0x78]
mov qword [r8], rax
lea rax, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_socket2_0.4.9_src_syswindows.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x180200d50]
lea r9, [0x1801c3c58]
xor edx, edx
call fcn.180148580
jmp 0x18009d52f
mov al, 4
mov byte [rbx + 0x280], al
mov rax, qword [rsp + 0x58]
mov qword [rax], 3
mov al, 3
jmp 0x18009dc2a
mov rdi, qword [rsp + 0xc0]
movups xmm0, xmmword [rsp + 0xc8]
jmp 0x18009db74
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm0
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [rsp + 0x58]
lea rax, [rbx + 0x78]
mov qword [rbx + 0x78], r12
mov qword [rbx + 0x80], rdi
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x88], xmm0
mov dword [rbx + 0x70], 0x3b9aca01
mov r14d, 2
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x180], xmm1
movaps xmmword [rsp + 0x170], xmm0
lea rcx, [rbx + 0x20]
call fcn.18009e021
jmp 0x18009dc0d
lea rdx, str.Network_unreachabletcp_connect_error
mov r8d, reloc.WS2_32.dll_send
mov cl, 7
call fcn.180063b15
lea rdx, [0x1801bf92b]
lea rcx, [rsp + 0x170]
mov r8d, setsockopt
mov r9, rax
call fcn.180042c35
mov r14d, 2
mov rsi, qword [rsp + 0x58]
mov qword [rsi], r14
movaps xmm0, xmmword [rsp + 0x170]
movaps xmm1, xmmword [rsp + 0x180]
movups xmmword [rsi + 8], xmm0
movups xmmword [rsi + 0x18], xmm1
mov al, 1
mov byte [rbx + 0x378], al
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rsp + 0xc0]
movups xmm0, xmmword [rsp + 0xc8]
movaps xmmword [rsp + 0x60], xmm0
jmp 0x18009db82