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

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x4be521
call fcn.00494508
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.00472760
push eax
lea eax, [ebp - 0x24]
push str.Connect__:_strURL_
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00473090
push 0x4cf21c
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00473040
push eax
mov byte [ebp - 4], 2
call fcn.00411cd0
add esp, 0x1c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00472740
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00472740
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00472740
cmp dword [0x4fb63c], edi
jne 0x4216e2
push 0x4cf2bc
mov ecx, 0x4fb644
call fcn.00472890
mov eax, 0x8000aaa1
jmp 0x421905
push 7
push str.file:__
push esi
call fcn.00497fb3
add esp, 0xc
test eax, eax
je 0x42170f
push edi
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x42170f
push 0x4cf2b8
jmp 0x4216ce
lea ecx, [ebx + 4]
push esi
call fcn.00472890
mov dword [ebp - 0x10], edi
cmp dword [ebx + 0x18], edi
jne 0x42184e
mov ecx, ebx
call fcn.00421323
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.0040d513
test al, al
je 0x421764
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
jne 0x421744
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 0x4217a8
cmp byte [esi + 7], 0xff
je 0x42176f
mov dword [ebp - 0x20], esi
jmp 0x421774
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
jne 0x42177f
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.004724c0
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push dword [0x4fb63c]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebx], eax
cmp eax, edi
je 0x42181c
cmp dword [ebp - 0x14], edi
jne 0x42184e
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.00493f80
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 0x42184c
lea eax, [ebp]
push eax
lea ecx, [ebx + 4]
call fcn.00472890
xor edi, edi
cmp dword [ebx + 0x18], edi
je 0x421724
jmp 0x42184e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4fb644
cmp eax, 0x2ee2
jne 0x421842
push 0x4cf2a8
call fcn.00472890
mov eax, 0x800705b4
jmp 0x421905
push 0x4cf2a4
jmp 0x4216d3
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 0x4218a9
cmp dword [ebp - 0x10], 4
je 0x42187f
push 0x4cf2a0
jmp 0x4216ce
mov esi, dword [esi]
cmp esi, 0xc8
jb 0x421891
cmp esi, 0x190
jb 0x4218a9
push esi
push str.C6:_d
push 0x4fb644
call fcn.00473410
add esp, 0xc
jmp 0x4216d8
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.00493f80
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 0x421903
lea eax, [ebp + 0x400]
push eax
lea ecx, [ebx + 0x1c]
call fcn.00472890
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.004944f9
add ebp, 0x804
leave
ret 8