Function at 0x14000bc74
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x60e160
call fcn.140013060
sub rsp, rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x40]
call fcn.14000b1cc
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.1400040dc
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000ac0c
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x98]
call fcn.14000a5fc
lea rdx, [0x1400192a0]
lea rcx, [rsp + 0xe0]
call fcn.14000547c
nop
lea rcx, [rsp + 0x100]
call fcn.14000f594
nop
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x100]
call fcn.14001149c
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
xor r8d, r8d
lea rdx, str.Themes
mov rcx, qword [rsp + 0xa8]
call fcn.14000fecc
cmp rax, 0xffffffffffffffff
je 0x14000bd86
mov dword [rsp + 0x48], 1
jmp 0x14000bd8e
mov dword [rsp + 0x48], 0
mov al, byte [rsp + 0x48]
mov byte [rsp + 0x41], al
lea rcx, [rsp + 0x170]
call fcn.140005718
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x14000c11a
xor r8d, r8d
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x140]
call fcn.14000671c
nop
lea r8, [rsp + 0x140]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x120]
call fcn.14000ae18
nop
lea rcx, [rsp + 0x140]
call fcn.14000a9d4
lea rcx, [rsp + 0x120]
call fcn.14000fb30
movzx eax, al
test eax, eax
je 0x14000bf5e
lea rdx, [rsp + 0xe0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400067f4
lea rdx, str._exists_in_the_current_directory.
mov rcx, rax
call fcn.14000683c
mov qword [rsp + 0xb0], rax
lea rdx, [0x1400090cc]
mov rcx, qword [rsp + 0xb0]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x24
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x1b0]
call fcn.140006764
nop
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, rax
call fcn.14000ace4
mov qword [rsp + 0x60], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov rcx, qword [rsp + 0x60]
call fcn.140013048
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60e178]
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140012d98
mov byte [rsp + 0x42], 1
lea rcx, [rsp + 0x1b0]
call fcn.14000b70c
nop
lea rcx, [rsp + 0x120]
call fcn.14000a9d4
nop
lea rcx, [rsp + 0x100]
call fcn.14000a9d4
nop
lea rcx, [rsp + 0xe0]
call fcn.140005718
mov al, byte [rsp + 0x42]
jmp 0x14000c242
lea rdx, [rsp + 0xe0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400067f4
lea rdx, str._does_not_exist_in_the_current_directory.
mov rcx, rax
call fcn.14000683c
mov qword [rsp + 0xc8], rax
lea rdx, [0x1400090cc]
mov rcx, qword [rsp + 0xc8]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60e170]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x50], rax
lea rdx, [0x14001930c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000683c
mov rdx, qword [rsp + 0x60e170]
mov rcx, rax
call fcn.14000683c
mov qword [rsp + 0xd0], rax
lea rdx, [0x1400090cc]
mov rcx, qword [rsp + 0xd0]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [rsp + 0x50], 0
je 0x14000c10d
lea rax, [rsp + 0x2c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x306f42
rep stosb byte [rdi], al
lea r9, [rsp + 0x78]
mov r8d, 0x306f42
lea rdx, [rsp + 0x2c0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000c10d
mov r8d, 0x306f42
lea rdx, [rsp + 0x2c0]
mov rcx, qword [rsp + 0x60e178]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, str.example.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x7c]
mov r8d, 0x306f42
lea rdx, [rsp + 0x2c0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x43], 1
lea rcx, [rsp + 0x120]
call fcn.14000a9d4
nop
lea rcx, [rsp + 0x100]
call fcn.14000a9d4
nop
lea rcx, [rsp + 0xe0]
call fcn.140005718
mov al, byte [rsp + 0x43]
jmp 0x14000c242
lea rcx, [rsp + 0x120]
call fcn.14000a9d4
lea rdx, [0x140019330]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000683c
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60e170]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x50], rax
lea rdx, [0x140019344]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000683c
mov rdx, qword [rsp + 0x60e170]
mov rcx, rax
call fcn.14000683c
mov qword [rsp + 0xd8], rax
lea rdx, [0x1400090cc]
mov rcx, qword [rsp + 0xd8]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [rsp + 0x50], 0
je 0x14000c21e
lea rax, [rsp + 0x307210]
mov rdi, rax
xor eax, eax
mov ecx, 0x306f42
rep stosb byte [rdi], al
lea r9, [rsp + 0x80]
mov r8d, 0x306f42
lea rdx, [rsp + 0x307210]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000c21e
mov r8d, 0x306f42
lea rdx, [rsp + 0x307210]
mov rcx, qword [rsp + 0x60e178]
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + 0x44], 1
lea rcx, [rsp + 0x100]
call fcn.14000a9d4
nop
lea rcx, [rsp + 0xe0]
call fcn.140005718
mov al, byte [rsp + 0x44]
jmp 0x14000c242
mov byte [rsp + 0x45], 0
lea rcx, [rsp + 0x100]
call fcn.14000a9d4
nop
lea rcx, [rsp + 0xe0]
call fcn.140005718
mov al, byte [rsp + 0x45]
add rsp, 0x60e160
pop rdi
ret