Function at 0x14001b674
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 qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
and dword [rsp + 0x20], 0
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, str.SedimentPack
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
jne 0x14001b6c9
mov rcx, qword [rsp + 0x68]
lea r8, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
lea edx, [rax + 0x51]
call fcn.1400047b4
mov ebp, eax
jmp 0x14001b88d
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rdx, qword [rbx]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 0x80c00000
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x14001b6f9
lea edx, [rax + 0x59]
jmp 0x14001b791
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x88], 4
mov edx, 0x20000013
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x14001b72e
lea edx, [rax + 0x62]
jmp 0x14001b791
cmp dword [rsp + 0x40], 0xc8
je 0x14001b75b
mov rcx, qword [rsp + 0x68]
lea r8, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
mov ebp, 0x8007003a
mov edx, 0x63
mov r9d, ebp
call fcn.140004784
jmp 0x14001b876
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 0x14001b7a9
lea edx, [rax + 0x6d]
mov rcx, qword [rsp + 0x68]
lea r8, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
call fcn.1400047b4
mov ebp, eax
jmp 0x14001b876
mov ebp, 0x1000
lea rdx, [0x140034196]
mov ecx, ebp
call fcn.14001d26c
mov r14, rax
test rax, rax
je 0x14001b7d3
mov r8d, ebp
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
jmp 0x14001b7d6
xor r14d, r14d
test r14, r14
jne 0x14001b82f
mov ebp, 0x8007000e
lea edx, [r14 + 0x70]
jmp 0x14001b8ac
mov r8d, dword [rsp + 0x80]
cmp r8d, ebp
ja 0x14001b8cd
test r8d, r8d
je 0x14001b8c9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x14001b8c2
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x80], eax
jne 0x14001b8a2
lea r9, [rsp + 0x80]
mov r8d, ebp
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14001b7e9
lea edx, [rax + 0x78]
mov rcx, qword [rsp + 0x68]
lea r8, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
call fcn.1400047b4
mov ebp, eax
mov rcx, r14
call fcn.14001c214
test rdi, rdi
je 0x14001b876
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rbx, rbx
je 0x14001b884
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x70]
mov eax, ebp
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov edx, 0x83
mov ebp, 0x8000ffff
mov rcx, qword [rsp + 0x68]
lea r8, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
mov r9d, ebp
call fcn.140004784
jmp 0x14001b860
mov edx, 0x81
jmp 0x14001b84d
xor ebp, ebp
jmp 0x14001b860
mov edx, 0x79
jmp 0x14001b8a7