Function at 0x1400017cd
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.HTTPGET
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001830
lea rax, str.Failed_to_open_Internet_n
mov rcx, rax
call fcn.140001493
mov eax, 0
jmp 0x140001a13
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x18]
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 - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x14000189c
mov rax, qword [rbp + 0x20]
mov rdx, rax
lea rax, str.Failed_to_open_URL:__s_n
mov rcx, rax
call fcn.140001493
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x140001a13
mov dword [rbp - 4], 0x2000
mov dword [rbp - 0x24], 0
mov ebx, dword [rbp - 4]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000190e
lea rax, str.Failed_to_allocate_buffer_n
mov rcx, rax
call fcn.140001493
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x140001a13
mov rax, qword [rbp + 0x28]
mov dword [rax], 0
jmp 0x1400019a4
mov rax, qword [rbp + 0x28]
mov edx, dword [rax]
mov eax, dword [rbp - 0x24]
add edx, eax
mov rax, qword [rbp + 0x28]
mov dword [rax], edx
mov rax, qword [rbp + 0x28]
mov eax, dword [rax]
cmp eax, dword [rbp - 4]
jb 0x1400019a4
shl dword [rbp - 4], 1
mov ebx, dword [rbp - 4]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 0x10]
mov r9, rbx
mov r8, rdx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapReAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400019a4
lea rax, str.Failed_to_reallocate_buffer_n
mov rcx, rax
call fcn.140001493
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x140001a13
mov rax, qword [rbp + 0x28]
mov eax, dword [rax]
mov edx, dword [rbp - 4]
mov ecx, edx
sub ecx, eax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov r10, rax
lea rdx, [rbp - 0x24]
mov rax, qword [rbp - 0x20]
mov r9, rdx
mov r8d, ecx
mov rdx, r10
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x1400019ef
mov eax, dword [rbp - 0x24]
test eax, eax
jne 0x14000191d
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp - 0x10]
add rsp, 0x68
pop rbx
pop rbp
ret