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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140035040]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor r13d, r13d
cmp qword [rdx + 0x18], 7
jbe 0x140022a05
mov rdx, qword [rdx]
lea rcx, [rsp + 0x60]
call fcn.1400227c0
nop
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.HTTPGET
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x140022bad
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rdx, qword [rsp + 0x60]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r15, rax
test rax, rax
je 0x140022ba4
mov dword [rsp + 0x30], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r14, r13
mov qword [rsp + 0x50], r13
mov ebx, 0xf
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x40], r14b
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140022b3a
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140022b3a
mov edi, eax
mov rax, rbx
sub rax, r14
cmp rdi, rax
ja 0x140022af9
lea rax, [r14 + rdi]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rbx, 0xf
cmova rax, qword [rsp + 0x40]
lea rbx, [rax + r14]
mov r8d, edi
lea rdx, [rbp - 0x80]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140022b0f
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x80]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140010840
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140022b3a
mov rbx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
jmp 0x140022ab3
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140022c39
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022c34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022c34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.Failed_to_open_URL:
jmp 0x140022bb4
lea rdx, str.Failed_to_open_Internet_connection:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002fb0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x140003180]
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], r13
mov ebx, 0xf
mov qword [rsi + 0x18], rbx
mov byte [rsi], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, rbx
jbe 0x140022c39
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022c34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022c34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025d64
mov rax, rsi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140025d00
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret