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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1060
call fcn.1400320b0
sub rsp, rax
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.HTTPGET
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
jne 0x14002fb0b
lea rdx, str.Failed_to_open_Internet
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140030f90
lea rdx, [0x140031160]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov ebx, 0xf
mov qword [rsi + 0x18], rbx
mov byte [rsi], r12b
jmp 0x14002fc87
cmp qword [rbx + 0x18], 0xf
jbe 0x14002fb15
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
test rax, rax
jne 0x14002fb83
lea rdx, str.Failed_to_open_URL
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140030f90
lea rdx, [0x140031160]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov ebx, 0xf
mov qword [rsi + 0x18], rbx
mov byte [rsi], r12b
jmp 0x14002fc87
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov r14, r12
mov qword [rsp + 0x40], r12
mov ebx, 0xf
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x30], r12b
lea r9, [rsp + 0x10a0]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14002fc64
nop word [rax + rax]
mov eax, dword [rsp + 0x10a0]
test eax, eax
je 0x14002fc64
mov edi, eax
mov rax, rbx
sub rax, r14
cmp rdi, rax
ja 0x14002fc1e
lea rax, [r14 + rdi]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rbx, 0xf
cmova rax, qword [rsp + 0x30]
lea rbx, [rax + r14]
mov r8d, edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x14002fc35
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400311a0
lea r9, [rsp + 0x10a0]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14002fc64
mov rbx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
jmp 0x14002fbd0
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret