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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x454
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.TelegramNotificator
call sym._InternetOpenW_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4018ca
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.https:__cc.ru_
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._InternetOpenUrlW_24
sub esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401881
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._HttpSendRequestW_20
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x4017a4
call sym._GetLastError_0
mov ebx, eax
mov dword [esp + 4], str.Error_sending_HTTP_request._Error_code:
mov dword [esp], sym.imp.libstdc_6.dll_std::wcerr
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov dword [esp], ebx
mov ecx, eax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___unsigned_long_
sub esp, 4
mov dword [esp], sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::endl_wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t____
mov ecx, eax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
sub esp, 4
jmp 0x401871
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x434]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._InternetReadFile_16
sub esp, 0x10
test eax, eax
je 0x4017eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4017eb
mov eax, 1
jmp 0x4017f0
mov eax, 0
test al, al
je 0x401871
lea eax, [ebp - 0x15]
mov ecx, eax
call fcn.00401d30
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x15]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
lea edx, [ebp - 0x434]
mov dword [esp], edx
mov ecx, eax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string_wchar_t_const__unsigned_int__std::allocator_wchar_t__const_
sub esp, 0xc
lea eax, [ebp - 0x15]
mov ecx, eax
call sym.std::allocator_wchar_t_::allocator__
mov dword [esp + 4], str.Debug__sendTelegramNotification_:_HTTP_Response:
mov dword [esp], sym.imp.libstdc_6.dll_std::wcout
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov edx, eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
mov dword [esp], sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::endl_wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t____
mov ecx, eax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
sub esp, 4
lea eax, [ebp - 0x34]
mov ecx, eax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
jmp 0x4017b2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
jmp 0x4018ba
call sym._GetLastError_0
mov ebx, eax
mov dword [esp + 4], str.Error_opening_URL._Error_code:
mov dword [esp], sym.imp.libstdc_6.dll_std::wcerr
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov dword [esp], ebx
mov ecx, eax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___unsigned_long_
sub esp, 4
mov dword [esp], sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::endl_wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t____
mov ecx, eax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
jmp 0x401931
call sym._GetLastError_0
mov ebx, eax
mov dword [esp + 4], str.Error_opening_Internet_connection._Error_code:
mov dword [esp], sym.imp.libstdc_6.dll_std::wcerr
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov dword [esp], ebx
mov ecx, eax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___unsigned_long_
sub esp, 4
mov dword [esp], sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::endl_wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t____
mov ecx, eax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
sub esp, 4
jmp 0x401931
mov ebx, dword [ebp - 4]
leave
ret