Function at 0x140001450
Capabilities:
Check for time delay via gettickcount
Connect socket
Get socket status
Set socket configuration

Disassembly:
push rbp
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x200], rcx
mov qword [rbp + 0x208], rdx
mov dword [rbp + 0x210], r8d
mov dword [rbp + 0x1c8], 1
lea rdx, [rbp + 0x1c8]
mov rax, qword [rbp + 0x200]
mov r8, rdx
mov edx, 0x8004667e
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_ioctlsocket]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x140001505
lea rax, str.____Fehler_beim_Setzen_des_nicht_blockierenden_Modus:
mov rdx, rax
mov rax, qword [0x1400bff60]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call method.std::ostream.operator___int_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x200]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x1400017f6
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp + 0x1d8], eax
mov ecx, dword [rbp + 0x210]
mov rdx, qword [rbp + 0x208]
mov rax, qword [rbp + 0x200]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x1400017c9
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
cmp eax, 0x2733
sete al
test al, al
je 0x140001773
mov dword [rbp - 0x50], 0
mov dword [rbp + 0x1dc], 0
jmp 0x14000158c
mov eax, dword [rbp + 0x1dc]
mov rax, qword [rbp + rax*8 - 0x48]
cmp qword [rbp + 0x200], rax
je 0x140001597
add dword [rbp + 0x1dc], 1
mov eax, dword [rbp - 0x50]
cmp dword [rbp + 0x1dc], eax
jb 0x140001571
mov eax, dword [rbp - 0x50]
cmp dword [rbp + 0x1dc], eax
jne 0x1400015c5
mov eax, dword [rbp - 0x50]
cmp eax, 0x3f
ja 0x1400015c5
mov eax, dword [rbp + 0x1dc]
mov rdx, qword [rbp + 0x200]
mov qword [rbp + rax*8 - 0x48], rdx
mov eax, dword [rbp - 0x50]
add eax, 1
mov dword [rbp - 0x50], eax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
sub eax, dword [rbp + 0x1d8]
mov dword [rbp + 0x1d4], eax
cmp dword [rbp + 0x1d4], 0x1387
ja 0x1400015f3
mov eax, 0x1388
sub eax, dword [rbp + 0x1d4]
jmp 0x1400015f8
mov eax, 0
mov dword [rbp + 0x1d0], eax
mov eax, dword [rbp + 0x1d0]
mov eax, eax
imul rax, rax, 0x10624dd3
shr rax, 0x20
shr eax, 6
mov dword [rbp + 0x1c0], eax
mov ecx, dword [rbp + 0x1d0]
mov eax, ecx
imul rax, rax, 0x10624dd3
shr rax, 0x20
shr eax, 6
imul edx, eax, 0x3e8
mov eax, ecx
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rbp + 0x1c4], eax
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
mov dword [rbp + 0x1cc], eax
cmp dword [rbp + 0x1cc], 0xffffffff
jne 0x1400016da
lea rax, str.____Fehler_beim_berprfen_des_Sockets:
mov rdx, rax
mov rax, qword [0x1400bff60]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call method.std::ostream.operator___int_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x200]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x1400017f6
cmp dword [rbp + 0x1cc], 0
jne 0x140001726
lea rax, str.____Verbindungstimeout
mov rdx, rax
mov rax, qword [0x1400bff60]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x200]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x1400017f6
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x200]
mov rcx, rax
call sym.__WSAFDIsSet
test eax, eax
setne al
test al, al
je 0x14000155e
lea rax, str.___Verbindung_hergestellt
mov rdx, rax
mov rax, qword [0x1400bff80]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x1400017c9
lea rax, str.____Verbindungsfehler:
mov rdx, rax
mov rax, qword [0x1400bff60]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call method.std::ostream.operator___int_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x200]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x1400017f6
mov dword [rbp + 0x1c8], 0
lea rdx, [rbp + 0x1c8]
mov rax, qword [rbp + 0x200]
mov r8, rdx
mov edx, 0x8004667e
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_ioctlsocket]
call rax
nop
add rsp, 0x268
pop rbx
pop rbp
ret