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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400c5080]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.UserAgent
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
jne 0x1400217fb
lea rdx, str.Failed_to_initialize_WinINet
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002b1a0
lea rdx, [0x14002b370]
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 qword [rsi], r12
mov qword [rsi + 0x10], r12
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x18], rbx
mov byte [rsi], r15b
xor r8d, r8d
lea rdx, [0x1400aa75b]
mov rcx, rsi
call fcn.140020980
jmp 0x140021981
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140021808
mov rdx, qword [rbx]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
jne 0x140021889
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.14002b1a0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14002184d
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14002c0f0
lea rdx, [0x14002b370]
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]
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x18], rbx
mov byte [rsi], 0
jmp 0x1400217e4
mov qword [rsp + 0x38], r12
mov rbp, r12
mov qword [rsp + 0x48], r12
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x38], bpl
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14002195e
nop word [rax + rax]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14002195e
mov edi, eax
mov rax, rbx
sub rax, rbp
cmp rdi, rax
ja 0x14002191b
lea rax, [rdi + rbp]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rbx, 0x10
cmovae rax, qword [rsp + 0x38]
lea rbx, [rax + rbp]
mov r8d, edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140021932
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14002b630
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14002195e
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
jmp 0x1400218d0
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140097730
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret