Function at 0x1400219e7
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
jmp 0x1400487a0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x9b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1a6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x9d8]
mov rax, qword [0x14007c040]
xor rax, rbp
mov qword [rbp + 0x980], rax
lea rcx, [0x14008894f]
call fcn.140022617
mov qword [rbp + 0x1c8], 0xffffffffffffffff
mov qword [rbp + 0x1e8], 0
mov qword [rbp + 0x208], 0
mov r8, qword [rbp + 0x9b0]
lea rdx, str.GET___HTTP_1.1_r_nHost:
lea rcx, [rbp + 0x818]
call fcn.1400210fa
mov qword [rbp + 0x968], rax
mov rax, qword [rbp + 0x968]
mov qword [rbp + 0x970], rax
lea r8, str._r_nConnection:_close_r_n_r_n
mov rdx, qword [rbp + 0x970]
lea rcx, [rbp + 0x278]
call fcn.14002242d
nop
lea rcx, [rbp + 0x818]
call fcn.140021451
mov dword [rbp + 0x4f4], 0x200
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x4d4], eax
cmp dword [rbp + 0x4d4], 0
je 0x1400488f4
lea rdx, str.WSAStartup_fall
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400212ad
mov qword [rbp + 0x968], rax
mov edx, dword [rbp + 0x4d4]
mov rcx, qword [rbp + 0x968]
call qword [sym.imp.MSVCP140D.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 qword [rbp + 0x970], rax
lea rdx, [0x1400210eb]
mov rcx, qword [rbp + 0x970]
call qword [sym.imp.MSVCP140D.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 dword [rbp + 0x854], 0
lea rcx, [rbp + 0x278]
call fcn.140021451
mov eax, dword [rbp + 0x854]
jmp 0x140048dc1
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x228]
call fcn.14002209a
mov dword [rbp + 0x22c], 2
mov dword [rbp + 0x230], 1
mov dword [rbp + 0x234], 6
mov edx, dword [rbp + 0x9b8]
lea rcx, [rbp + 0x878]
call fcn.1400212b2
mov qword [rbp + 0x968], rax
mov rcx, qword [rbp + 0x968]
call fcn.140021258
mov qword [rbp + 0x970], rax
mov rcx, qword [rbp + 0x9b0]
call fcn.140021258
mov qword [rbp + 0x978], rax
lea r9, [rbp + 0x1e8]
lea r8, [rbp + 0x228]
mov rdx, qword [rbp + 0x970]
mov rcx, qword [rbp + 0x978]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rbp + 0x4d4], eax
lea rcx, [rbp + 0x878]
call fcn.140021451
cmp dword [rbp + 0x4d4], 0
je 0x140048a11
lea rdx, str.getaddrinfo_fall
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400212ad
mov qword [rbp + 0x968], rax
mov edx, dword [rbp + 0x4d4]
mov rcx, qword [rbp + 0x968]
call qword [sym.imp.MSVCP140D.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 qword [rbp + 0x970], rax
lea rdx, [0x1400210eb]
mov rcx, qword [rbp + 0x970]
call qword [sym.imp.MSVCP140D.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 dword [rbp + 0x8b4], 0
lea rcx, [rbp + 0x278]
call fcn.140021451
mov eax, dword [rbp + 0x8b4]
jmp 0x140048dc1
mov rax, qword [rbp + 0x1e8]
mov qword [rbp + 0x208], rax
jmp 0x140048a33
mov rax, qword [rbp + 0x208]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0
je 0x140048b48
mov rax, qword [rbp + 0x208]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0x208]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x208]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x140048af2
lea rdx, str.Error_al_crear_el_socket:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400212ad
mov qword [rbp + 0x968], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x970], eax
mov edx, dword [rbp + 0x970]
mov rcx, qword [rbp + 0x968]
call qword [sym.imp.MSVCP140D.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 qword [rbp + 0x978], rax
lea rdx, [0x1400210eb]
mov rcx, qword [rbp + 0x978]
call qword [sym.imp.MSVCP140D.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 dword [rbp + 0x8d4], 0
lea rcx, [rbp + 0x278]
call fcn.140021451
mov eax, dword [rbp + 0x8d4]
jmp 0x140048dc1
mov rax, qword [rbp + 0x208]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x208]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x4d4], eax
cmp dword [rbp + 0x4d4], 0xffffffff
jne 0x140048b41
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x1c8], 0xffffffffffffffff
jmp 0x140048a21
jmp 0x140048b48
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x140048bb4
lea rdx, str.No_se_pudo_conectar_al_servidor.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400212ad
mov qword [rbp + 0x968], rax
lea rdx, [0x1400210eb]
mov rcx, qword [rbp + 0x968]
call qword [sym.imp.MSVCP140D.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 dword [rbp + 0x8f4], 0
lea rcx, [rbp + 0x278]
call fcn.140021451
mov eax, dword [rbp + 0x8f4]
jmp 0x140048dc1
lea rcx, [rbp + 0x278]
call fcn.1400222d9
mov dword [rbp + 0x964], eax
lea rcx, [rbp + 0x278]
call fcn.140021258
mov qword [rbp + 0x968], rax
xor r9d, r9d
mov r8d, dword [rbp + 0x964]
mov rdx, qword [rbp + 0x968]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 0x4d4], eax
cmp dword [rbp + 0x4d4], 0xffffffff
jne 0x140048c92
lea rdx, str.send_fall
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400212ad
mov qword [rbp + 0x968], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x970], eax
mov edx, dword [rbp + 0x970]
mov rcx, qword [rbp + 0x968]
call qword [sym.imp.MSVCP140D.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 qword [rbp + 0x978], rax
lea rdx, [0x1400210eb]
mov rcx, qword [rbp + 0x978]
call qword [sym.imp.MSVCP140D.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 [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rbp + 0x914], 0
lea rcx, [rbp + 0x278]
call fcn.140021451
mov eax, dword [rbp + 0x914]
jmp 0x140048dc1
xor r9d, r9d
mov r8d, dword [rbp + 0x4f4]
lea rdx, [rbp + 0x2c0]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x4d4], eax
cmp dword [rbp + 0x4d4], 0
jle 0x140048cc4
jmp 0x140048d85
cmp dword [rbp + 0x4d4], 0
jne 0x140048d00
lea rdx, str.Conexi
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400212ad
mov qword [rbp + 0x968], rax
lea rdx, [0x1400210eb]
mov rcx, qword [rbp + 0x968]
call qword [sym.imp.MSVCP140D.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]
jmp 0x140048d85
lea rdx, str.recv_fall
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400212ad
mov qword [rbp + 0x968], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x970], eax
mov edx, dword [rbp + 0x970]
mov rcx, qword [rbp + 0x968]
call qword [sym.imp.MSVCP140D.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 qword [rbp + 0x978], rax
lea rdx, [0x1400210eb]
mov rcx, qword [rbp + 0x978]
call qword [sym.imp.MSVCP140D.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 [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rbp + 0x934], 0
lea rcx, [rbp + 0x278]
call fcn.140021451
mov eax, dword [rbp + 0x934]
jmp 0x140048dc1
cmp dword [rbp + 0x4d4], 0
jg 0x140048c92
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rbp + 0x954], 1
lea rcx, [rbp + 0x278]
call fcn.140021451
mov eax, dword [rbp + 0x954]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14006f130]
call fcn.140022257
mov rax, rdi
mov rcx, qword [rbp + 0x980]
xor rcx, rbp
call fcn.140021ab9
lea rsp, [rbp + 0x998]
pop rdi
pop rbp
ret