Function at 0x1401ba020
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 0x1401ba163
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 0x1401ba9d5
mov rax, qword [0x140305aa0]
test rax, rax
je 0x1401ba1db
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov rcx, rbx
mov edx, 0xffff
mov r8d, 8
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401ba5dd
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 sub.ws2_32.dll_WSAIoctl
cmp eax, 0xffffffff
je 0x1401ba5dd
movzx ebx, byte [rdi + 0x18]
cmp bl, 2
je 0x1401ba1c8
mov byte [rsp + 0x140], bl
mov rax, qword [0x140305aa0]
cmp rax, 5
je 0x1401ba189
test rax, rax
je 0x1401ba3e9
mov rcx, qword [rsi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x1401ba9d5
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 sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401ba7c7
add rsp, 0x150
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [0x140305130]
test al, al
je 0x1401ba08e
movzx eax, al
cmp eax, 1
je 0x1401ba213
cmp eax, 2
je 0x1401ba260
lea rcx, [0x140305120]
call fcn.1402df290
test al, al
je 0x1401ba08e
movzx eax, al
cmp eax, 2
je 0x1401ba260
mov rdx, qword [0x140305120]
mov rax, qword [0x1403f6a70]
cmp rax, 2
jne 0x1401ba08e
cmp qword [0x140305a88], 0
mov rcx, qword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov rax, qword [0x140305a98]
je 0x1401ba255
mov r8, qword [rax + 0x10]
dec r8
and r8, 0xfffffffffffffff0
add rcx, r8
add rcx, 0x10
call qword [rax + 0x28]
test al, al
je 0x1401ba08e
mov rax, qword [0x140305120]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x1401ba9ef
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, [0x1401410b0]
mov qword [rsp + 0x100], rcx
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x108], r8
mov qword [rsp + 0x110], rcx
lea rcx, str.Set_TCP_keepalive
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, [0x140341f68]
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 [0x1403f6a70]
cmp rax, 2
jne 0x1401ba08e
cmp qword [0x140305a88], 0
mov r12, qword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov r13, qword [0x140305a98]
je 0x1401ba3be
mov rax, qword [r13 + 0x10]
dec rax
and rax, 0xfffffffffffffff0
add r12, rax
add r12, 0x10
lea rdx, [rsp + 0x118]
mov rcx, r12
call qword [r13 + 0x50]
test al, al
je 0x1401ba08e
lea rdx, [rsp + 0x118]
mov rcx, r12
call qword [r13 + 0x58]
jmp 0x1401ba08e
movzx eax, byte [0x1403051a8]
test al, al
je 0x1401ba189
movzx eax, al
cmp eax, 1
je 0x1401ba421
cmp eax, 2
je 0x1401ba46e
lea rcx, str.hA4_
call fcn.1402df290
test al, al
je 0x1401ba189
movzx eax, al
cmp eax, 2
je 0x1401ba46e
mov rdx, qword [str.hA4_]
mov rax, qword [0x1403f6a70]
cmp rax, 2
jne 0x1401ba189
cmp qword [0x140305a88], 0
mov rcx, qword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov rax, qword [0x140305a98]
je 0x1401ba463
mov r8, qword [rax + 0x10]
dec r8
and r8, 0xfffffffffffffff0
add rcx, r8
add rcx, 0x10
call qword [rax + 0x28]
test al, al
je 0x1401ba189
mov rax, qword [str.hA4_]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x1401baa09
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, [0x14013f7a0]
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, [0x140341f68]
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 [0x1403f6a70]
cmp rax, 2
jne 0x1401ba5d0
cmp qword [0x140305a88], 0
mov rdi, qword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov rbx, qword [0x140305a98]
je 0x1401ba5b0
mov rax, qword [rbx + 0x10]
dec rax
and rax, 0xfffffffffffffff0
add rdi, rax
add rdi, 0x10
lea rdx, [rsp + 0x118]
mov rcx, rdi
call qword [rbx + 0x50]
test al, al
je 0x1401ba5d0
lea rdx, [rsp + 0x118]
mov rcx, rdi
call qword [rbx + 0x58]
movzx ebx, byte [rsp + 0x140]
jmp 0x1401ba189
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, rax
call fcn.1401baa60
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.1401baad0
mov qword [rsp + 0xa0], rax
mov rax, qword [0x140305aa0]
cmp rax, 5
jae 0x1401ba7a8
movzx edx, byte [0x140305190]
test dl, dl
je 0x1401ba7a8
movzx eax, dl
cmp eax, 1
je 0x1401ba654
cmp eax, 2
jne 0x1401ba9a2
mov dl, 2
mov rcx, qword [0x140305180]
call fcn.1402dea20
test al, al
je 0x1401ba7a8
mov rcx, qword [0x140305180]
mov rdx, qword [rcx + 0x38]
test rdx, rdx
je 0x1401baa23
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, [0x1400ed190]
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, [0x1403d7d80]
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, [0x140341f68]
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.1402df780
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax]
movzx ebx, byte [rdi + 0x18]
cmp bl, 2
jne 0x1401ba16c
jmp 0x1401ba1c8
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
lea rcx, [0x140342257]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x15
mov qword [rsp + 0x60], rax
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.1401bab50
mov rdi, rax
mov qword [rsp + 0xa0], rax
mov rax, qword [0x140305aa0]
cmp rax, 4
ja 0x1401ba995
movzx edx, byte [0x1403051c0]
test dl, dl
je 0x1401ba995
movzx eax, dl
cmp eax, 1
je 0x1401ba839
cmp eax, 2
jne 0x1401ba9bd
mov dl, 2
mov rcx, qword [0x1403051b0]
call fcn.1402dea20
test al, al
je 0x1401ba995
mov rcx, qword [0x1403051b0]
mov rdx, qword [rcx + 0x38]
test rdx, rdx
je 0x1401baa3d
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, [0x1400ed190]
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, [0x1403d7d80]
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, [0x140341f68]
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.1402df780
mov rdi, qword [rsp + 0xa0]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
jmp 0x1401ba1c8
lea rcx, [0x140305180]
call fcn.1402df290
mov edx, eax
test al, al
jne 0x1401ba654
jmp 0x1401ba7a8
lea rcx, [0x1403051b0]
call fcn.1402df290
mov edx, eax
test al, al
jne 0x1401ba839
jmp 0x1401ba995
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._Users_sh1n_.cargo_registry_src_rsproxy.cn_8f6827c7555bfaf8_tokio_1.32.0_src_io_poll_evented.rs
mov edx, 0x2b
call fcn.140137ef0
ud2
lea rcx, str.FieldSet_corrupted__this_is_a_bug_src_helper.rs
lea r8, [0x140341f18]
mov edx, 0x22
call fcn.14013ddc0
ud2
lea rcx, str.FieldSet_corrupted__this_is_a_bug_src_helper.rs
lea r8, [0x1403421f0]
mov edx, 0x22
call fcn.14013ddc0
ud2
lea rcx, str.FieldSet_corrupted__this_is_a_bug_src_helper.rs
lea r8, [0x1403421d8]
mov edx, 0x22
call fcn.14013ddc0
ud2
lea rcx, str.FieldSet_corrupted__this_is_a_bug_src_helper.rs
lea r8, [0x140342228]
mov edx, 0x22
call fcn.14013ddc0
ud2