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

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp - 4], 0
mov dword [rbp - 0x2c], 0
mov dword [rbp - 0x30], 0
mov dword [rbp - 0x34], 4
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, [0x1400bc001]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000158e
lea rax, str.InternetOpen_failed._Error:
mov rdx, rax
mov rax, qword [0x1400c1f30]
mov rcx, rax
call fcn.1400b4c90
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.140077430
mov rcx, rax
mov rax, qword [0x1400c1f60]
mov rdx, rax
call fcn.1400771f0
mov ebx, 0
jmp 0x140001754
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001625
lea rax, str.InternetOpenUrlA_failed._Error:
mov rdx, rax
mov rax, qword [0x1400c1f30]
mov rcx, rax
call fcn.1400b4c90
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.140077430
mov rcx, rax
mov rax, qword [0x1400c1f60]
mov rdx, rax
call fcn.1400771f0
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0
jmp 0x140001754
lea r8, [rbp - 0x34]
lea rcx, [rbp - 0x2c]
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov edx, 0x20000005
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpQueryInfoA]
call rax
lea rax, [rbp - 0x22]
mov qword [rbp - 0x20], rax
nop
nop
mov byte [rbp - 0x21], 0
mov eax, dword [rbp - 0x2c]
mov r10d, eax
lea rcx, [rbp - 0x22]
lea rdx, [rbp - 0x21]
lea rax, [rbp - 0x50]
mov r9, rcx
mov r8, rdx
mov rdx, r10
mov rcx, rax
call fcn.1400a0340
lea rax, [rbp - 0x22]
mov rcx, rax
call fcn.140095e70
nop
mov ebx, dword [rbp - 0x2c]
lea rax, [rbp - 0x50]
mov edx, 0
mov rcx, rax
call fcn.1400a0420
mov rdx, rax
lea rcx, [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
sete al
test al, al
je 0x14000170c
lea rax, str.InternetReadFile_failed._Error:
mov rdx, rax
mov rax, qword [0x1400c1f30]
mov rcx, rax
call fcn.1400b4c90
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.140077430
mov rcx, rax
mov rax, qword [0x1400c1f60]
mov rdx, rax
call fcn.1400771f0
jmp 0x140001723
mov eax, dword [rbp - 0x28]
test eax, eax
je 0x140001723
mov rdx, qword [rbp + 0x28]
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140001450
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, dword [rbp - 0x28]
mov ebx, eax
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400a03c0
mov rax, rbx
jmp 0x14000178e
add rsp, 0x88
pop rbx
pop rbp
ret