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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1080]
mov eax, 0x1180
call fcn.140004890
sub rsp, rax
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x1070], rax
mov rsi, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.WinINetDownloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
je 0x1400013a0
cmp qword [rbx + 0x18], 7
jbe 0x140001370
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_InternetOpenUrlW]
mov r14, rax
test rax, rax
jne 0x1400013a7
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140001667
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 7
jbe 0x1400013d0
mov rcx, qword [rsi]
mov rbx, rcx
lea rdi, [rcx + rax*2]
jmp 0x1400013d7
lea rdi, [rsi + rax*2]
mov rbx, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
cmp rbx, rdi
jne 0x1400013fd
mov eax, 0xf
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x30], r12b
jmp 0x140001504
sub rdi, rbx
sar rdi, 1
mov qword [rsp + 0x48], 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x140001692
mov esi, 0xf
cmp rdi, rsi
jbe 0x1400014c6
mov rsi, rdi
or rsi, 0xf
cmp rsi, rax
jbe 0x140001472
mov rsi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003910
mov rcx, rax
test rax, rax
je 0x1400014ae
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rsi
jmp 0x1400014cb
mov eax, 0x16
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
test rcx, rcx
jne 0x140001496
mov rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rsi
jmp 0x1400014cb
cmp rcx, 0x1000
jb 0x1400014b5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001698
jmp 0x14000144a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003910
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rsi
jmp 0x1400014cb
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x30]
cmp rsi, 0xf
cmova r8, rax
mov rcx, r8
mov rdx, rdi
test rdi, rdi
je 0x1400014f6
movzx eax, byte [rbx]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rbx, [rbx + 2]
sub rdx, 1
jne 0x1400014e3
mov qword [rsp + 0x40], rdi
mov byte [r8 + rdi], r12b
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x30]
cmp rax, 0xf
cmova rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140002cf0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001585
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001580
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001580
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000394c
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
mov rcx, r14
test al, al
je 0x1400015cc
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x14000165a
lea r9, [rbp + 0x60]
mov r8d, 0x1000
lea rdx, [rbp + 0x70]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001618
mov eax, dword [rbp + 0x60]
test eax, eax
je 0x140001618
mov r8d, eax
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x50]
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, [rbp + 0x60]
mov r8d, 0x1000
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400015e4
lea rcx, [rsp + 0x58]
call fcn.140002c30
test rax, rax
jne 0x140001646
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 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, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
lea rcx, [rsp + 0x50]
call fcn.1400016a0
movzx eax, bl
mov rcx, qword [rbp + 0x1070]
xor rcx, rsp
call fcn.1400038f0
lea r11, [rsp + 0x1180]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400011b0
int3
call fcn.140001110
int3