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.1400058a0
sub rsp, rax
mov rax, qword [0x14000a040]
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 0x1400013c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
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:
mov ebx, eax
call fcn.140003d10
mov rcx, rax
mov edx, ebx
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, [0x140003ef0]
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 0x140001500
cmp qword [rbx + 0x18], 7
mov qword [rsp + 0x1080], rbp
jbe 0x1400013d3
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 0x140001440
call qword [sym.imp.KERNEL32.dll_GetLastError]
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:
mov ebx, eax
call fcn.140003d10
mov rcx, rax
mov edx, ebx
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, [0x140003ef0]
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 0x1400014f8
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 0x1400014de
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400014de
mov rdx, qword [rsi + 0x18]
mov edi, eax
mov rcx, qword [rsi + 0x10]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1400014ac
lea rax, [rcx + rdi]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x140001492
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 0x1400014c1
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov rdx, rdi
mov rcx, rsi
call fcn.1400042f0
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 0x140001461
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.140004930
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1050
pop r14
pop rdi
pop rsi
ret