Function at 0x14001ec78
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 0x14001ecd9
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov edx, 0x9b
call fcn.140006fb0
mov r14d, eax
jmp 0x14001ee91
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 0x14001ed0b
mov edx, 0xa3
jmp 0x14001ed9d
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 0x14001ed39
mov edx, 0xac
jmp 0x14001ed9d
cmp dword [rbp + 0x30], 0xc8
je 0x14001ed65
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
mov r14d, 0x8007003a
mov edx, 0xad
mov r9d, r14d
call fcn.140006f80
jmp 0x14001ee7a
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 0x14001edb5
mov edx, 0xb6
mov rcx, qword [rbp + 0x28]
lea r8, str.onecoreenduserupgradeenablers_shellhelpersdownloadhelper.cpp
call fcn.140006fb0
mov r14d, eax
jmp 0x14001ee7a
mov r14d, 0x1000
lea rdx, [0x140036e60]
mov ecx, r14d
call fcn.140020588
mov r15, rax
test rax, rax
je 0x14001ede1
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
jmp 0x14001ede4
xor r15d, r15d
test r15, r15
jne 0x14001ee35
mov r14d, 0x8007000e
mov edx, 0xba
jmp 0x14001eeb3
mov r8d, dword [rbp + 0x50]
cmp r8d, r14d
ja 0x14001eed4
test r8d, r8d
je 0x14001eecf
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 0x14001eec8
mov eax, dword [rbp - 0x10]
cmp dword [rbp + 0x50], eax
jne 0x14001eea8
lea r9, [rbp + 0x50]
mov r8d, r14d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14001edf9
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.14001fbf0
test rdi, rdi
je 0x14001ee7a
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rbx, rbx
je 0x14001ee88
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 0x14001ee64
mov edx, 0xcb
jmp 0x14001ee51
xor r14d, r14d
jmp 0x14001ee64
mov edx, 0xc3
jmp 0x14001eead