Function at 0x14001e390
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov qword [rbp + 0x38], r9
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov ecx, dword [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_connect]
call rax
mov dword [rbp - 4], eax
jmp 0x14001e3ee
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov ecx, dword [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_connect]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x14001e40b
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
cmp eax, 0x2714
jne 0x14001e40b
mov eax, 1
jmp 0x14001e410
mov eax, 0
test al, al
jne 0x14001e3ce
cmp dword [rbp - 4], 0xffffffff
jne 0x14001e5ad
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
cmp eax, 0x2733
sete al
test al, al
je 0x14001e524
mov rax, qword [rbp + 0x38]
mov r8, rax
mov edx, 1
mov rcx, qword [rbp + 0x20]
call method.http::detail::Socket.select_http::detail::Socket::SelectType__long_long_
mov dword [rbp - 0xc], 4
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
lea rcx, [rbp - 8]
lea rdx, [rbp - 0xc]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0x1007
mov edx, 0xffff
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_getsockopt]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x14001e4d2
mov ecx, 0x20
call sym.__cxa_allocate_exception
mov rbx, rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
lea r9, str.Failed_to_get_socket_option
lea r8, [0x140134f20]
mov edx, eax
mov rcx, rbx
call method.std::system_error.system_error_int__std::_V2::error_category_const__char_const_
mov r8, qword [method.std::system_error.system_error__]
lea rax, [0x14013eea0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov eax, dword [rbp - 8]
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x14001e5ad
mov ecx, 0x20
call sym.__cxa_allocate_exception
mov rbx, rax
mov eax, dword [rbp - 0x10]
lea r9, str.Failed_to_connect
lea r8, [0x140134f20]
mov edx, eax
mov rcx, rbx
call method.std::system_error.system_error_int__std::_V2::error_category_const__char_const_
mov r8, qword [method.std::system_error.system_error__]
lea rax, [0x14013eea0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov ecx, 0x20
call sym.__cxa_allocate_exception
mov rbx, rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
lea r9, str.Failed_to_connect
lea r8, [0x140134f20]
mov edx, eax
mov rcx, rbx
call method.std::system_error.system_error_int__std::_V2::error_category_const__char_const_
mov r8, qword [method.std::system_error.system_error__]
lea rax, [0x14013eea0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov rsi, rax
mov rcx, rbx
call sym.__cxa_free_exception
mov rax, rsi
mov rcx, rax
call dbg._Unwind_Resume
mov rsi, rax
mov rcx, rbx
call sym.__cxa_free_exception
mov rax, rsi
mov rcx, rax
call dbg._Unwind_Resume
mov rsi, rax
mov rcx, rbx
call sym.__cxa_free_exception
mov rax, rsi
mov rcx, rax
call dbg._Unwind_Resume
nop
add rsp, 0x40
pop rbx
pop rsi
pop rbp
ret