Function at 0x416712
Capabilities:
Check http status code
Check internet connectivity via wininet

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x4951ca
call fcn.00470906
mov esi, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov ebx, ecx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
call fcn.0044e280
push eax
lea eax, [ebp - 0x24]
push str.Connect__:_strURL_
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0044eb90
push 0x4a2580
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.0044eb40
push eax
mov byte [ebp - 4], 2
call fcn.00404620
add esp, 0x1c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0044e260
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0044e260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044e260
cmp dword [0x4c33a8], edi
jne 0x4167c9
push 0x4a2620
mov ecx, 0x4c33b0
call fcn.0044e3b0
mov eax, 0x8000aaa1
jmp 0x4169ec
push 7
push str.file:__
push esi
call fcn.004741a1
add esp, 0xc
test eax, eax
je 0x4167f6
push edi
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4167f6
push 0x4a261c
jmp 0x4167b5
lea ecx, [ebx + 4]
push esi
call fcn.0044e3b0
mov dword [ebp - 0x10], edi
cmp dword [ebx + 0x18], edi
jne 0x416935
mov ecx, ebx
call fcn.0041640a
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.00401219
test al, al
je 0x41684b
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
jne 0x41682b
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0xffe00000
push edi
add ecx, 0x200000
or ecx, 0x80080000
push ecx
push edi
push edi
push eax
jmp 0x41688f
cmp byte [esi + 7], 0xff
je 0x416856
mov dword [ebp - 0x20], esi
jmp 0x41685b
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
jne 0x416866
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, 0xffe00000
add eax, 0x200000
push edi
or eax, 0x80080000
push eax
mov ecx, esi
call fcn.0044e020
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push dword [0x4c33a8]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebx], eax
cmp eax, edi
je 0x416903
cmp dword [ebp - 0x14], edi
jne 0x416935
mov esi, str.Location
lea edi, [ebp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3f7
lea eax, [ebp + 9]
push 0
push eax
mov dword [ebp - 0x10], 0x400
movsb byte es:[edi], byte [esi]
call fcn.00470280
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push 0xffff
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x416933
lea eax, [ebp]
push eax
lea ecx, [ebx + 4]
call fcn.0044e3b0
xor edi, edi
cmp dword [ebx + 0x18], edi
je 0x41680b
jmp 0x416935
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c33b0
cmp eax, 0x2ee2
jne 0x416929
push 0x4a260c
call fcn.0044e3b0
mov eax, 0x800705b4
jmp 0x4169ec
push 0x4a2608
jmp 0x4167ba
xor edi, edi
push edi
lea eax, [ebp - 0x10]
push eax
lea esi, [ebx + 0xc]
push esi
push 0x20000013
push dword [ebx]
mov dword [ebp - 0x10], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x416990
cmp dword [ebp - 0x10], 4
je 0x416966
push 0x4a2604
jmp 0x4167b5
mov esi, dword [esi]
cmp esi, 0xc8
jb 0x416978
cmp esi, 0x190
jb 0x416990
push esi
push str.C6:_d
push 0x4c33b0
call fcn.0044ee50
add esp, 0xc
jmp 0x4167bf
mov esi, str.Last_Modified
lea edi, [ebp + 0x400]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3f2
lea eax, [ebp + 0x40e]
push 0
push eax
mov dword [ebp - 0x10], 0x400
movsw word es:[edi], word [esi]
call fcn.00470280
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x400]
push eax
push 0xffff
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4169ea
lea eax, [ebp + 0x400]
push eax
lea ecx, [ebx + 0x1c]
call fcn.0044e3b0
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 + 0x800]
xor ecx, ebp
call fcn.00470483
add ebp, 0x804
leave
ret 8