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

Disassembly:
push rbp
push rsi
push rbx
add rsp, 0xffffffffffffff80
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.HTTPGET
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenW]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001774
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov rbx, rax
lea rax, str.Failed_to_open_internet_connection.
mov rdx, rax
mov rcx, rbx
call method.std::runtime_error.runtime_error_char_const_
mov r8, qword [method.std::runtime_error.runtime_error__]
lea rax, [0x1400d4ba0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rdx, rax
mov rax, qword [rbp - 8]
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_InternetOpenUrlW]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001803
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov rbx, rax
lea rax, str.Failed_to_open_URL.
mov rdx, rax
mov rcx, rbx
call method.std::runtime_error.runtime_error_char_const_
mov r8, qword [method.std::runtime_error.runtime_error__]
lea rax, [0x1400d4ba0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
lea rax, [rbp - 0x19]
mov qword [rbp - 0x18], rax
nop
nop
lea rdx, [rbp - 0x19]
lea rax, [rbp - 0x40]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector_unsigned_long_long__std::allocator_char__const_
lea rax, [rbp - 0x19]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
mov dword [rbp - 0x44], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400a4dc0
jmp 0x14000186f
mov eax, dword [rbp - 0x44]
mov ebx, eax
lea rax, [rbp - 0x40]
mov edx, 0
mov rcx, rax
call method.std::vector_char__std::allocator_char___.operator___unsigned_long_long_
mov rdx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.append_char_const__unsigned_long_long_
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.size___const
mov ebx, eax
lea rax, [rbp - 0x40]
mov edx, 0
mov rcx, rax
call method.std::vector_char__std::allocator_char___.operator___unsigned_long_long_
mov rdx, rax
lea rcx, [rbp - 0x44]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x1400018bd
mov eax, dword [rbp - 0x44]
test eax, eax
je 0x1400018bd
mov eax, 1
jmp 0x1400018c2
mov eax, 0
test al, al
jne 0x140001847
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
nop
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector__
jmp 0x140001962
mov rax, qword [rbp + 0x20]
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rbp
ret