Function at 0x402430
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f738
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4c9860]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0xc4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x68], 0
jne 0x402480
push 0xffffffffffffffff
lea ecx, [ebx + 0xb4]
push 0
push ecx
jmp 0x4026ad
push 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x402551
lea ecx, [ebp - 0x5c]
call fcn.004300e0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00403bf0
add esp, 4
lea ecx, [ebx + 0xcc]
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403c70
lea esi, [ebx + 0xb4]
add esp, 4
mov dword [ebp - 0x60], eax
cmp esi, eax
je 0x402502
cmp dword [esi + 0x14], 8
jb 0x4024e7
push dword [esi]
call fcn.0047cf40
mov eax, dword [ebp - 0x60]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
push eax
mov ecx, esi
call fcn.0040c240
cmp dword [ebp - 0x18], 8
jb 0x402513
push dword [ebp - 0x2c]
call fcn.0047cf40
add esp, 4
xor eax, eax
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x402538
push dword [ebp - 0x44]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jmp 0x402620
push 0
push 1
push str.http:__www.baidu.com_
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x402638
lea ecx, [ebp - 0x5c]
call fcn.004300e0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00403bf0
add esp, 4
lea ecx, [ebx + 0xcc]
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00403c70
lea esi, [ebx + 0xb4]
add esp, 4
mov dword [ebp - 0x60], eax
cmp esi, eax
je 0x4025d6
cmp dword [esi + 0x14], 8
jb 0x4025bb
push dword [esi]
call fcn.0047cf40
mov eax, dword [ebp - 0x60]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
push eax
mov ecx, esi
call fcn.0040c240
cmp dword [ebp - 0x30], 8
jb 0x4025e7
push dword [ebp - 0x44]
call fcn.0047cf40
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x40260c
push dword [ebp - 0x2c]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x48], 8
jb 0x402638
push dword [ebp - 0x5c]
call fcn.0047cf40
add esp, 4
add ebx, 0xb4
push ebx
call fcn.00402410
push 1
mov ecx, ebx
test al, al
je 0x402653
push 0x4b2b48
jmp 0x402658
push 0x4b2b04
call fcn.004035b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.0042d230
mov esi, eax
push 3
push 0x4b2b4c
mov ecx, ebx
mov dword [ebp - 4], 4
call fcn.004035b0
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004034a0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x48], 8
jb 0x4026a8
push dword [ebp - 0x5c]
call fcn.0047cf40
add esp, 4
push 0xffffffffffffffff
push 0
push ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
call fcn.0040bd60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047cf45
mov esp, ebp
pop ebp
ret 4