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

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x4be41e
call fcn.004943c6
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.00472340
push eax
lea eax, [ebp - 0x24]
push str.Connect__:_strURL_
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00472c70
push 0x4d37d4
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00472c20
push eax
mov byte [ebp - 4], 2
call fcn.00411af0
add esp, 0x1c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00472320
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00472320
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00472320
cmp dword [0x501688], edi
jne 0x4236ef
push 0x4d3874
mov ecx, 0x501690
call fcn.00472470
mov eax, 0x8000aaa1
jmp 0x423912
push 7
push str.file:__
push esi
call fcn.00497e6e
add esp, 0xc
test eax, eax
je 0x42371c
push edi
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x42371c
push 0x4d3870
jmp 0x4236db
lea ecx, [ebx + 4]
push esi
call fcn.00472470
mov dword [ebp - 0x10], edi
cmp dword [ebx + 0x18], edi
jne 0x42385b
mov ecx, ebx
call fcn.00423330
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.0040d59a
test al, al
je 0x423771
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
jne 0x423751
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 0x4237b5
cmp byte [esi + 7], 0xff
je 0x42377c
mov dword [ebp - 0x20], esi
jmp 0x423781
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 4]
cmp byte [eax + 7], 0xff
jne 0x42378c
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.004720a0
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push dword [0x501688]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebx], eax
cmp eax, edi
je 0x423829
cmp dword [ebp - 0x14], edi
jne 0x42385b
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.00493d40
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 0x423859
lea eax, [ebp]
push eax
lea ecx, [ebx + 4]
call fcn.00472470
xor edi, edi
cmp dword [ebx + 0x18], edi
je 0x423731
jmp 0x42385b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x501690
cmp eax, 0x2ee2
jne 0x42384f
push 0x4d3860
call fcn.00472470
mov eax, 0x800705b4
jmp 0x423912
push 0x4d385c
jmp 0x4236e0
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 0x4238b6
cmp dword [ebp - 0x10], 4
je 0x42388c
push 0x4d3858
jmp 0x4236db
mov esi, dword [esi]
cmp esi, 0xc8
jb 0x42389e
cmp esi, 0x190
jb 0x4238b6
push esi
push str.C6:_d
push 0x501690
call fcn.00472ff0
add esp, 0xc
jmp 0x4236e5
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.00493d40
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 0x423910
lea eax, [ebp + 0x400]
push eax
lea ecx, [ebx + 0x1c]
call fcn.00472470
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.00493f43
add ebp, 0x804
leave
ret 8