Function at 0x14001eaa8
Capabilities:
Check http status code
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:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and dword [rax - 0x58], 0
lea rcx, str.Downloader
mov rbx, r9
mov rdi, rdx
xor r9d, r9d
xor edx, edx
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
jne 0x14001eb09
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov edx, 0x9b
call fcn.140006fb0
mov r14d, eax
jmp 0x14001ecc1
and qword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80c00000
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x14001eb3b
mov edx, 0xa3
jmp 0x14001ebcd
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x30]
mov dword [rbp + 0x40], 4
mov edx, 0x20000013
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x14001eb69
mov edx, 0xac
jmp 0x14001ebcd
cmp dword [rbp + 0x30], 0xc8
je 0x14001eb95
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov r14d, 0x8007003a
mov edx, 0xad
mov r9d, r14d
call fcn.140006f80
jmp 0x14001ecaa
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001ebe5
mov edx, 0xb6
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
call fcn.140006fb0
mov r14d, eax
jmp 0x14001ecaa
mov r14d, 0x1000
lea rdx, [0x140036e60]
mov ecx, r14d
call fcn.1400203c8
mov r15, rax
test rax, rax
je 0x14001ec11
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
jmp 0x14001ec14
xor r15d, r15d
test r15, r15
jne 0x14001ec65
mov r14d, 0x8007000e
mov edx, 0xba
jmp 0x14001ece3
mov r8d, dword [rbp + 0x50]
cmp r8d, r14d
ja 0x14001ed04
test r8d, r8d
je 0x14001ecff
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x14001ecf8
mov eax, dword [rbp - 0x10]
cmp dword [rbp + 0x50], eax
jne 0x14001ecd8
lea r9, [rbp + 0x50]
mov r8d, r14d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14001ec29
mov edx, 0xc2
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
call fcn.140006fb0
mov r14d, eax
mov rcx, r15
call fcn.14001fe5c
test rdi, rdi
je 0x14001ecaa
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rbx, rbx
je 0x14001ecb8
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, r14d
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov edx, 0xcd
mov r14d, 0x8000ffff
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov r9d, r14d
call fcn.140006f80
jmp 0x14001ec94
mov edx, 0xcb
jmp 0x14001ec81
xor r14d, r14d
jmp 0x14001ec94
mov edx, 0xc3
jmp 0x14001ecdd