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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x598
mov rax, qword [0x140169340]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.FileDownload
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140104ad1
lea rdx, str.Failed_to_open_Internet_session
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002b430
mov qword [rsp + 0x48], rax
lea rdx, [0x14002b860]
mov rcx, qword [rsp + 0x48]
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]
xor al, al
jmp 0x140104c65
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x5a0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140104b44
lea rdx, str.Failed_to_open_URL
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002b430
mov qword [rsp + 0x50], rax
lea rdx, [0x14002b860]
mov rcx, qword [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__::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 + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140104c65
mov edx, 0x108
lea rcx, [rsp + 0x70]
call fcn.140009410
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
mov rdx, qword [rsp + 0x5a8]
lea rcx, [rsp + 0x70]
call fcn.140028990
nop
lea rcx, [rsp + 0x70]
call fcn.1400257a0
movzx eax, al
test eax, eax
jne 0x140104be4
lea rdx, str.Failed_to_create_output_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002b430
mov qword [rsp + 0x58], rax
lea rdx, [0x14002b860]
mov rcx, qword [rsp + 0x58]
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]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
call fcn.14001d710
movzx eax, byte [rsp + 0x30]
jmp 0x140104c65
mov dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov r8d, 0x400
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140104c31
cmp dword [rsp + 0x60], 0
jbe 0x140104c31
mov eax, dword [rsp + 0x60]
mov r8d, eax
lea rdx, [rsp + 0x180]
lea rcx, [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__::write_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140104bec
lea rcx, [rsp + 0x70]
call fcn.140025740
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [rsp + 0x31], 1
lea rcx, [rsp + 0x70]
call fcn.14001d710
movzx eax, byte [rsp + 0x31]
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.14011f490
add rsp, 0x598
ret