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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1090]
mov eax, 0x1190
call fcn.140006b90
sub rsp, rax
mov rax, qword [0x140033080]
xor rax, rsp
mov qword [rbp + 0x1080], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
je 0x140001e3a
cmp qword [rbx + 0x18], 7
jbe 0x140001e06
mov rbx, qword [rbx]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x140001e41
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140001fcb
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.140021c80
cmp qword [rdi + 0x18], 7
jbe 0x140001e5d
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.1400041f0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rdi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
mov rcx, rbx
cmp qword [rbp - 8], 0
jne 0x140001eb2
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x140001f61
lea r9, [rsp + 0x68]
mov r8d, 0x1000
lea rdx, [rbp + 0x80]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001f0b
nop
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140001f0b
mov r8d, eax
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.140003940
lea r9, [rsp + 0x68]
mov r8d, 0x1000
lea rdx, [rbp + 0x80]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001ed0
lea rcx, [rsp + 0x78]
call fcn.1400040f0
test rax, rax
jne 0x140001f4d
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
mov edx, dword [rbp + rcx - 0x7c]
and edx, eax
jne 0x140001fed
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rdi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140003670
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x6c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140005c9c
nop
movzx eax, bl
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.140006530
mov rbx, qword [rsp + 0x11c0]
add rsp, 0x1190
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x140001ffb
lea rbx, str.ios_base::badbit_set
jmp 0x140002010
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400012e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140001c40
lea rdx, [0x1400313c0]
lea rcx, [rsp + 0x40]
call fcn.140008410
int3