Function at 0x14002df54
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 0x140068990
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 [0x1400a9040]
xor rax, rbp
mov qword [rbp + 0x980], rax
lea rcx, [0x1400b90d9]
call fcn.14002dc9d
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.14002c13b
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.14002d9f5
nop
lea rcx, [rbp + 0x818]
call fcn.14002c564
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 0x140068ae4
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.14002c348
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, [0x14002c12c]
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.14002c564
mov eax, dword [rbp + 0x854]
jmp 0x140068f97
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x228]
call fcn.14002d59f
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.14002c352
mov qword [rbp + 0x968], rax
mov rcx, qword [rbp + 0x968]
call fcn.14002c2df
mov qword [rbp + 0x970], rax
mov rcx, qword [rbp + 0x9b0]
call fcn.14002c2df
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.14002c564
cmp dword [rbp + 0x4d4], 0
je 0x140068be7
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.14002c348
mov qword [rbp + 0x968], rax
lea rdx, [0x14002c12c]
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 + 0x8b4], 0
lea rcx, [rbp + 0x278]
call fcn.14002c564
mov eax, dword [rbp + 0x8b4]
jmp 0x140068f97
mov rax, qword [rbp + 0x1e8]
mov qword [rbp + 0x208], rax
jmp 0x140068c09
mov rax, qword [rbp + 0x208]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0
je 0x140068d1e
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 0x140068cc8
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.14002c348
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, [0x14002c12c]
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.14002c564
mov eax, dword [rbp + 0x8d4]
jmp 0x140068f97
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 0x140068d17
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x1c8], 0xffffffffffffffff
jmp 0x140068bf7
jmp 0x140068d1e
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x140068d8a
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.14002c348
mov qword [rbp + 0x968], rax
lea rdx, [0x14002c12c]
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.14002c564
mov eax, dword [rbp + 0x8f4]
jmp 0x140068f97
lea rcx, [rbp + 0x278]
call fcn.14002d856
mov dword [rbp + 0x964], eax
lea rcx, [rbp + 0x278]
call fcn.14002c2df
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 0x140068e68
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.14002c348
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, [0x14002c12c]
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.14002c564
mov eax, dword [rbp + 0x914]
jmp 0x140068f97
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 0x140068e9a
jmp 0x140068f5b
cmp dword [rbp + 0x4d4], 0
jne 0x140068ed6
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.14002c348
mov qword [rbp + 0x968], rax
lea rdx, [0x14002c12c]
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 0x140068f5b
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.14002c348
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, [0x14002c12c]
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.14002c564
mov eax, dword [rbp + 0x934]
jmp 0x140068f97
cmp dword [rbp + 0x4d4], 0
jg 0x140068e68
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.14002c564
mov eax, dword [rbp + 0x954]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140098030]
call fcn.14002d7a7
mov rax, rdi
mov rcx, qword [rbp + 0x980]
xor rcx, rbp
call fcn.14002ce01
lea rsp, [rbp + 0x998]
pop rdi
pop rbp
ret