Function at 0x41c540
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 0x6d9d51
mov eax, dword fs:[0]
push eax
mov eax, 0x803c
call fcn.0068e250
mov eax, dword [0x79a200]
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
mov dword [ebp - 0x801c], edx
mov edi, ecx
push str.Open_Internet_Session
call fcn.0041d700
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 0x41c5b3
push str.Internet_Session_Open_Failed_
push eax
call fcn.0041d690
add esp, 8
lea eax, [ebx + 1]
jmp 0x41c82d
push str.Open_Http_Connection
call fcn.0041d700
add esp, 4
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x41c849
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8014], eax
lea eax, [ebp - 0x8014]
mov dword [ebp - 4], 0
push str.Cache_Control:no_cache_nPragma:no_cache
push eax
call fcn.00407190
mov esi, dword [ebp - 0x8014]
add esp, 8
push 0
push 0x84000000
push dword [esi - 0xc]
push esi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x41c636
push str.Http_Connection_Open_Failed_
push eax
call fcn.0041d690
add esp, 8
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, 1
jmp 0x41c80c
mov ecx, edi
call fcn.0041c860
test eax, eax
jne 0x41c665
push str.Download_File_Is_Not_Exist_
push eax
call fcn.0041d690
add esp, 8
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push ebx
call edi
mov edi, 1
jmp 0x41c80c
lea ecx, [ebp - 0x8048]
call fcn.00552b3b
lea ecx, [ebp - 0x8034]
mov byte [ebp - 4], 1
call fcn.00546383
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x41c853
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8024], eax
push 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8024]
push 0
mov dword [ebp - 0x802c], 0
mov dword [ebp - 0x8028], 0xffffffff
call fcn.00406bf0
lea eax, [ebp - 0x8034]
mov byte [ebp - 4], 3
push eax
push 0x1041
push dword [ebp - 0x801c]
lea ecx, [ebp - 0x8048]
call fcn.0055316c
test eax, eax
jne 0x41c711
push str.Download_File_Open_Failed_
push eax
call fcn.0041d690
add esp, 8
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push ebx
call edi
jmp 0x41c7d0
push str.Download_File_Start
call fcn.0041d700
add esp, 4
nop
push 0
push 0
lea eax, [ebp - 0x8020]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x41c7aa
lea eax, [ebp - 0x8018]
push eax
push dword [ebp - 0x8020]
lea eax, [ebp - 0x8010]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41c7a3
mov eax, dword [ebp - 0x8018]
test eax, eax
je 0x41c77b
push eax
lea eax, [ebp - 0x8010]
push eax
lea ecx, [ebp - 0x8048]
call fcn.0055357f
cmp dword [ebp - 0x8018], 0
jne 0x41c720
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push ebx
call edi
lea ecx, [ebp - 0x8048]
call fcn.00552de7
push str.Download_File_Success
call fcn.0041d700
add esp, 4
xor edi, edi
jmp 0x41c7d5
push str.InternetReadFile_:_reading_file_fail_
jmp 0x41c7af
push str.InternetQueryDataAvailable_:_data_not_available_
push 0
call fcn.0041d690
add esp, 8
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push ebx
call edi
lea ecx, [ebp - 0x8048]
call fcn.00552de7
mov edi, 1
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x8024]
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c801
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8048]
call fcn.00552b64
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41c82b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0068d76f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407310
push 0x80004005
call fcn.00407310
int3