Function at 0x1400113a7
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
jmp 0x140012ca0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x728
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x748]
mov rax, qword [0x14001f040]
xor rax, rbp
mov qword [rbp + 0x6e0], rax
lea rcx, [0x14002510b]
call fcn.14001149c
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Downloader
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012d4e
lea rdx, str.Failed_to_initialize_WinINet
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110a0
mov qword [rbp + 0x6d8], rax
lea rdx, [0x140011041]
mov rcx, qword [rbp + 0x6d8]
call qword [sym.imp.MSVCP140D.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 0x140012e92
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x400100
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x710]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140012dc0
lea rdx, str.Failed_to_open_URL
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110a0
mov qword [rbp + 0x6d8], rax
lea rdx, [0x140011041]
mov rcx, qword [rbp + 0x6d8]
call qword [sym.imp.MSVCP140D.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 [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140012e92
lea r8, [0x14001c098]
mov rdx, qword [rbp + 0x718]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_fopen_s]
test eax, eax
je 0x140012e22
lea rdx, str.Failed_to_create_output_file
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110a0
mov qword [rbp + 0x6d8], rax
lea rdx, [0x140011041]
mov rcx, qword [rbp + 0x6d8]
call qword [sym.imp.MSVCP140D.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 [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140012e92
mov dword [rbp + 0x484], 0
lea r9, [rbp + 0x484]
mov r8d, 0x400
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140012e72
cmp dword [rbp + 0x484], 0
jbe 0x140012e72
mov eax, dword [rbp + 0x484]
mov r9, qword [rbp + 0x48]
mov r8d, eax
mov edx, 1
lea rcx, [rbp + 0x70]
call qword [sym.imp.ucrtbased.dll_fwrite]
jmp 0x140012e2c
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_fclose]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001bec0]
call fcn.1400113fc
mov rax, rdi
mov rcx, qword [rbp + 0x6e0]
xor rcx, rbp
call fcn.14001123f
lea rsp, [rbp + 0x6f8]
pop rdi
pop rbp
ret