Function at 0x1401beca0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x150
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx], 0
je 0x1401bede5
mov r15, qword [rdi + 8]
mov r14, qword [rdi + 0x10]
mov qword [rsp + 0x140], r15
mov dword [rsp + 0x148], 0
mov qword [rsp + 0xa0], r14
mov dword [rsp + 0xa8], 0
mov rbx, qword [rsi + 0x18]
cmp rbx, 0xffffffffffffffff
je 0x1401bf6ba
mov rax, qword [0x1403cd8e8]
test rax, rax
je 0x1401befea
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov rcx, rbx
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401bf1e3
mov ecx, 0x3e8
mov rax, r15
mul rcx
mov r8d, 0xffffffff
cmp rax, r8
cmovae rax, r8
xor r9d, r9d
neg rdx
mov r10d, 0
sbb r10d, r10d
or r10d, eax
mov rax, r14
mul rcx
cmp rax, r8
cmovb r8, rax
neg rdx
sbb r9d, r9d
or r9d, r8d
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x54], r10d
mov dword [rsp + 0x58], r9d
mov dword [rsp + 0xb0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, rbx
mov edx, 0x98000004
mov r9d, 0xc
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x1401bf1e3
movzx ebx, byte [rdi + 0x18]
cmp bl, 2
je 0x1401bf498
mov byte [rsp + 0x140], bl
mov rax, qword [0x1403cd8e8]
test rax, rax
jne 0x1401bf45c
movzx eax, byte [0x1403cd130]
test al, al
je 0x1401bf45c
movzx eax, al
cmp eax, 1
je 0x1401bee41
cmp eax, 2
je 0x1401bee9b
lea rcx, [0x1403cd120]
call fcn.1402f5ba0
test al, al
je 0x1401bf45c
movzx eax, al
cmp eax, 2
je 0x1401bee9b
mov rdx, qword [0x1403cd120]
mov rax, qword [0x1403ce410]
lea rcx, str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
cmp rax, 2
cmove rcx, qword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
lea r8, [0x140398768]
cmove r8, qword [0x1403cd8d8]
jne 0x1401bee8f
cmp qword [0x1403cd8c8], 0
je 0x1401bee8f
mov rax, qword [r8 + 0x10]
dec rax
and rax, 0xfffffffffffffff0
add rcx, rax
add rcx, 0x10
call qword [r8 + 0x28]
test al, al
je 0x1401bf45c
mov rax, qword [0x1403cd120]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x1401bf6ee
lea rdx, [rax + 0x30]
mov r8, qword [rax + 0x30]
movups xmm0, xmmword [rax + 0x40]
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xb8], rcx
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], 0
lea rcx, [rsp + 0x140]
mov qword [rsp + 0xe0], rcx
lea rcx, [0x14000b2f0]
mov qword [rsp + 0xe8], rcx
lea rcx, str.Set_nodelay
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 1
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x88], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x90], rcx
lea rcx, [0x14032ae58]
mov qword [rsp + 0x98], rcx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0x100], 1
mov qword [rsp + 0x108], rdx
lea rcx, [rsp + 0xf8]
mov qword [rsp + 0x128], rcx
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x118], 1
mov rax, qword [0x1403ce410]
mov rdi, qword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
cmp rax, 2
jne 0x1401bf416
cmp qword [0x1403cd8c8], 0
je 0x1401bf416
mov rbx, qword [0x1403cd8d8]
mov rax, qword [rbx + 0x10]
dec rax
and rax, 0xfffffffffffffff0
add rdi, rax
add rdi, 0x10
jmp 0x1401bf434
movzx eax, byte [0x1403cd0b8]
test al, al
je 0x1401bed0e
movzx eax, al
cmp eax, 1
je 0x1401bf022
cmp eax, 2
je 0x1401bf07c
lea rcx, [0x1403cd0a8]
call fcn.1402f5ba0
test al, al
je 0x1401bed0e
movzx eax, al
cmp eax, 2
je 0x1401bf07c
mov rdx, qword [0x1403cd0a8]
mov rax, qword [0x1403ce410]
lea rcx, str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
cmp rax, 2
cmove rcx, qword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
lea r8, [0x140398768]
cmove r8, qword [0x1403cd8d8]
jne 0x1401bf070
cmp qword [0x1403cd8c8], 0
je 0x1401bf070
mov rax, qword [r8 + 0x10]
dec rax
and rax, 0xfffffffffffffff0
add rcx, rax
add rcx, 0x10
call qword [r8 + 0x28]
test al, al
je 0x1401bed0e
mov rax, qword [0x1403cd0a8]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x1401bf6d4
lea rdx, [rax + 0x30]
mov r8, qword [rax + 0x30]
movups xmm0, xmmword [rax + 0x40]
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xb8], rcx
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], 0
lea rcx, [rsp + 0x140]
mov qword [rsp + 0xf8], rcx
lea rcx, [0x14014a4b0]
mov qword [rsp + 0x100], rcx
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x108], r8
mov qword [rsp + 0x110], rcx
lea rcx, [0x14032ae38]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0xf8]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 2
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0xe0], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0xe8], rcx
lea rcx, [0x14032ae58]
mov qword [rsp + 0xf0], rcx
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x98], rdx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x128], rcx
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x118], 1
mov rax, qword [0x1403ce410]
mov r12, qword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
cmp rax, 2
jne 0x1401bf3cd
cmp qword [0x1403cd8c8], 0
je 0x1401bf3cd
mov r13, qword [0x1403cd8d8]
mov rax, qword [r13 + 0x10]
dec rax
and rax, 0xfffffffffffffff0
add r12, rax
add r12, 0x10
jmp 0x1401bf3eb
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, rax
call fcn.1402f0050
lea rcx, str.Failed_to_set_keepaliveFailed_to_set_nodelaysrc_server.rs
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x17
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.1402f00c0
mov qword [rsp + 0xa0], rax
mov rax, qword [0x1403cd8e8]
cmp rax, 5
jae 0x1401bf3ae
movzx edx, byte [0x1403cd118]
test dl, dl
je 0x1401bf3ae
movzx eax, dl
cmp eax, 1
je 0x1401bf25a
cmp eax, 2
jne 0x1401bf687
mov dl, 2
mov rcx, qword [0x1403cd108]
call fcn.1402c0630
test al, al
je 0x1401bf3ae
mov rcx, qword [0x1403cd108]
mov rdx, qword [rcx + 0x38]
test rdx, rdx
je 0x1401bf708
lea rax, [rcx + 0x30]
mov r8, qword [rcx + 0x30]
movups xmm0, xmmword [rcx + 0x40]
mov qword [rsp + 0x118], r8
mov qword [rsp + 0x120], rdx
movups xmmword [rsp + 0x128], xmm0
mov qword [rsp + 0x138], 0
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0xe0], rdx
lea rdx, [0x1400f9250]
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x60], 2
mov qword [rsp + 0x70], 0
movabs rdx, 0x400000020
mov qword [rsp + 0x78], rdx
mov byte [rsp + 0x80], 3
lea rdx, [0x1403c1068]
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], 1
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xd8], 1
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc8], 1
lea rdx, [rsp + 0x118]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x90], rdx
lea rdx, [0x14032ae58]
mov qword [rsp + 0x98], rdx
lea rdx, [rsp + 0x88]
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], 1
mov qword [rsp + 0x108], rax
lea rdx, [rsp + 0xf8]
call fcn.1402c0db0
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax]
movzx ebx, byte [rdi + 0x18]
cmp bl, 2
jne 0x1401bedf2
jmp 0x1401bf498
cmp rax, 2
lea rax, str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
cmovne r12, rax
lea r13, [0x140398768]
cmove r13, qword [0x1403cd8d8]
lea rdx, [rsp + 0x118]
mov rcx, r12
call qword [r13 + 0x50]
test al, al
je 0x1401bed0e
lea rdx, [rsp + 0x118]
mov rcx, r12
call qword [r13 + 0x58]
jmp 0x1401bed0e
cmp rax, 2
lea rax, str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
cmovne rdi, rax
lea rbx, [0x140398768]
cmove rbx, qword [0x1403cd8d8]
lea rdx, [rsp + 0x118]
mov rcx, rdi
call qword [rbx + 0x50]
test al, al
je 0x1401bf454
lea rdx, [rsp + 0x118]
mov rcx, rdi
call qword [rbx + 0x58]
movzx ebx, byte [rsp + 0x140]
mov rcx, qword [rsi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x1401bf6ba
xor eax, eax
test bl, bl
setne al
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401bf4ab
add rsp, 0x150
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
lea rcx, [0x14032b187]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x15
mov qword [rsp + 0x60], rax
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.1402f0140
mov rdi, rax
mov qword [rsp + 0xa0], rax
mov rax, qword [0x1403cd8e8]
cmp rax, 4
ja 0x1401bf67a
movzx edx, byte [0x1403cd148]
test dl, dl
je 0x1401bf67a
movzx eax, dl
cmp eax, 1
je 0x1401bf51e
cmp eax, 2
jne 0x1401bf6a2
mov dl, 2
mov rcx, qword [0x1403cd138]
call fcn.1402c0630
test al, al
je 0x1401bf67a
mov rcx, qword [0x1403cd138]
mov rdx, qword [rcx + 0x38]
test rdx, rdx
je 0x1401bf722
lea rax, [rcx + 0x30]
mov r8, qword [rcx + 0x30]
movups xmm0, xmmword [rcx + 0x40]
mov qword [rsp + 0x118], r8
mov qword [rsp + 0x120], rdx
movups xmmword [rsp + 0x128], xmm0
mov qword [rsp + 0x138], 0
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0xe0], rdx
lea rdx, [0x1400f9250]
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x60], 2
mov qword [rsp + 0x70], 0
movabs rdx, 0x400000020
mov qword [rsp + 0x78], rdx
mov byte [rsp + 0x80], 3
lea rdx, [0x1403c1068]
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], 1
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], 1
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc8], 1
lea rdx, [rsp + 0x118]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x90], rdx
lea rdx, [0x14032ae58]
mov qword [rsp + 0x98], rdx
lea rdx, [rsp + 0x88]
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], 1
mov qword [rsp + 0x108], rax
lea rdx, [rsp + 0xf8]
call fcn.1402c0db0
mov rdi, qword [rsp + 0xa0]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
jmp 0x1401bf498
lea rcx, [0x1403cd108]
call fcn.1402f5ba0
mov edx, eax
test al, al
jne 0x1401bf25a
jmp 0x1401bf3ae
lea rcx, [0x1403cd138]
call fcn.1402f5ba0
mov edx, eax
test al, al
jne 0x1401bf51e
jmp 0x1401bf67a
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.32.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1402ea480
ud2
lea rcx, str.FieldSet_corrupted__this_is_a_bug_Set_TCP_keepalive
lea r8, str.srchelper.rs
mov edx, 0x22
call fcn.1402ea820
ud2
lea rcx, str.FieldSet_corrupted__this_is_a_bug_Set_TCP_keepalive
lea r8, [0x14032b140]
mov edx, 0x22
call fcn.1402ea820
ud2
lea rcx, str.FieldSet_corrupted__this_is_a_bug_Set_TCP_keepalive
lea r8, [0x14032b108]
mov edx, 0x22
call fcn.1402ea820
ud2
lea rcx, str.FieldSet_corrupted__this_is_a_bug_Set_TCP_keepalive
lea r8, [0x14032b158]
mov edx, 0x22
call fcn.1402ea820
ud2