Function at 0x140001540
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rdi
push rbx
mov eax, 0x1060
call fcn.140002bb0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1000], rcx
mov qword [rbp + 0x1008], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.InterstellarComms
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xfd8], rax
cmp qword [rbp + 0xfd8], 0
jne 0x1400015d8
lea rax, str.Error_initializing_GalacticComm
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.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 [0x140006590]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov eax, 0
jmp 0x1400017a6
mov rdx, qword [rbp + 0x1000]
mov rax, qword [rbp + 0xfd8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x400100
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0xfd0], rax
cmp qword [rbp + 0xfd0], 0
jne 0x140001668
lea rax, str.Error_establishing_wormhole_connection
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.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 [0x140006590]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0xfd8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x1400017a6
mov dword [rbp + 0xfbc], 0
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x200
mov rdi, rdx
rep stosq qword [rdi], rax
lea rcx, [rbp + 0xfbc]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xfd0]
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
sete al
test al, al
je 0x140001711
lea rax, str.Error_reading_extraplanetary_payload
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.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 [0x140006590]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0xfd0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xfd8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x1400017a6
mov eax, dword [rbp + 0xfbc]
mov edx, eax
lea rax, [rbp - 0x50]
lea rbx, [rax + rdx]
mov rax, qword [rbp + 0x1008]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.end__
mov qword [rbp + 0xfc8], rax
lea rdx, [rbp + 0xfc8]
lea rax, [rbp + 0xfc0]
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_char_const__std::vector_char__std::allocator_char_____.__normal_iterator_char__void____gnu_cxx::__normal_iterator_char__std::vector_char__std::allocator_char______const_
lea rcx, [rbp - 0x50]
mov rdx, qword [rbp + 0xfc0]
mov rax, qword [rbp + 0x1008]
mov r9, rbx
mov r8, rcx
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_char__std::vector_char__std::allocator_char______std::vector_char__std::allocator_char___.insert_char__void____gnu_cxx::__normal_iterator_char_const__std::vector_char__std::allocator_char_______char__char_
mov eax, dword [rbp + 0xfbc]
test eax, eax
jne 0x140001672
mov rax, qword [rbp + 0xfd0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xfd8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 1
add rsp, 0x1060
pop rbx
pop rdi
pop rbp
ret