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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r14, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
je 0x14000165a
cmp qword [rbx + 0x18], 0x10
jb 0x140001307
mov rsi, qword [rbx]
mov rdi, rsi
add rsi, qword [rbx + 0x10]
jmp 0x140001311
mov rsi, qword [rbx + 0x10]
add rsi, rbx
mov rdi, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
cmp rdi, rsi
jne 0x14000133c
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
lea rdx, [rsp + 0x30]
jmp 0x14000146a
mov rax, rsi
sub rax, rdi
mov rdx, r12
mov qword [rsp + 0x40], rdx
mov ebx, 7
mov qword [rsp + 0x48], rbx
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x14000168b
cmp rax, 8
jb 0x140001411
mov rbx, rax
or rbx, 7
cmp rbx, rcx
jbe 0x140001382
mov rbx, rcx
jmp 0x14000138e
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rcx, rbx
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001685
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400013f3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001685
mov rcx, rax
call fcn.140003fb0
mov rcx, rax
test rax, rax
je 0x1400014c2
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov rdx, qword [rsp + 0x40]
jmp 0x140001407
test rcx, rcx
je 0x140001404
call fcn.140003fb0
mov rdx, qword [rsp + 0x40]
jmp 0x140001407
mov rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x30]
cmp rbx, 8
cmovae rcx, qword [rsp + 0x30]
movsx eax, byte [rdi]
mov word [rcx + rdx*2], ax
mov rdx, qword [rsp + 0x40]
inc rdx
mov qword [rsp + 0x40], rdx
inc rdi
cmp rdi, rsi
je 0x140001443
mov rbx, qword [rsp + 0x48]
jmp 0x140001411
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov word [rax + rdx*2], r12w
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x84000100
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400014ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003fec
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
test rbx, rbx
je 0x140001651
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
cmp qword [r14 + 0x18], 0x10
jb 0x140001507
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.1400036c0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rdi
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea r9, [rsp + 0x50]
mov r8d, 0x400
lea rdx, [rbp + 0x70]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000158e
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14000158e
mov r8d, eax
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea r9, [rsp + 0x50]
mov r8d, 0x400
lea rdx, [rbp + 0x70]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001558
lea rcx, [rsp + 0x68]
call fcn.140003600
test rax, rax
jne 0x1400015bb
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], rdi
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x68], rax
cmp qword [rbp - 0x18], 0
je 0x140001620
mov rax, qword [rbp - 0x80]
lea rcx, [rbp - 0x28]
cmp qword [rax], rcx
jne 0x140001620
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x10]
mov qword [rax], rcx
mov rax, qword [rbp - 0x60]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x48]
mov dword [rax], edx
cmp byte [rbp - 0x1c], 0
je 0x140001630
lea rcx, [rsp + 0x68]
call fcn.140003600
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140003f90
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140001110
int3
call fcn.1400011b0
int3