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

Disassembly:
push rbp
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x430], rcx
mov qword [rbp + 0x438], 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_InternetOpenA]
call rax
mov qword [rbp + 0x408], rax
cmp qword [rbp + 0x408], 0
jne 0x140001509
lea rax, str.Errore_durante_linizializzazione_di_InternetOpen_n
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_
lea rax, [rbp + 0x3ee]
mov qword [rbp + 0x3f8], rax
nop
nop
lea rdx, [rbp + 0x3ee]
mov rax, qword [rbp + 0x430]
mov r8, rdx
lea rdx, [0x14000603b]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x3ee]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x1400016d0
mov rax, qword [rbp + 0x438]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x408]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x400], rax
cmp qword [rbp + 0x400], 0
jne 0x1400015cc
lea rax, str.Errore_durante_la_connessione_allURL_n
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 rax, qword [rbp + 0x408]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
lea rax, [rbp + 0x3ef]
mov qword [rbp + 0x3f0], rax
nop
nop
lea rdx, [rbp + 0x3ef]
mov rax, qword [rbp + 0x430]
mov r8, rdx
lea rdx, [0x14000603b]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x3ef]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x1400016d0
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140001f38
jmp 0x1400015f4
mov eax, dword [rbp - 0x24]
mov eax, eax
mov byte [rbp + rax - 0x20], 0
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::operator_char_const_
lea rdx, [rbp - 0x24]
lea rax, [rbp - 0x20]
mov rcx, qword [rbp + 0x400]
mov r9, rdx
mov r8d, 0x3ff
mov rdx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x14000162a
mov eax, dword [rbp - 0x24]
test eax, eax
je 0x14000162a
mov eax, 1
jmp 0x14000162f
mov eax, 0
test al, al
jne 0x1400015da
mov rax, qword [rbp + 0x400]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x408]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0x430]
mov rdx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x1400016d0
mov rax, qword [rbp + 0x430]
add rsp, 0x498
pop rbx
pop rbp
ret