Function at 0x14002c258
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x470], 0xfffffffffffffffe
mov rdi, rdx
mov r13, rcx
mov rax, qword [rdx + 0xd8]
mov rcx, qword [rdx + 0xe8]
mov edx, dword [rdx + 0xd0]
test edx, edx
je 0x14002c2a8
cmp edx, 1
jne 0x14002c2ad
mov edx, 0x1bb
jmp 0x14002c2b3
push 0x50
pop rdx
jmp 0x14002c2b3
mov edx, dword [rdi + 0xd4]
lea r8, [rbp + 0x3c0]
mov qword [r8], rax
mov qword [r8 + 8], rcx
lea rax, [rbp + 0x3ec]
mov dword [rax], edx
lea rcx, [rbp - 0x50]
mov qword [rcx], r8
lea rdx, [0x140074f60]
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rax
lea rax, str._rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrarycore_srccharmethods.rs_bI
lea rdx, [rbp + 0x1b8]
mov qword [rdx], rax
push 2
pop rax
mov qword [rdx + 8], rax
and qword [rdx + 0x20], 0
lea r8, [0x14001c340]
mov qword [rcx + 0x18], r8
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rax
lea rbx, [rbp + 0x3d0]
mov rcx, rbx
call fcn.14003279b
mov r15, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rbx, [rbp + 0x1b8]
mov rcx, rbx
mov rdx, r15
call fcn.14007e680
mov rax, qword [rbx]
test rax, rax
je 0x14002c442
mov ecx, dword [rbp + 0x1b9]
mov edx, dword [rbp + 0x1bc]
mov dword [rbp + 0x3f4], edx
mov dword [rbp + 0x3f1], ecx
mov rcx, qword [rbp + 0x1c0]
movups xmm0, xmmword [rbp + 0x1c8]
movups xmmword [rbp + 0x400], xmm0
mov byte [rbp + 0x3f0], al
mov qword [rbp + 0x3f8], rcx
mov rax, qword [rbp + 0x400]
cmp rax, qword [rbp + 0x408]
je 0x14002c454
lea rcx, [rax + 0x20]
mov qword [rbp + 0x400], rcx
movzx r14d, word [rax]
mov edx, dword [rax + 0x14]
mov ecx, dword [rax + 0x18]
mov dword [rbp + 0x468], ecx
movzx esi, word [rax + 0x1c]
movzx ebx, word [rax + 0x1e]
mov byte [rbp + 0x1b8], 0x1f
cmp r14w, 2
je 0x14002c45b
mov dword [rbp + 0x458], edx
movzx ecx, word [rax + 0x12]
mov word [rbp - 0x40], cx
movups xmm0, xmmword [rax + 2]
movaps xmmword [rbp - 0x50], xmm0
lea rcx, [rbp + 0x1b8]
call fcn.14002e2d5
movzx eax, word [rbp - 0x40]
mov word [rbp + 0x420], ax
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x430], xmm0
mov word [rbp + 0x440], ax
mov rdx, qword [rdi + 0x128]
mov r8d, dword [rdi + 0x130]
lea rdi, [rbp + 0x1b8]
mov rcx, rdi
call fcn.14002cc88
mov r12d, dword [rdi + 8]
cmp r12d, 0x3b9aca01
jne 0x14002c49e
mov rax, qword [rbp + 0x1b8]
mov byte [r13], 0x19
mov qword [r13 + 8], rax
jmp 0x14002c46e
mov rax, qword [rbp + 0x1c0]
mov byte [r13], 0x19
mov qword [r13 + 8], rax
jmp 0x14002c47a
mov byte [rbp + 0x1b8], 0x1f
movups xmm0, xmmword [rbp + 0x1b8]
movups xmmword [rbp + 0x412], xmm0
movups xmmword [r13], xmm0
lea rcx, [rbp + 0x3f0]
call fcn.14003359e
mov rdx, qword [rbp + 0x3d8]
mov rcx, r15
call fcn.14003829d
nop
add rsp, 0x4f8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp r12d, 0x3b9aca00
jne 0x14002c57b
mov rdi, qword [rbp + 0x436]
cmp r14w, 3
je 0x14002c85e
mov r12, rdi
mov qword [rbp + 0x460], r13
mov edi, dword [rbp + 0x43e]
lea rax, [rbp + 0x410]
and qword [rax], 0
lea r15, [rbp + 0x1ba]
xor r13d, r13d
cmp r14w, 2
je 0x14002c5e9
mov word [rbp + 0x1b8], r14w
movzx eax, word [rbp + 0x434]
mov word [r15 + 4], ax
mov eax, dword [rbp + 0x430]
mov dword [r15], eax
mov qword [rbp + 0x1c0], r12
mov dword [rbp + 0x1c8], edi
mov eax, dword [rbp + 0x458]
mov dword [rbp + 0x1cc], eax
mov eax, dword [rbp + 0x468]
mov dword [rbp + 0x1d0], eax
mov word [rbp + 0x1d4], si
mov word [rbp + 0x1d6], bx
lea rcx, [rbp - 0x50]
xor edx, edx
lea r8, [rbp + 0x1b8]
call fcn.140090360
cmp qword [rbp - 0x50], 0
je 0x14002c603
mov r13, qword [rbp - 0x48]
lea rcx, [rbp + 0x410]
call fcn.140003992
mov qword [rbp + 0x410], r13
mov r14w, 2
jmp 0x14002c4e2
mov r15, qword [rbp + 0x1b8]
mov rax, qword [0x14013f4b0]
cmp rax, 3
jne 0x14002c706
mov rcx, rdi
mov edx, r14d
call fcn.14007f130
cmp qword [rdi], 0
mov rdi, qword [rdi + 8]
jne 0x14002c85e
lea r8, [rbp + 0x1b8]
mov dword [r8], 1
mov rcx, rdi
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14002c625
test r14w, r14w
je 0x14002c63a
push 0x1c
pop r8
mov ax, 0x17
movups xmm0, xmmword [rbp + 0x432]
mov ecx, dword [rbp + 0x458]
jmp 0x14002c652
test r13, r13
lea rdi, str.could_not_resolve_to_any_addresses
cmovne rdi, r13
mov r13, qword [rbp + 0x460]
jmp 0x14002c85e
mov rdi, qword [rbp - 0x48]
lea rcx, [rbp + 0x410]
call fcn.140003992
mov r13, qword [rbp + 0x460]
mov qword [r13 + 8], rdi
mov al, 0x2c
jmp 0x14002c864
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
jmp 0x14002c852
movzx esi, word [rbp + 0x434]
mov ecx, dword [rbp + 0x430]
push 0x10
pop r8
mov ax, 2
xorps xmm0, xmm0
rol si, 8
lea rdx, [rbp + 0x1b8]
mov word [rdx], ax
mov word [rdx + 2], si
mov dword [rdx + 4], ecx
movups xmmword [rdx + 8], xmm0
mov eax, dword [rbp + 0x468]
mov dword [rdx + 0x18], eax
mov qword [rbp + 0x468], rdi
mov rcx, rdi
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x14002c68c
xor edi, edi
jmp 0x14002c69c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
lea r8, [rbp + 0x1b8]
and dword [r8], 0
mov rcx, qword [rbp + 0x468]
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14002c6e1
test rdi, rdi
je 0x14002c710
mov esi, r12d
mov r12d, edi
and r12d, 3
lea rax, [0x14002cbd4]
movsxd rcx, dword [rax + r12*4]
add rcx, rax
jmp rcx
mov al, byte [rdi + 0x10]
jmp 0x14002c72d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14002c84b
mov r12d, edi
and r12d, 3
jmp 0x14002c83b
call fcn.1400d0310
jmp 0x14002c593
mov rdi, qword [rbp + 0x468]
jmp 0x14002c61a
mov al, byte [rdi + 0xf]
jmp 0x14002c72d
mov rcx, rdi
shr rcx, 0x20
call fcn.1400735c0
cmp al, 0xd
jne 0x14002c746
test r15, r15
jne 0x14002c774
test esi, esi
jne 0x14002c774
lea rbx, str.cannot_set_a_0_duration_timeout
jmp 0x14002c83b
mov rbx, rdi
jmp 0x14002c84b
mov qword [rbp + 0x460], r13
mov ecx, 0x7fffffff
cmp r15, rcx
cmovb rcx, r15
mov r8d, 0x3e8
mov eax, esi
xor edx, edx
div r8d
lea r15, [rbp + 0x410]
mov dword [r15], ecx
test rcx, rcx
push 1
pop r14
mov ecx, eax
cmove ecx, r14d
cmp esi, r8d
cmovae ecx, eax
mov dword [r15 + 4], ecx
lea rbx, [rbp + 0x1c8]
mov r8d, 0x1f8
mov rcx, rbx
xor edx, edx
call fcn.1400ca750
push 1
pop r13
lea rcx, [rbp - 0x40]
mov qword [rcx - 0x10], r13
mov rsi, qword [rbp + 0x468]
mov qword [rcx - 8], rsi
mov r8d, 0x1f8
xor edx, edx
call fcn.1400ca750
mov qword [rbx - 0x10], r13
mov qword [rbx - 8], rsi
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x50]
lea r9, [rbp + 0x1b8]
mov ecx, r14d
xor edx, edx
call qword [sym.imp.ws2_32.dll_select]
test eax, eax
je 0x14002c8e3
cmp eax, 0xffffffff
jne 0x14002c8f5
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
mov r13, qword [rbp + 0x460]
shl rbx, 0x20
or rbx, 2
lea rax, [r12 - 2]
cmp rax, 2
jb 0x14002c84b
test r12, r12
jne 0x14002c887
mov rdi, qword [rbp + 0x468]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rdi, rbx
mov qword [r13 + 8], rdi
mov al, 0x19
mov byte [r13], al
lea rcx, [rbp + 0x3f0]
call fcn.14003359e
mov rcx, qword [rbp + 0x3d0]
mov rdx, qword [rbp + 0x3d8]
jmp 0x14002c484
lea rax, [rdi - 1]
mov qword [rbp + 0x458], rax
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
mov qword [rbp + 0x450], rcx
mov qword [rbp + 0x460], rax
call qword [rax]
mov rax, qword [rbp + 0x460]
cmp qword [rax + 8], 0
mov rdi, qword [rbp + 0x468]
je 0x14002c8cf
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp + 0x450]
call fcn.14000c420
push 8
pop rdx
mov rcx, qword [rbp + 0x458]
call fcn.14000c420
jmp 0x14002c852
lea rbx, str.connection_timed_out
mov r13, qword [rbp + 0x460]
xor esi, esi
jmp 0x14002c907
mov sil, 1
cmp dword [rbp - 0x50], 1
mov r13, qword [rbp + 0x460]
jne 0x14002c97c
xor ebx, ebx
lea rax, [r12 - 2]
cmp rax, 2
jb 0x14002c967
test r12, r12
je 0x14002c967
lea rax, [rdi - 1]
mov qword [rbp + 0x458], rax
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
mov qword [rbp + 0x450], rcx
mov qword [rbp + 0x460], rax
call qword [rax]
mov rax, qword [rbp + 0x460]
cmp qword [rax + 8], 0
je 0x14002c958
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp + 0x450]
call fcn.14000c420
push 8
pop rdx
mov rcx, qword [rbp + 0x458]
call fcn.14000c420
test sil, sil
mov rdi, qword [rbp + 0x468]
jne 0x14002c61a
jmp 0x14002c852
lea r9, [rbp + 0x42c]
and dword [r9], 0
lea rax, [rbp + 0x3e8]
mov dword [rax], 4
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x468]
mov edx, 0xffff
mov r8d, 0x1007
call sub.ws2_32.dll_getsockopt
cmp eax, 0xffffffff
je 0x14002c9c8
mov ebx, dword [rbp + 0x42c]
test ebx, ebx
jne 0x14002c833
jmp 0x14002c905
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x14002c833