Function at 0x41308c
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 0x4130d8
cmp eax, 3
jne case.default.0x4130d6
lea r12, [rbx + 0x1e0]
movzx eax, byte [rbx + 0x270]
lea rcx, [0x00413a84]
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 0x4133ae
lea rcx, str._async_fn__resumed_after_completion
lea r8, [0x00492370]
jmp 0x413264
ud2
lea rsi, [rbx + 0x278]
call fcn.00485d17
mov ebp, eax
lea rdi, [rsp + 0x298]
mov rcx, rdi
mov rdx, rsi
mov r8, r15
call fcn.00413d22
mov r14, qword [rdi + 0x10]
cmp r14, 3
jne 0x4131e1
lea rdi, [rbx + 0x2f8]
cmp bpl, 2
setne r14b
test bpl, 1
sete bpl
call fcn.00485d17
test r14b, bpl
jne 0x41323c
cmp al, 2
je 0x41323c
and al, 1
jne 0x41323c
call fcn.00416ee5
mov bpl, 2
test rax, rax
je 0x413191
mov bpl, byte [rax + 0x4c]
mov r13b, byte [rax + 0x4d]
mov byte [rax + 0x4c], 0
mov rcx, rdi
mov rdx, r15
call fcn.004891a8
mov edi, eax
mov ecx, ebp
mov edx, r13d
call fcn.00404e71
test dil, dil
jne 0x41324f
movaps xmm0, xmmword [rsp + 0x390]
movaps xmmword [rsp + 0x90], xmm0
mov rcx, rsi
call fcn.00404e85
lea r8, [0x004916b8]
mov edx, 1
mov cl, 0x16
call fcn.0046ea40
mov rdi, rax
jmp 0x413217
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.00404e85
cmp r14d, 2
jne 0x41321f
mov r14d, 2
jmp 0x41322f
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x100], xmm0
mov r13, qword [rsp + 0xf8]
jmp 0x4132d5
mov rcx, rdi
mov rdx, r15
call fcn.004891a8
test al, al
je 0x4131b1
mov al, 3
jmp 0x413954
lea rcx, str._async_fn__resumed_after_completion
lea r8, [0x004923c8]
mov edx, 0x23
call fcn.00428e20
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.00413d22
mov r14, qword [rdi + 0x10]
cmp r14, 3
je 0x413952
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.00406362
cmp r14d, 2
jne 0x4132fa
lea rcx, [rsp + 0xa8]
lea rdx, [0x0049239b]
mov r8d, 0x11
mov r9, rdi
call fcn.0043bd61
jmp 0x413322
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.00406187
cmp r14d, 2
jne 0x4138e5
mov rcx, rbx
call fcn.004062a2
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 0x4138c4
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 0x4138c4
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 [0x004b4070]
cmp rax, 3
jne 0x413916
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 0x413499
call fcn.0043d6c4
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.0043bd61
mov r12, qword [rsi]
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x413a6c
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 0x4134c6
call fcn.0043d6c4
mov rdx, rax
lea r8, [0x0049c1e6]
lea rdi, [rsp + 0x1a8]
mov r9d, 0x19
mov rcx, rdi
call fcn.0043bf95
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x41396d
mov edi, dword [r14 + 0x28]
cmp edi, 0x3b9aca00
je 0x4135c2
mov r13, qword [r14 + 0x20]
mov rcx, r12
mov edx, 8
mov r8d, 1
call fcn.0044b3f0
test rax, rax
je 0x413531
lea rcx, [rsp + 0x1a8]
mov qword [rcx], rax
call fcn.00435782
jmp 0x4135c2
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 0x4138ba
cmp word [rbx + 0x20], 0
je 0x4135f6
mov ax, 1
cmp byte [r14 + 0x56], 0
je 0x413619
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 0x41363d
xor eax, eax
cmp byte [r14 + 0x51], 0
je 0x413619
mov eax, dword [r14 + 0x52]
lea rdx, [rsp + 0x138]
and word [rdx + 6], 0
mov dword [rdx + 2], eax
and word [rdx], 0
jmp 0x41363d
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.0044aaf7
mov rcx, r12
mov rdx, rsi
call fcn.0044b3cc
lea r8, [0x0049c1ff]
lea rsi, [rsp + 0xa0]
mov r9d, 0x14
mov rcx, rsi
mov rdx, rax
call fcn.0043bf95
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x413987
cmp byte [r14 + 0x68], 0
je 0x4136b4
mov rcx, r12
mov edx, 4
mov r8d, 1
call fcn.0044b3f0
test rax, rax
je 0x4136b4
lea rcx, [rsp + 0x1a8]
mov qword [rcx], rax
call fcn.00435782
cmp qword [r14 + 0x30], 0
je 0x4136f4
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.0044b3f0
test rax, rax
je 0x4136f4
lea rcx, [rsp + 0x1a8]
mov qword [rcx], rax
call fcn.00435782
cmp qword [r14 + 0x40], 0
je 0x413734
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.0044b3f0
test rax, rax
je 0x413734
lea rcx, [rsp + 0x1a8]
mov qword [rcx], rax
call fcn.00435782
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, [0x00413a84]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov ebp, dword [rbx + 0x268]
cmp ebp, 0x3b9aca00
je 0x413270
mov r13, qword [rbx + 0x260]
lea rdi, [rsp + 0x390]
mov ecx, 0x10
mov rsi, r12
rep movsq qword [rdi], qword [rsi]
call fcn.0047a460
mov rcx, rax
mov r8, r13
mov r9d, ebp
call fcn.0047a8a0
cmp edx, 0x3b9aca00
jne 0x41383d
call fcn.0048d84c
mov r8d, edx
lea r9, str._cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.29.0_src_time_sleep.rs
jmp 0x413847
mov r8d, edx
lea r9, [0x004923e0]
lea rcx, [rsp + 0x138]
mov rdx, rax
call fcn.0048d79c
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.0x4130d6.3
call fcn.0043d6c4
jmp 0x41351c
cmp qword [rbx + 0x10], 0
je 0x4139f7
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x413a25
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 0x4139ed
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, [0x004b4070]
lea r9, [0x0049e410]
xor edx, edx
call fcn.0044c310
jmp 0x413439
mov al, 4
mov byte [rbx + 0x270], al
mov rax, qword [rsp + 0x58]
mov qword [rax], 2
mov al, 3
jmp 0x413a52
mov r15, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1b0]
mov r14, qword [rsp + 0x1c0]
jmp 0x41399f
mov r15, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xb8]
mov rcx, r12
call fcn.0048e130
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.004062a2
jmp 0x413a2a
lea rdx, str.Network_unreachabletcp_connect_error
mov r8d, 0x13
mov cl, 7
call fcn.004498d9
lea rdx, [0x0049239b]
lea rcx, [rsp + 0x60]
mov r8d, 0x11
mov r9, rax
call fcn.0043bd61
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 0x4139aa