Function at 0x401481
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:
push ebp
mov ebp, esp
push ebx
sub esp, 0x464
lea eax, [ebp - 0x1d]
mov ecx, eax
call fcn.00401d30
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x1d]
mov dword [esp + 4], edx
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
mov ecx, eax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string_wchar_t_const__std::allocator_wchar_t__const_
sub esp, 8
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sym.fileExists_std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
mov ebx, eax
lea eax, [ebp - 0x38]
mov ecx, eax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea eax, [ebp - 0x1d]
mov ecx, eax
call sym.std::allocator_wchar_t_::allocator__
test bl, bl
je 0x4014fe
mov dword [esp + 4], str.File_already_exists._Skipping_download.
mov dword [esp], sym.imp.libstdc_6.dll_std::wcout
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov dword [esp], sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::endl_wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t____
mov ecx, eax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
sub esp, 4
jmp 0x4016a1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.Downloader
call sym._InternetOpenW_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4016a1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._InternetOpenUrlW_24
sub esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40166d
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._CreateFileW_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40165f
mov dword [ebp - 0x18], 0x400
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x440]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._InternetReadFile_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x401642
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x40]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x440]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
cmp dword [ebp - 0x1c], 0
je 0x401651
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x401651
jmp 0x4015dc
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
jmp 0x4016a1
mov ebx, dword [ebp - 4]
leave
ret