Function at 0x412b20
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub esp, 0x404
push ebx
push ebp
push esi
push edi
push str.svr.big
mov edi, 0x3c
call fcn.00415f80
add esp, 4
test eax, eax
je 0x412b56
push 0x1388
call fcn.004047d0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 8
mov edi, eax
cmp dword [0x42842c], 0xa
jge 0x412b6c
cmp dword [0x41e190], 1
je 0x412fb1
test dword [0x42874c], 0x2000000
je 0x412fb1
push str.nchk.conn
call fcn.00415f80
add esp, 4
test eax, eax
jne 0x412fb1
call dword [sym.imp.MSVCRT.dll_clock]
mov ebx, dword [0x42842c]
xor ebp, ebp
xor esi, esi
cmp ebx, 0xa
jl 0x412c95
sub eax, dword [0x4290d0]
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, edi
jle 0x412bcc
mov esi, 1
cmp esi, ebp
je 0x412c95
mov al, byte [0x429498]
mov dword [0x429478], ebp
test al, 0x80
je 0x412be8
call fcn.00412a50
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
test byte [0x429498], 0x80
jne 0x412c3d
mov eax, dword [0x42959c]
mov ecx, 0x14
cdq
idiv ecx
test edx, edx
jne 0x412c3d
mov edi, str.POPUP
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x78
call fcn.004047d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00409af0
mov eax, dword [0x42959c]
add esp, 0x10
inc eax
pop edi
pop esi
pop ebp
mov dword [0x42959c], eax
pop ebx
add esp, 0x404
ret
cmp ebx, 2
jge 0x412d76
cmp dword [0x429478], ebp
je 0x412d76
mov al, byte [0x429498]
mov dword [0x429478], ebp
test al, 0x80
je 0x412cc4
call fcn.00412a50
mov ebx, dword [0x42842c]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
test byte [0x429498], 0x80
jne 0x412d1e
cmp ebx, 0xa
jl 0x412d1e
mov eax, dword [0x42959c]
mov ecx, 0x14
cdq
idiv ecx
test edx, edx
jne 0x412d1e
mov edi, str.POPUP
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x78
call fcn.004047d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00409af0
mov eax, dword [0x42959c]
add esp, 0x10
inc eax
pop edi
pop esi
pop ebp
mov dword [0x42959c], eax
pop ebx
add esp, 0x404
ret
lea ecx, [esp + 0x10]
push ecx
call sub.SensApi.dll_IsNetworkAlive
mov ebx, eax
cmp ebx, ebp
mov ebp, dword [sym.imp.WININET.dll_InternetGetConnectedState]
jne 0x412d9e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x412d9e
push 0
push 0
call ebp
mov ebx, eax
mov eax, dword [0x42842c]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
cmp eax, 2
jg 0x412e11
mov eax, dword [0x429598]
test eax, eax
je 0x412e11
test dword [0x42874c], 0x2000000
je 0x412e11
test byte [0x429498], 0x80
je 0x412e11
test ebx, ebx
je 0x412e19
mov eax, dword [0x41e190]
test eax, eax
jne 0x412e11
xor esi, esi
call fcn.0040f8b0
push 3
call fcn.004087d0
add esp, 4
test eax, eax
jne 0x412dfd
push 0x1f4
call edi
inc esi
cmp esi, 0x14
jl 0x412de0
jmp 0x412e07
push 0
call fcn.0040f8e0
add esp, 4
mov dword [0x429598], 0
test ebx, ebx
jne 0x412f0d
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x4295a0]
xor edx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, ecx
mov esi, 0x1e
div esi
xor ebx, ebx
xor ebp, ebp
test edx, edx
jne 0x412e74
mov edi, str.POPUP
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x412e83
mov eax, ecx
xor edx, edx
mov ecx, 0xa
div ecx
test edx, edx
jne 0x412e88
mov ebp, 1
push 0x76
call fcn.004047d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4295a0]
inc ecx
test ebp, ebp
mov dword [0x4295a0], ecx
je 0x412ee3
test ebx, ebx
sete al
push eax
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00409af0
add esp, 0xc
cmp dword [0x42842c], 0xa
jl 0x412fb1
cmp dword [0x4295a0], 0x1e
jbe 0x412fb1
call fcn.00412a50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
test dword [0x42874c], 0x2000000
je 0x412fb1
test byte [0x429498], 0x80
je 0x412fb1
mov eax, dword [0x4295a0]
test eax, eax
je 0x412fb1
push 0
push 0
call ebp
test eax, eax
je 0x412fb1
push 1
push 0
push 0x77
call fcn.004047d0
add esp, 4
push eax
call fcn.00409af0
mov eax, dword [0x42842c]
add esp, 0xc
cmp eax, 0xa
jge 0x412fa7
cmp dword [0x4295a0], 0x1e
jbe 0x412fa7
mov eax, dword [0x41e190]
test eax, eax
jne 0x412fa7
test byte [0x429498], 0x80
je 0x412fa7
xor esi, esi
call fcn.0040f8b0
push 3
call fcn.004087d0
add esp, 4
test eax, eax
jne 0x412f9d
push 0x1f4
call edi
inc esi
cmp esi, 0x14
jl 0x412f80
jmp 0x412fa7
push 0
call fcn.0040f8e0
add esp, 4
mov dword [0x4295a0], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret