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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1070]
mov eax, 0x1170
call fcn.140004d30
sub rsp, rax
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x1060], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.PythonScriptDownloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
je 0x1400015bb
lea rdx, [0x14000a9a8]
cmp qword [0x14000a9c0], 0xf
cmova rdx, qword [0x14000a9a8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
je 0x1400015de
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x14000a988]
cmp qword [0x14000a9a0], 0xf
cmova rdx, qword [0x14000a988]
lea rcx, [rsp + 0x50]
call fcn.140003220
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
mov rcx, rbx
cmp qword [rbp - 0x28], 0
je 0x140001588
lea r9, [rsp + 0x48]
mov r8d, 0x1000
lea rdx, [rbp + 0x60]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400014f6
nop dword [rax]
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400014f6
mov r8d, eax
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea r9, [rsp + 0x48]
mov r8d, 0x1000
lea rdx, [rbp + 0x60]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400014c0
lea rcx, [rsp + 0x58]
call fcn.140003160
test rax, rax
jne 0x140001524
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, str.Download_complete.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003450
mov rcx, rax
lea rdx, [0x140003630]
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 + 0x50]
call fcn.140001610
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.140003dc0
lea r11, [rsp + 0x1170]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, str.Failed_to_open_file_for_writing.
lea rcx, [rsp + 0x30]
call fcn.140001230
lea rdx, [0x140007c40]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Failed_to_initialize_WinINet.
lea rcx, [rsp + 0x30]
call fcn.140001230
lea rdx, [0x140007c40]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, str.Failed_to_open_URL.
lea rcx, [rsp + 0x30]
call fcn.140001230
lea rdx, [0x140007c40]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3