Function at 0x140001370
Capabilities:
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x158], rax
mov ecx, 0x202
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x1400013e3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.WSAStartup_failed:
call fcn.140001780
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140001950]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140001508
mov qword [rsp + 0x270], rsi
lea r9, [rsp + 0x40]
xor esi, esi
mov qword [rsp + 0x280], r14
xorps xmm0, xmm0
mov qword [rsp + 0x40], rsi
xorps xmm1, xmm1
mov dword [rsp + 0x68], esi
mov r14d, 2
mov dword [rsp + 0x70], 1
lea r8, [rsp + 0x68]
mov dword [rsp + 0x6c], r14d
lea rdx, [0x1400034e0]
mov dword [rsp + 0x74], 6
lea rcx, str.208.80.154.232
movdqu xmmword [rsp + 0x78], xmm0
movdqu xmmword [rbp - 0x78], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x140001471
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.getaddrinfo_failed:
call fcn.140001780
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
jmp 0x1400016ec
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400016d3
mov r8d, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
mov ecx, dword [rcx + 4]
mov qword [rsp + 0x278], rdi
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001528
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_at_socket__:
mov ebx, eax
call fcn.140001780
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140001950]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rdi, qword [rsp + 0x278]
mov rsi, qword [rsp + 0x270]
mov r14, qword [rsp + 0x280]
mov rcx, qword [rbp + 0x158]
xor rcx, rsp
call fcn.1400019a0
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rbp
ret
xor ecx, ecx
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x58], r14w
call qword [sym.imp.WS2_32.dll_htonl]
xor ecx, ecx
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, setsockopt
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov word [rsp + 0x5a], ax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140001579
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.bind_failed_with_error:__d_n
call fcn.140001070
mov edx, 6
mov byte [rsp + 0x50], 1
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 1
mov rcx, rdi
lea r8d, [rdx + 9]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400015ae
lea rcx, str.setsockopt_TCP_FASTOPEN__failed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
movzx eax, byte [0x140003528]
lea rcx, [rbp + 0x140]
movups xmm0, xmmword [str.GET___HTTP_1.0_n_n]
mov byte [rbp + 0x150], al
mov rax, 0xffffffffffffffff
movups xmmword [rbp + 0x140], xmm0
inc rax
cmp byte [rcx + rax], sil
jne 0x1400015d7
mov rdx, qword [rsp + 0x40]
lea r9, [rbp + 0x140]
mov rcx, rdi
mov dword [rsp + 0x20], eax
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call fcn.1400010e0
test eax, eax
je 0x14000160d
lea rdx, str.ConnectEx_succeeded.
jmp 0x140001623
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x140001660
lea rdx, str.Result_is_pending.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001780
lea rdx, [0x140001950]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400014f0
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], esi
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, ebx
test eax, eax
je 0x1400016b9
mov r8, qword [rsp + 0x48]
lea rcx, str.ConnectEx_failed_with_error__d:__ls_n
call fcn.140001010
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400014e5
lea rcx, str.ConnectEx_failed_with_error__d_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400014e5
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Unable_to_connect_to_server_
call fcn.140001780
mov rcx, rax
lea rdx, [0x140001950]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400014f8