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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rax, qword [0x14006cfd8]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
lea rcx, str.Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
je 0x1400030b8
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002cc0
cmp qword [rax + 0x18], 8
jb 0x140002f06
mov rax, qword [rax]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x84000100
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140002f6a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003133
call fcn.14002b520
movdqa xmm0, xmmword [0x140063d60]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r14w
test rbx, rbx
je 0x1400030af
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call fcn.14002dba0
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1400060e0
nop
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 0x140002ffe
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x140002ffe
mov r8d, eax
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.140006480
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 0x140002fc4
lea rcx, [rbp - 0x78]
call fcn.140006e50
test rax, rax
jne 0x14000303e
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 0x1400030df
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_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 - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.140006030
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.14002ac5c
nop
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.14002b500
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
test dl, 4
je 0x1400030ed
lea rbx, str.ios_base::badbit_set
jmp 0x140003102
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.1400013d0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140001f60
lea rdx, [0x14006a778]
lea rcx, [rsp + 0x50]
call fcn.14002df28
nop
call fcn.140033840
int3