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

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x4bc73e
call fcn.00492516
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.00470680
push eax
lea eax, [ebp - 0x24]
push str.Connect__:_strURL_
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00470fb0
push 0x4d16f4
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00470f60
push eax
mov byte [ebp - 4], 2
call fcn.004126e0
add esp, 0x1c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00470660
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00470660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00470660
cmp dword [0x4fe668], edi
jne 0x422f4f
push 0x4d1794
mov ecx, 0x4fe670
call fcn.004707b0
mov eax, 0x8000aaa1
jmp 0x423172
push 7
push str.file:__
push esi
call fcn.00495fb3
add esp, 0xc
test eax, eax
je 0x422f7c
push edi
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x422f7c
push 0x4d1790
jmp 0x422f3b
lea ecx, [ebx + 4]
push esi
call fcn.004707b0
mov dword [ebp - 0x10], edi
cmp dword [ebx + 0x18], edi
jne 0x4230bb
mov ecx, ebx
call fcn.00422b90
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.0040d4fd
test al, al
je 0x422fd1
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
jne 0x422fb1
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 0x423015
cmp byte [esi + 7], 0xff
je 0x422fdc
mov dword [ebp - 0x20], esi
jmp 0x422fe1
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
jne 0x422fec
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.004703e0
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push dword [0x4fe668]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebx], eax
cmp eax, edi
je 0x423089
cmp dword [ebp - 0x14], edi
jne 0x4230bb
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.00491e90
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 0x4230b9
lea eax, [ebp]
push eax
lea ecx, [ebx + 4]
call fcn.004707b0
xor edi, edi
cmp dword [ebx + 0x18], edi
je 0x422f91
jmp 0x4230bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4fe670
cmp eax, 0x2ee2
jne 0x4230af
push 0x4d1780
call fcn.004707b0
mov eax, 0x800705b4
jmp 0x423172
push 0x4d177c
jmp 0x422f40
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 0x423116
cmp dword [ebp - 0x10], 4
je 0x4230ec
push 0x4d1778
jmp 0x422f3b
mov esi, dword [esi]
cmp esi, 0xc8
jb 0x4230fe
cmp esi, 0x190
jb 0x423116
push esi
push str.C6:_d
push 0x4fe670
call fcn.00471330
add esp, 0xc
jmp 0x422f45
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.00491e90
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 0x423170
lea eax, [ebp + 0x400]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004707b0
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.00492093
add ebp, 0x804
leave
ret 8