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

Disassembly:
push 0xffffffffffffffff
push 0x494261
mov eax, dword fs:[0]
push eax
mov eax, 0x8040
call fcn.00479200
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x8038], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd750]
xor eax, esp
push eax
lea eax, [esp + 0x8054]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8064]
push str.Open_Internet_Session
mov esi, ecx
mov dword [esp + 0x28], eax
call fcn.004169a0
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 0x415606
push str.Internet_Session_Open_Failed_
xor esi, esi
call fcn.00416940
add esp, 4
lea eax, [ebx + 1]
jmp 0x415887
push str.Open_Http_Connection
call fcn.004169a0
add esp, 4
call fcn.0045be93
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41562d
push 0x80004005
call fcn.00401c80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push str.Cache_Control:no_cache_nPragma:no_cache
push ecx
mov dword [esp + 0x8064], 0
call fcn.00401850
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp - 0xc]
add esp, 8
push 0
push 0x84000000
push eax
push ebp
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x4156c0
push str.Http_Connection_Open_Failed_
xor esi, esi
call fcn.00416940
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
add ebp, 0xfffffff0
mov dword [esp + 0x805c], 0xffffffff
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4156b6
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, 1
jmp 0x415887
mov esi, edi
call fcn.004158b0
test eax, eax
jne 0x415718
push str.Download_File_Is_Not_Exist_
xor esi, esi
call fcn.00416940
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push edi
call esi
push ebx
call esi
add ebp, 0xfffffff0
mov dword [esp + 0x805c], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41570e
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, 1
jmp 0x415887
lea ecx, [esp + 0x28]
call fcn.004608da
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x8068], 1
call fcn.00413b70
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
push 0x1041
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x8068], 2
call fcn.00460cd6
test eax, eax
jne 0x415796
push str.Download_File_Open_Failed_
xor esi, esi
call fcn.00416940
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push edi
call esi
push ebx
call esi
lea ecx, [esp + 0x38]
call fcn.00413b00
lea ecx, [esp + 0x28]
mov byte [esp + 0x805c], 0
call fcn.004609ae
jmp 0x41568e
push str.Download_File_Start
call fcn.004169a0
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
add esp, 4
xor ebp, ebp
jmp 0x4157b0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
call esi
test eax, eax
je 0x4157f9
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x54]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x415800
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415812
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x30]
call fcn.00460628
cmp dword [esp + 0x1c], ebp
jne 0x4157b0
jmp 0x415812
push str.InternetQueryDataAvailable_:_data_not_available_
jmp 0x415805
push str.InternetReadFile_:_reading_file_fail_
xor esi, esi
call fcn.00416940
lea ebp, [esi + 1]
add esp, 4
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
lea ecx, [esp + 0x28]
call fcn.00460878
test ebp, ebp
je 0x415855
lea ecx, [esp + 0x38]
call fcn.00413b00
lea ecx, [esp + 0x28]
mov byte [esp + 0x805c], 0
call fcn.004609ae
lea ecx, [esp + 0x18]
call fcn.00401700
mov eax, 1
jmp 0x415887
push str.Download_File_Success
call fcn.004169a0
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00413b00
lea ecx, [esp + 0x28]
mov byte [esp + 0x805c], 0
call fcn.004609ae
lea ecx, [esp + 0x18]
call fcn.00401700
xor eax, eax
mov ecx, dword [esp + 0x8054]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8038]
xor ecx, esp
call fcn.004716ba
add esp, 0x804c
ret