Function at 0x1400014e2
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, [0x1400f503a]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001599
lea rax, str.InternetOpen_failed._Error:
mov rdx, rax
mov rax, qword [0x1400fbb00]
mov rcx, rax
call fcn.1400ead10
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.14007d390
mov rcx, rax
mov rax, qword [0x1400fbb30]
mov rdx, rax
call fcn.14007d150
mov ebx, 0
jmp 0x14000175f
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 0x140001630
lea rax, str.InternetOpenUrlA_failed._Error:
mov rdx, rax
mov rax, qword [0x1400fbb00]
mov rcx, rax
call fcn.1400ead10
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.14007d390
mov rcx, rax
mov rax, qword [0x1400fbb30]
mov rdx, rax
call fcn.14007d150
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0
jmp 0x14000175f
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.1400b4730
lea rax, [rbp - 0x22]
mov rcx, rax
call fcn.1400a2f20
nop
mov ebx, dword [rbp - 0x2c]
lea rax, [rbp - 0x50]
mov edx, 0
mov rcx, rax
call fcn.1400b4810
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 0x140001717
lea rax, str.InternetReadFile_failed._Error:
mov rdx, rax
mov rax, qword [0x1400fbb00]
mov rcx, rax
call fcn.1400ead10
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.14007d390
mov rcx, rax
mov rax, qword [0x1400fbb30]
mov rdx, rax
call fcn.14007d150
jmp 0x14000172e
mov eax, dword [rbp - 0x28]
test eax, eax
je 0x14000172e
mov rdx, qword [rbp + 0x28]
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.14000145b
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.1400b47b0
mov rax, rbx
jmp 0x140001799
add rsp, 0x88
pop rbx
pop rbp
ret