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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x548
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4c0], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
mov dword [rsp + 0x20], 0
lea rcx, str.DownloadFile
xor edi, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenW]
test rax, rax
je 0x140001348
mov r14, rax
cmp qword [rsi + 0x18], 7
jbe 0x1400010e4
mov rsi, qword [rsi]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
test rax, rax
je 0x140001205
mov r15, rax
cmp qword [rbx + 0x18], 7
jbe 0x14000111d
mov rbx, qword [rbx]
mov dword [rsp + 0x20], 1
lea r12, [rbp + 0x3b0]
mov rcx, r12
mov rdx, rbx
mov r8d, 0x20
mov r9d, 0x40
call fcn.140004c60
mov dword [rbp + 0x4bc], 0
lea rbx, [rbp - 0x50]
lea rdi, [rbp + 0x4bc]
mov rsi, qword [sym.imp.WININET.dll_InternetReadFile]
mov r13, 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]
nop word cs:[rax + rax]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x400
mov r9, rdi
call rsi
test eax, eax
je 0x14000119c
mov r8d, dword [rbp + 0x4bc]
test r8d, r8d
je 0x14000119c
mov rcx, r12
mov rdx, rbx
call r13
jmp 0x140001170
cmp qword [rbp + 0x438], 0
je 0x140001215
lea rcx, [rbp + 0x3b8]
mov rax, qword [rbp + 0x3d0]
lea rdx, [rbp + 0x428]
cmp qword [rax], rdx
jne 0x1400011e5
mov edx, dword [rbp + 0x448]
mov rbx, qword [rbp + 0x440]
mov qword [rax], rbx
mov rax, qword [rbp + 0x3f0]
mov qword [rax], rbx
sub edx, ebx
mov rax, qword [rbp + 0x408]
mov dword [rax], edx
call fcn.140003740
mov ebx, eax
mov rcx, qword [rbp + 0x438]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
setne al
xor bl, 1
or bl, al
jmp 0x140001217
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
jmp 0x140001348
mov bl, 1
mov byte [rbp + 0x434], 0
mov byte [rbp + 0x429], 0
lea rax, [rbp + 0x3c0]
mov qword [rbp + 0x3d0], rax
lea rax, [rbp + 0x3c8]
mov qword [rbp + 0x3d8], rax
lea rax, [rbp + 0x3e0]
mov qword [rbp + 0x3f0], rax
lea rax, [rbp + 0x3e8]
mov qword [rbp + 0x3f8], rax
lea rax, [rbp + 0x400]
mov qword [rbp + 0x408], rax
lea rax, [rbp + 0x404]
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x400], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c0], xmm0
movups xmmword [rbp + 0x3e0], xmm0
mov qword [rbp + 0x438], 0
mov rax, qword [0x140029550]
mov qword [rbp + 0x42c], rax
mov qword [rbp + 0x420], 0
test bl, bl
je 0x1400012e6
mov rax, qword [rbp + 0x3b0]
movsxd rax, dword [rax + 4]
lea rcx, [rax + rbp]
add rcx, 0x3b0
mov edx, dword [rbp + rax + 0x3c0]
or edx, 2
xor r8d, r8d
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call rsi
mov rcx, r14
call rsi
lea rsi, [rbp + 0x458]
mov rax, qword [rbp + 0x3b0]
movsxd rax, dword [rax + 4]
lea rcx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rax + 0x3b0], rcx
mov rax, qword [rbp + 0x3b0]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0xa8]
mov dword [rbp + rax + 0x3ac], ecx
lea rcx, [rbp + 0x3b8]
call fcn.1400028a0
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::ios_base::destructor_void____ptr64]
mov dil, 1
mov eax, edi
add rsp, 0x548
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret