Function at 0x140001dd0
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 - 0x4a0]
sub rsp, 0x5a0
mov rax, qword [0x140067fd8]
xor rax, rsp
mov qword [rbp + 0x490], 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 0x140002181
cmp qword [rbx + 0x18], 0x10
jb 0x140001e47
mov rsi, qword [rbx]
mov rdi, rsi
add rsi, qword [rbx + 0x10]
jmp 0x140001e51
mov rsi, qword [rbx + 0x10]
add rsi, rbx
mov rdi, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
cmp rdi, rsi
jne 0x140001e7c
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
lea rdx, [rsp + 0x30]
jmp 0x140001faa
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 0x140002200
cmp rax, 8
jb 0x140001f51
mov rbx, rax
or rbx, 7
cmp rbx, rcx
jbe 0x140001ec2
mov rbx, rcx
jmp 0x140001ece
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 0x140002206
add rcx, rcx
cmp rcx, 0x1000
jb 0x140001f33
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002206
mov rcx, rax
call fcn.140027ce8
mov rcx, rax
test rax, rax
je 0x14000220c
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov rdx, qword [rsp + 0x40]
jmp 0x140001f47
test rcx, rcx
je 0x140001f44
call fcn.140027ce8
mov rdx, qword [rsp + 0x40]
jmp 0x140001f47
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 0x140001f83
mov rbx, qword [rsp + 0x48]
jmp 0x140001f51
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 0x14000200b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002006
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000220c
call fcn.140027ce0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
test rbx, rbx
je 0x140002178
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call fcn.14002a370
cmp qword [r14 + 0x18], 0x10
jb 0x140002043
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.140004590
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea r9, [rsp + 0x78]
mov r8d, 0x400
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400020ce
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x1400020ce
mov r8d, eax
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.140003c90
lea r9, [rsp + 0x78]
mov r8d, 0x400
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002094
lea rcx, [rbp - 0x78]
call fcn.140004450
test rax, rax
jne 0x14000210e
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x38], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x70]
and eax, 0x17
mov dword [rbp + rcx - 0x70], eax
mov edx, dword [rbp + rcx - 0x6c]
and edx, eax
jne 0x1400021ac
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.1400039d0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.14002743c
nop
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.140027cc0
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test dl, 4
je 0x1400021ba
lea rbx, str.ios_base::badbit_set
jmp 0x1400021cf
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.1400013b0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140001c70
lea rdx, [0x140065be8]
lea rcx, [rsp + 0x50]
call fcn.14002a6f8
nop
call fcn.1400012e0
int3
call fcn.140001240
int3
call fcn.140030010
int3