Function at 0x40c65e
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433b79
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4412dc]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x4412dc]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp edi, ebx
jne 0x40c6b5
xor eax, eax
jmp 0x40c8ae
cmp eax, ebx
je 0x40c6c2
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [edi + 0x40]
mov esi, edi
call fcn.0040de91
test al, al
jne 0x40c6fc
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x40c6e0
push ebx
push 1
call fcn.00413125
push dword [edi + 0x10]
lea eax, [edi + 0x25c]
push 0xbc0
push eax
call fcn.0040fa58
add esp, 0xc
jmp 0x40c7b5
cmp byte [edi + 0x44], bl
je 0x40c70a
cmp byte [edi + 0x45], bl
jne 0x40c8ab
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x40c71b
push 1
push 1
call fcn.00413125
push edi
mov byte [edi + 0x260], 1
call fcn.0040c949
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40c78d
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x40c78d
push edi
cmp esi, 2
jne 0x40c747
call fcn.0040d8d0
jmp 0x40c74c
call fcn.0040cdf1
sub eax, ebx
pop ecx
je 0x40c783
dec eax
je 0x40c779
dec eax
jne 0x40c7b5
push dword [edi + 0x40]
push 0xbc2
lea eax, [edi + 0x25c]
push eax
call fcn.0040fa58
add esp, 0xc
cmp dword [esp + 0x14], ebx
je 0x40c7b5
push ebx
push 2
jmp 0x40c7ac
push dword [edi + 0x40]
push 0xbc1
jmp 0x40c75f
cmp dword [esp + 0x14], ebx
je 0x40c7b5
push 1
jmp 0x40c775
push dword [edi + 0x40]
lea eax, [edi + 0x25c]
push 0xbbf
push eax
call fcn.0040fa58
add esp, 0xc
cmp dword [esp + 0x14], ebx
je 0x40c7b5
push ebx
push ebx
mov ecx, dword [esp + 0x1c]
call fcn.00413125
mov ecx, dword [edi + 0x25c]
cmp dword [ecx - 8], ebx
je 0x40c89a
cmp dword [esp + 0x14], ebx
je 0x40c8ab
cmp byte [edi + 0x260], bl
je 0x40c893
mov eax, dword [0x442d10]
lea esi, [esp + 0x4c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], vtable.ReportDetailsDlg.0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.0040c5c3
mov dword [esp + 0xc0], ebx
mov eax, dword [edi + 0x25c]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov edi, dword [edi + 4]
push eax
push ecx
push edx
push edi
lea eax, [esp + 0x2c]
call fcn.00412778
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esp + 0x18], eax
push ebx
xor eax, eax
lea edi, [esp + 0x28]
call fcn.0040f7eb
cmp eax, ebx
jne 0x40c857
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40c87f
lea eax, [esp + 0x1c]
lea esi, [esp + 0x24]
call fcn.0040f7a2
push ebx
push 0x40e490
push dword [esp + 0x20]
push 0x3eb
push dword [0x4435ec]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
or dword [esp + 0xc0], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.0040c8d2
jmp 0x40c89a
mov eax, edi
call fcn.0040cdcf
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c8ab
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00419542
mov esp, ebp
pop ebp
ret