Function at 0x412fd4
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x418
mov r15, r8
mov rbx, rdx
movzx eax, byte [rdx + 0x378]
test eax, eax
mov qword [rsp + 0x58], rcx
je 0x413020
cmp eax, 3
jne case.default.0x41301e
lea r12, [rbx + 0x1e0]
movzx eax, byte [rbx + 0x270]
lea rcx, [0x004139cc]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov rax, qword [rbx + 0x368]
mov rcx, qword [rbx + 0x370]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rcx
and qword [rbx + 0x10], 0
mov qword [rbx + 0x50], rax
jmp 0x4132f6
lea rcx, str._async_fn__resumed_after_completion
lea r8, [0x00496480]
jmp 0x4131ac
ud2
lea rsi, [rbx + 0x278]
call fcn.00489171
mov ebp, eax
lea rdi, [rsp + 0x298]
mov rcx, rdi
mov rdx, rsi
mov r8, r15
call fcn.00413c6a
mov r14, qword [rdi + 0x10]
cmp r14, 3
jne 0x413129
lea rdi, [rbx + 0x2f8]
cmp bpl, 2
setne r14b
test bpl, 1
sete bpl
call fcn.00489171
test r14b, bpl
jne 0x413184
cmp al, 2
je 0x413184
and al, 1
jne 0x413184
call fcn.00416e31
mov bpl, 2
test rax, rax
je 0x4130d9
mov bpl, byte [rax + 0x4c]
mov r13b, byte [rax + 0x4d]
mov byte [rax + 0x4c], 0
mov rcx, rdi
mov rdx, r15
call fcn.0048c704
mov edi, eax
mov ecx, ebp
mov edx, r13d
call fcn.00404e55
test dil, dil
jne 0x413197
movaps xmm0, xmmword [rsp + 0x390]
movaps xmmword [rsp + 0x90], xmm0
mov rcx, rsi
call fcn.00404e69
lea r8, [0x00495660]
mov edx, 1
mov cl, 0x16
call fcn.00471a00
mov rdi, rax
jmp 0x41315f
mov rdi, qword [rsp + 0x298]
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0xf8], rax
movups xmm0, xmmword [rsp + 0x2b0]
movaps xmmword [rsp + 0x90], xmm0
mov rcx, rsi
call fcn.00404e69
cmp r14d, 2
jne 0x413167
mov r14d, 2
jmp 0x413177
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x100], xmm0
mov r13, qword [rsp + 0xf8]
jmp 0x41321d
mov rcx, rdi
mov rdx, r15
call fcn.0048c704
test al, al
je 0x4130f9
mov al, 3
jmp 0x41389c
lea rcx, str._async_fn__resumed_after_completion
lea r8, [0x004964d8]
mov edx, 0x23
call fcn.00428f60
ud2
lea rdi, [rbx + 0x278]
mov ecx, 0x10
mov rsi, r12
rep movsq qword [rdi], qword [rsi]
lea rsi, [rbx + 0x278]
lea rdi, [rsp + 0x298]
mov rcx, rdi
mov rdx, rsi
mov r8, r15
call fcn.00413c6a
mov r14, qword [rdi + 0x10]
cmp r14, 3
je 0x41389a
mov rdi, qword [rsp + 0x298]
mov r13, qword [rsp + 0x2a0]
movups xmm0, xmmword [rsp + 0x2b0]
movaps xmmword [rsp + 0x100], xmm0
mov rcx, rsi
call fcn.00406381
cmp r14d, 2
jne 0x413242
lea rcx, [rsp + 0xa8]
lea rdx, [0x004964ab]
mov r8d, 0x11
mov r9, rdi
call fcn.0043bbc5
jmp 0x41326a
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xb8], r14
movaps xmm0, xmmword [rsp + 0x100]
movups xmmword [rsp + 0xc0], xmm0
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xc0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xe0], rdx
mov qword [rsp + 0xe8], r8
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xf0], rax
mov byte [rbx + 0x270], 1
mov rcx, r12
call fcn.004061a6
cmp r14d, 2
jne 0x41382d
mov rcx, rbx
call fcn.004062c1
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmm1, xmmword [rsp + 0xe0]
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
mov rax, qword [rbx + 0x50]
mov rcx, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
je 0x41380c
lea rdx, [rcx + 0x20]
mov qword [rax + 8], rdx
movzx eax, word [rcx]
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x11e], xmm0
movups xmm0, xmmword [rcx + 2]
movaps xmmword [rsp + 0x110], xmm0
cmp ax, 2
je 0x41380c
mov word [rbx + 0x20], ax
movaps xmm0, xmmword [rsp + 0x110]
movups xmmword [rbx + 0x22], xmm0
movups xmm0, xmmword [rsp + 0x11e]
movups xmmword [rbx + 0x30], xmm0
mov rcx, qword [rbx + 0x40]
mov r14, qword [rbx + 0x48]
mov rbp, qword [rcx + 0x20]
mov ecx, dword [rcx + 0x28]
mov dword [rsp + 0x54], ecx
test ax, ax
mov eax, 2
mov esi, 0x17
cmove esi, eax
mov rax, qword [0x004b8070]
cmp rax, 3
jne 0x41385e
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 r12, rax
cmp rax, 0xffffffffffffffff
jne 0x4133e1
call fcn.0043d7cc
lea rdx, str.tcp_open_errortcp_set_nonblocking_errortcp_bind_local_error
lea rsi, [rsp + 0x1a8]
mov r8d, 0xe
mov rcx, rsi
mov r9, rax
call fcn.0043bbc5
mov r12, qword [rsi]
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x4139b4
lea rsi, [rsp + 0x138]
mov dword [rsi], 1
mov rcx, r12
mov edx, 0x8004667e
mov r8, rsi
call sub.WS2_32.dll_ioctlsocket
xor edx, edx
cmp eax, 0xffffffff
jne 0x41340e
call fcn.0043d7cc
mov rdx, rax
lea r8, [0x004a05b6]
lea rdi, [rsp + 0x1a8]
mov r9d, 0x19
mov rcx, rdi
call fcn.0043bdf9
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x4138b5
mov edi, dword [r14 + 0x28]
cmp edi, 0x3b9aca00
je 0x41350a
mov r13, qword [r14 + 0x20]
mov rcx, r12
mov edx, 8
mov r8d, 1
call fcn.0044e3b8
test rax, rax
je 0x413479
lea rcx, [rsp + 0x1a8]
mov qword [rcx], rax
call fcn.00435592
jmp 0x41350a
mov ecx, 0x3e8
mov rax, r13
mul rcx
mov rcx, rax
mov r8, rdx
xor r9d, r9d
mov r10d, 0xf4240
mov eax, edi
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 + 0x1a8]
mov dword [r8], 1
mov dword [r8 + 4], r9d
and dword [r8 + 8], 0
and dword [rsp + 0x138], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
and dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rsi
and qword [rsp + 0x20], 0
mov rcx, r12
mov edx, 0x98000004
mov r9d, 0xc
call sub.WS2_32.dll_WSAIoctl
cmp eax, 0xffffffff
je 0x413802
cmp word [rbx + 0x20], 0
je 0x41353e
mov ax, 1
cmp byte [r14 + 0x56], 0
je 0x413561
movups xmm0, xmmword [r14 + 0x57]
lea rdx, [rsp + 0x138]
movups xmmword [rdx + 4], xmm0
and qword [rdx + 0x14], 0
and word [rdx + 0x1c], 0
mov word [rdx], 1
jmp 0x413585
xor eax, eax
cmp byte [r14 + 0x51], 0
je 0x413561
mov eax, dword [r14 + 0x52]
lea rdx, [rsp + 0x138]
and word [rdx + 6], 0
mov dword [rdx + 2], eax
and word [rdx], 0
jmp 0x413585
lea rdx, [rsp + 0x138]
mov word [rdx], ax
and word [rdx + 6], 0
and dword [rdx + 2], 0
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
and dword [rdx + 0x18], 0
and word [rdx + 0x1c], 0
lea rsi, [rsp + 0x1a8]
mov rcx, rsi
call fcn.0044dabf
mov rcx, r12
mov rdx, rsi
call fcn.0044e394
lea r8, [0x004a05cf]
lea rsi, [rsp + 0xa0]
mov r9d, 0x14
mov rcx, rsi
mov rdx, rax
call fcn.0043bdf9
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x4138cf
cmp byte [r14 + 0x68], 0
je 0x4135fc
mov rcx, r12
mov edx, 4
mov r8d, 1
call fcn.0044e3b8
test rax, rax
je 0x4135fc
lea rcx, [rsp + 0x1a8]
mov qword [rcx], rax
call fcn.00435592
cmp qword [r14 + 0x30], 0
je 0x41363c
mov rax, qword [r14 + 0x38]
mov rcx, rax
shr rcx, 0x20
xor r8d, r8d
neg rcx
sbb r8d, r8d
or r8d, eax
mov rcx, r12
mov edx, 0x1001
call fcn.0044e3b8
test rax, rax
je 0x41363c
lea rcx, [rsp + 0x1a8]
mov qword [rcx], rax
call fcn.00435592
cmp qword [r14 + 0x40], 0
je 0x41367c
mov rax, qword [r14 + 0x48]
mov rcx, rax
shr rcx, 0x20
xor r8d, r8d
neg rcx
sbb r8d, r8d
or r8d, eax
mov rcx, r12
mov edx, 0x1002
call fcn.0044e3b8
test rax, rax
je 0x41367c
lea rcx, [rsp + 0x1a8]
mov qword [rcx], rax
call fcn.00435592
movups xmm0, xmmword [rbx + 0x20]
movups xmm1, xmmword [rbx + 0x30]
lea r13, [rbx + 0x58]
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm1
lea rdi, [rbx + 0x78]
lea rsi, [rsp + 0x390]
mov ecx, 0xa
rep movsq qword [rdi], qword [rsi]
mov qword [rbx + 0xc8], r12
xor eax, eax
mov byte [rbx + 0xd0], al
mov ecx, dword [rsp + 0x90]
mov edx, dword [rsp + 0x93]
mov dword [rbx + 0xd1], ecx
mov dword [rbx + 0xd4], edx
mov qword [rbx + 0xd8], rbp
mov ecx, dword [rsp + 0x54]
mov dword [rbx + 0xe0], ecx
mov byte [rbx + 0xe8], al
lea rcx, [rbx + 0xe9]
lea rdx, [rsp + 0x298]
mov r8d, 0xf7
call sub.ntdll.dll_memcpy
lea r12, [rbx + 0x1e0]
mov r8d, 0x188
mov rcx, r12
mov rdx, r13
call sub.ntdll.dll_memcpy
movzx eax, byte [rbx + 0x270]
lea rcx, [0x004139cc]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov ebp, dword [rbx + 0x268]
cmp ebp, 0x3b9aca00
je 0x4131b8
mov r13, qword [rbx + 0x260]
lea rdi, [rsp + 0x390]
mov ecx, 0x10
mov rsi, r12
rep movsq qword [rdi], qword [rsi]
call fcn.0047d420
mov rcx, rax
mov r8, r13
mov r9d, ebp
call fcn.0047d860
cmp edx, 0x3b9aca00
jne 0x413785
call fcn.00490ea2
mov r8d, edx
lea r9, str._cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.29.0_src_time_sleep.rs
jmp 0x41378f
mov r8d, edx
lea r9, [0x004964f0]
lea rcx, [rsp + 0x138]
mov rdx, rax
call fcn.00490da3
lea rdi, [rsp + 0x318]
lea rsi, [rsp + 0x138]
mov ecx, 0xe
rep movsq qword [rdi], qword [rsi]
lea rdx, [rsp + 0x298]
lea rsi, [rsp + 0x390]
mov ecx, 0x10
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
lea rsi, [rsp + 0x1a8]
mov r8d, 0xf0
mov rcx, rsi
call sub.ntdll.dll_memcpy
lea rcx, [rbx + 0x278]
mov r8d, 0xf0
mov rdx, rsi
call sub.ntdll.dll_memcpy
jmp case.0x41301e.3
call fcn.0043d7cc
jmp 0x413464
cmp qword [rbx + 0x10], 0
je 0x41393f
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x41396d
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmm1, xmmword [rsp + 0xe0]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
xor esi, esi
jmp 0x413935
lea rax, [rsp + 0xa0]
mov byte [rax], 1
lea r8, [rsp + 0x138]
mov qword [r8], rax
lea rax, str._cargo_registry_src_index.crates.io_6f17d22bba15001f_socket2_0.4.9_src_sys_windows.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x004b8070]
lea r9, [0x004a29e0]
xor edx, edx
call fcn.0044f2d0
jmp 0x413381
mov al, 4
mov byte [rbx + 0x270], al
mov rax, qword [rsp + 0x58]
mov qword [rax], 2
mov al, 3
jmp 0x41399a
mov r15, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1b0]
mov r14, qword [rsp + 0x1c0]
jmp 0x4138e7
mov r15, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xb8]
mov rcx, r12
call fcn.00491788
mov r12, r15
mov qword [rbx + 0x58], r12
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x68], rdi
mov qword [rbx + 0x70], r14
mov dword [rbx + 0xe0], 0x3b9aca01
mov rax, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x60]
mov rdx, qword [rbx + 0x68]
mov r8, qword [rbx + 0x70]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], r8
mov esi, 1
mov rcx, rbx
call fcn.004062c1
jmp 0x413972
lea rdx, str.Network_unreachabletcp_connect_error
mov r8d, 0x13
mov cl, 7
call fcn.0043cd4b
lea rdx, [0x004964ab]
lea rcx, [rsp + 0x60]
mov r8d, 0x11
mov r9, rax
call fcn.0043bbc5
mov esi, 1
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rsi
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rcx + 8], xmm0
movups xmmword [rcx + 0x18], xmm1
mov rax, qword [rsp + 0x80]
mov qword [rcx + 0x28], rax
mov al, 1
mov byte [rbx + 0x378], al
add rsp, 0x418
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [rsp + 0x1b0]
mov r14, qword [rsp + 0x1c0]
jmp 0x4138f2