Function at 0x415f70
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ed93
mov eax, dword fs:[0]
push eax
mov eax, 0x8038
call fcn.0050c2d0
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Open_Internet_Session
mov edi, ecx
mov esi, edx
call fcn.004172c0
add esp, 4
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
jne 0x415fe0
push str.Internet_Session_Open_Failed_
xor esi, esi
call fcn.00417260
add esp, 4
lea eax, [ebx + 1]
jmp 0x41621a
push str.Open_Http_Connection
call fcn.004172c0
add esp, 4
lea ecx, [ebp - 0x8014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebp - 0x8014]
push str.Cache_Control:no_cache_nPragma:no_cache
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov eax, dword [ebp - 0x8014]
mov ecx, dword [eax - 0xc]
add esp, 8
push 0
push 0x84000000
push ecx
push eax
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x41605f
push str.Http_Connection_Open_Failed_
xor esi, esi
call fcn.00417260
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x8014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea eax, [edi + 1]
jmp 0x41621a
call fcn.00416240
test eax, eax
jne 0x416099
push str.Download_File_Is_Not_Exist_
xor esi, esi
call fcn.00417260
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push edi
call esi
push ebx
call esi
lea ecx, [ebp - 0x8014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
jmp 0x41621a
lea ecx, [ebp - 0x8044]
call dword [sym.imp.mfc100u.dll_CFile::CFile_1]
lea ecx, [ebp - 0x8030]
push ecx
mov byte [ebp - 4], 1
call fcn.004143d0
lea edx, [ebp - 0x8030]
push edx
push 0x1041
push esi
lea ecx, [ebp - 0x8044]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100u.dll_CFile::Open]
test eax, eax
jne 0x41612d
push str.Download_File_Open_Failed_
xor esi, esi
call fcn.00417260
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push edi
call esi
push ebx
call esi
lea ecx, [ebp - 0x8020]
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x8044]
mov byte [ebp - 4], 0
call dword [0x511864]
lea ecx, [ebp - 0x8014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
jmp 0x41621a
push str.Download_File_Start
call fcn.004172c0
add esp, 4
xor esi, esi
lea esp, [esp]
push 0
push 0
lea eax, [ebp - 0x801c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x41619e
mov edx, dword [ebp - 0x801c]
lea ecx, [ebp - 0x8018]
push ecx
push edx
lea eax, [ebp - 0x8010]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4161a5
mov eax, dword [ebp - 0x8018]
test eax, eax
je 0x4161b9
push eax
lea ecx, [ebp - 0x8010]
push ecx
lea ecx, [ebp - 0x8044]
call dword [sym.imp.mfc100u.dll_CFile::Write]
cmp dword [ebp - 0x8018], esi
jne 0x416140
jmp 0x4161b9
push str.InternetQueryDataAvailable_:_data_not_available_
jmp 0x4161aa
push str.InternetReadFile_:_reading_file_fail_
xor esi, esi
call fcn.00417260
mov esi, 1
add esp, 4
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push ebx
call edi
lea ecx, [ebp - 0x8044]
call dword [sym.imp.mfc100u.dll_CFile::Close]
test esi, esi
jne 0x4160f1
push str.Download_File_Success
call fcn.004172c0
add esp, 4
lea ecx, [ebp - 0x8020]
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x8044]
mov byte [ebp - 4], 0
call dword [0x511864]
lea ecx, [ebp - 0x8014]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret