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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
mov eax, 0x1050
call fcn.1400064a0
sub rsp, rax
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rsi, rdx
mov rbx, rcx
xor edi, edi
lea rcx, str.DownloadApp
mov edx, 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
test rax, rax
jne 0x1400013c2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.InternetOpen_failed:
call fcn.140003da0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003f80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x140001502
cmp qword [rbx + 0x18], 7
mov qword [rsp + 0x1080], rbp
jbe 0x1400013d4
mov rbx, qword [rbx]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbp, rax
test rax, rax
jne 0x140001442
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.InternetOpenUrl_failed:
call fcn.140003da0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003f80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x1400014fa
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400014e0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400014e0
mov rdx, qword [rsi + 0x18]
mov edi, eax
mov rcx, qword [rsi + 0x10]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1400014ae
lea rax, [rcx + rdi]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x140001494
mov rax, qword [rsi]
lea rbx, [rax + rcx]
mov r8, rdi
mov rcx, rbx
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x1400014c3
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov rdx, rdi
mov rcx, rsi
call fcn.140004380
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001463
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsi + 0x10], 0
setne al
mov rbp, qword [rsp + 0x1080]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005460
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1050
pop r14
pop rdi
pop rsi
ret