Function at 0x40bfed
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x4806f0]
xor eax, ebp
mov dword [ebp + 0x788], eax
push ebx
push esi
mov esi, dword [ebp + 0x794]
push edi
xor edi, edi
mov ebx, ecx
cmp dword [0x481e40], edi
jne 0x40c027
mov eax, 0x8000aaa1
jmp 0x40c0ea
push 7
push str.file:__
push esi
call fcn.004520ca
add esp, 0xc
test eax, eax
je 0x40c04d
push edi
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40c01d
lea ecx, [ebx + 4]
push esi
call fcn.0042f2c0
mov dword [ebp - 0x7c], edi
cmp dword [ebx + 0x18], edi
je 0x40c106
push 4
pop edi
push 0
lea eax, [ebp - 0x7c]
push eax
lea esi, [ebx + 0xc]
push esi
push 0x20000013
push dword [ebx]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40c09a
cmp dword [ebp - 0x7c], edi
jne 0x40c01d
mov esi, dword [esi]
cmp esi, 0xc8
jb 0x40c01d
cmp esi, 0x190
jae 0x40c01d
mov esi, str.Last_Modified
lea edi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3f2
lea eax, [ebp - 0x6a]
push 0
push eax
mov dword [ebp - 0x7c], 0x400
movsw word es:[edi], word [esi]
call fcn.0044f270
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0xffff
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40c0e8
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebx + 0x1c]
call fcn.0042f2c0
xor eax, eax
mov ecx, dword [ebp + 0x788]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f6d0
add ebp, 0x78c
leave
ret 8
xor edi, edi
mov ecx, ebx
call fcn.0040bfd8
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.00401005
test al, al
je 0x40c155
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
jne 0x40c126
mov eax, dword [eax]
mov ecx, dword [ebp + 0x798]
neg ecx
sbb ecx, ecx
and ecx, 0xffe00000
push edi
add ecx, 0x200000
or ecx, 0x80080000
push ecx
push edi
push edi
push eax
push dword [0x481e40]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
jmp 0x40c1a8
cmp byte [esi + 7], 0xff
je 0x40c160
mov dword [ebp - 0x80], esi
jmp 0x40c165
mov eax, dword [esi]
mov dword [ebp - 0x80], eax
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
mov edi, eax
jne 0x40c172
mov edi, dword [eax]
mov eax, dword [ebp + 0x798]
neg eax
sbb eax, eax
and eax, 0xffe00000
add eax, 0x200000
push 0
or eax, 0x80080000
push eax
mov ecx, esi
call fcn.0042ef80
push eax
push dword [ebp - 0x80]
push edi
push dword [0x481e40]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
xor edi, edi
mov dword [ebx], eax
cmp eax, edi
je 0x40c225
cmp dword [ebp + 0x798], edi
jne 0x40c062
mov esi, str.Location
lea edi, [ebp + 0x388]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3f7
lea eax, [ebp + 0x391]
push 0
push eax
mov dword [ebp - 0x7c], 0x400
movsb byte es:[edi], byte [esi]
call fcn.0044f270
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x388]
push eax
push 0xffff
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40c062
lea eax, [ebp + 0x388]
push eax
lea ecx, [ebx + 4]
call fcn.0042f2c0
cmp dword [ebx + 0x18], 0
je 0x40c104
jmp 0x40c062
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x2ee2
neg eax
sbb eax, eax
and eax, 0xfff9a4ed
add eax, 0x800705b4
jmp 0x40c0ea