Function at 0x140010a30
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x958
mov rax, qword [0x14001d038]
xor rax, rsp
mov qword [rsp + 0x940], rax
mov edx, 0x110
lea rcx, [rsp + 0x290]
call fcn.14000dd60
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
mov rdx, qword [rsp + 0x968]
lea rcx, [rsp + 0x290]
call fcn.140006320
nop
mov rax, qword [rsp + 0x290]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x290]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
movzx eax, al
test eax, eax
je 0x140010b00
lea rdx, str.Error:_Failed_to_open_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001a30
mov rdx, qword [rsp + 0x968]
mov rcx, rax
call fcn.1400019e0
mov qword [rsp + 0x70], rax
lea rdx, [0x140005c10]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.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]
nop
lea rcx, [rsp + 0x290]
call fcn.14000afb0
jmp 0x14001139d
mov edx, 0xe8
lea rcx, [rsp + 0x450]
call fcn.14000dd60
mov edx, 1
lea rcx, [rsp + 0x450]
call fcn.1400065c0
nop
lea rcx, [rsp + 0x290]
call fcn.140010160
mov rdx, rax
lea rcx, [rsp + 0x450]
call qword [sym.imp.MSVCP140.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_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
lea rcx, [rsp + 0x290]
call fcn.14000e670
lea rdx, [rsp + 0x3e8]
lea rcx, [rsp + 0x450]
call fcn.140011490
nop
lea rdx, str.boundary1234567890
lea rcx, [rsp + 0x3c8]
call fcn.140006820
nop
lea r8, [rsp + 0x3c8]
lea rdx, [0x140017188]
lea rcx, [rsp + 0x148]
call fcn.140002160
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
lea r8, [0x140017184]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x3a8]
call fcn.140002040
nop
lea rcx, [rsp + 0x148]
call fcn.14000a1e0
lea rdx, str.Content_Disposition:_form_data__name_chat_id__r_n_r_n
lea rcx, [rsp + 0x3a8]
call fcn.14000aef0
mov rax, qword [rsp + 0x960]
add rax, 0x60
lea r8, [0x140017184]
mov rdx, rax
lea rcx, [rsp + 0x168]
call fcn.140002090
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x3a8]
call fcn.14000ae90
nop
lea rcx, [rsp + 0x168]
call fcn.14000a1e0
lea r8, [rsp + 0x3c8]
lea rdx, [0x140017188]
lea rcx, [rsp + 0x1a8]
call fcn.140002160
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa0], rax
lea r8, [0x140017184]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x188]
call fcn.140002040
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x3a8]
call fcn.14000ae90
nop
lea rcx, [rsp + 0x188]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x1a8]
call fcn.14000a1e0
mov r8, qword [rsp + 0x968]
lea rdx, str.Content_Disposition:_form_data__name_document___filename_
lea rcx, [rsp + 0x1e8]
call fcn.140002160
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
lea r8, [0x1400171c4]
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1c8]
call fcn.140002040
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x3a8]
call fcn.14000ae90
nop
lea rcx, [rsp + 0x1c8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x1e8]
call fcn.14000a1e0
lea rdx, str.Content_Type:_text_plain_r_n_r_n
lea rcx, [rsp + 0x3a8]
call fcn.14000aef0
lea r8, [0x140017184]
lea rdx, [rsp + 0x3e8]
lea rcx, [rsp + 0x208]
call fcn.140002090
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x3a8]
call fcn.14000ae90
nop
lea rcx, [rsp + 0x208]
call fcn.14000a1e0
lea r8, [rsp + 0x3c8]
lea rdx, [0x140017188]
lea rcx, [rsp + 0x248]
call fcn.140002160
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
lea r8, str.___r_n
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x228]
call fcn.140002040
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x3a8]
call fcn.14000ae90
nop
lea rcx, [rsp + 0x228]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x248]
call fcn.14000a1e0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.HTTP_Example
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140010f1d
lea rdx, str.Error:_InternetOpen_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001a30
mov qword [rsp + 0x108], rax
lea rdx, [0x140005c10]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.MSVCP140.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]
nop
lea rcx, [rsp + 0x3a8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3c8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3e8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x450]
call fcn.14000b030
nop
lea rcx, [rsp + 0x290]
call fcn.14000afb0
jmp 0x14001139d
mov rax, qword [rsp + 0x960]
add rax, 0x20
mov rcx, rax
call fcn.14000e540
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8w, 0x1bb
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140011000
lea rdx, str.Error:_InternetConnect_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001a30
mov qword [rsp + 0x110], rax
lea rdx, [0x140005c10]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.MSVCP140.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 [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x3a8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3c8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3e8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x450]
call fcn.14000b030
nop
lea rcx, [rsp + 0x290]
call fcn.14000afb0
jmp 0x14001139d
mov rax, qword [rsp + 0x960]
add rax, 0x40
mov rcx, rax
call fcn.14000e540
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x803000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.POST
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400110f1
lea rdx, str.Error:_HttpOpenRequest_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001a30
mov qword [rsp + 0x118], rax
lea rdx, [0x140005c10]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.MSVCP140.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 [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x3a8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3c8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3e8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x450]
call fcn.14000b030
nop
lea rcx, [rsp + 0x290]
call fcn.14000afb0
jmp 0x14001139d
lea r8, [rsp + 0x3c8]
lea rdx, str.Content_Type:_multipart_form_data__boundary
lea rcx, [rsp + 0x268]
call fcn.140002160
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
lea r8, [0x140017184]
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x408]
call fcn.140002040
nop
lea rcx, [rsp + 0x268]
call fcn.14000a1e0
lea rcx, [rsp + 0x3a8]
call fcn.14000ee90
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x3a8]
call fcn.14000e540
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x408]
call fcn.14000ee90
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x408]
call fcn.14000e540
mov qword [rsp + 0x138], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x130]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x14001127c
lea rdx, str.Error:_HttpSendRequest_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001a30
mov qword [rsp + 0x140], rax
lea rdx, [0x140005c10]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.MSVCP140.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 [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x408]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3a8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3c8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3e8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x450]
call fcn.14000b030
nop
lea rcx, [rsp + 0x290]
call fcn.14000afb0
jmp 0x14001139d
lea rcx, [rsp + 0x428]
call fcn.140006fa0
nop
lea r9, [rsp + 0x3a0]
mov r8d, 0x400
lea rdx, [rsp + 0x540]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400112da
cmp dword [rsp + 0x3a0], 0
jbe 0x1400112da
mov eax, dword [rsp + 0x3a0]
mov r8d, eax
lea rdx, [rsp + 0x540]
lea rcx, [rsp + 0x428]
call fcn.14000dea0
jmp 0x14001128a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, str.Response_from_Telegram_server:_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001a30
lea rdx, [rsp + 0x428]
mov rcx, rax
call fcn.1400019e0
mov qword [rsp + 0x98], rax
lea rdx, [0x140005c10]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MSVCP140.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]
nop
lea rcx, [rsp + 0x428]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x408]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3a8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3c8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x3e8]
call fcn.14000a1e0
nop
lea rcx, [rsp + 0x450]
call fcn.14000b030
nop
lea rcx, [rsp + 0x290]
call fcn.14000afb0
mov rcx, qword [rsp + 0x940]
xor rcx, rsp
call fcn.140013050
add rsp, 0x958
ret