Function at 0x14001bb04
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 0x14001bb59
mov rcx, qword [rsp + 0x68]
lea r8, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
lea edx, [rax + 0x51]
call fcn.140004134
mov ebp, eax
jmp 0x14001bd1d
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 0x14001bb89
lea edx, [rax + 0x59]
jmp 0x14001bc21
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 0x14001bbbe
lea edx, [rax + 0x62]
jmp 0x14001bc21
cmp dword [rsp + 0x40], 0xc8
je 0x14001bbeb
mov rcx, qword [rsp + 0x68]
lea r8, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
mov ebp, 0x8007003a
mov edx, 0x63
mov r9d, ebp
call fcn.140004104
jmp 0x14001bd06
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 0x14001bc39
lea edx, [rax + 0x6d]
mov rcx, qword [rsp + 0x68]
lea r8, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
call fcn.140004134
mov ebp, eax
jmp 0x14001bd06
mov ebp, 0x1000
lea rdx, [0x140032de2]
mov ecx, ebp
call fcn.14001d804
mov r14, rax
test rax, rax
je 0x14001bc63
mov r8d, ebp
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
jmp 0x14001bc66
xor r14d, r14d
test r14, r14
jne 0x14001bcbf
mov ebp, 0x8007000e
lea edx, [r14 + 0x70]
jmp 0x14001bd3c
mov r8d, dword [rsp + 0x80]
cmp r8d, ebp
ja 0x14001bd5d
test r8d, r8d
je 0x14001bd59
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 0x14001bd52
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x80], eax
jne 0x14001bd32
lea r9, [rsp + 0x80]
mov r8d, ebp
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14001bc79
lea edx, [rax + 0x78]
mov rcx, qword [rsp + 0x68]
lea r8, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
call fcn.140004134
mov ebp, eax
mov rcx, r14
call fcn.14001ce60
test rdi, rdi
je 0x14001bd06
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rbx, rbx
je 0x14001bd14
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.140004104
jmp 0x14001bcf0
mov edx, 0x81
jmp 0x14001bcdd
xor ebp, ebp
jmp 0x14001bcf0
mov edx, 0x79
jmp 0x14001bd37