Function at 0x40d5f9
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43a4bd
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x44b4b8]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x44b4b8]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
jne 0x40d64a
xor eax, eax
jmp 0x40d836
test esi, esi
je 0x40d657
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [edi + 0x40]
mov edx, edi
call fcn.0040eeb0
test al, al
jne 0x40d691
xor ebx, ebx
test esi, esi
je 0x40d675
push ebx
push 1
mov ecx, esi
call fcn.00414259
push dword [edi + 0x10]
lea eax, [edi + 0x25c]
push 0xbc0
push eax
call fcn.00410b7c
add esp, 0xc
jmp 0x40d748
cmp byte [edi + 0x44], 0
je 0x40d6a1
cmp byte [edi + 0x45], 0
jne 0x40d833
test esi, esi
je 0x40d6b0
push 1
push 1
mov ecx, esi
call fcn.00414259
mov ecx, edi
mov byte [edi + 0x260], 1
call fcn.0040d8d1
xor ebx, ebx
mov dword [esp + 0x10], eax
test eax, eax
je 0x40d724
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x40d724
cmp dword [esp + 0x10], 2
mov ecx, edi
jne 0x40d6e3
call fcn.0040e8c3
jmp 0x40d6e8
call fcn.0040dd73
sub eax, ebx
je 0x40d71c
dec eax
je 0x40d712
dec eax
jne 0x40d748
push dword [edi + 0x40]
push 0xbc2
lea eax, [edi + 0x25c]
push eax
call fcn.00410b7c
add esp, 0xc
test esi, esi
je 0x40d748
push ebx
push 2
jmp 0x40d741
push dword [edi + 0x40]
push 0xbc1
jmp 0x40d6fa
test esi, esi
je 0x40d748
push 1
jmp 0x40d70e
push dword [edi + 0x40]
lea eax, [edi + 0x25c]
push 0xbbf
push eax
call fcn.00410b7c
add esp, 0xc
test esi, esi
je 0x40d748
push ebx
push ebx
mov ecx, esi
call fcn.00414259
mov eax, dword [edi + 0x25c]
cmp dword [eax - 8], ebx
je 0x40d826
test esi, esi
je 0x40d833
cmp byte [edi + 0x260], 0
je 0x40d81c
mov eax, dword [0x44c5d0]
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], vtable.ReportDetailsDlg.0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call fcn.0040d55a
mov dword [esp + 0xb8], ebx
lea ecx, [esp + 0x14]
push dword [edi + 0x25c]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
call fcn.00413854
call dword [sym.imp.USER32.dll_GetActiveWindow]
push ebx
push ebx
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.0041092a
test eax, eax
jne 0x40d7e2
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40d809
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004108d3
push ebx
push 0x40f4c5
push edi
push 0x3eb
push dword [0x44d544]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
or dword [esp + 0xb8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0040d85a
jmp 0x40d826
push ecx
push ecx
push eax
mov ecx, edi
call fcn.0040dd44
test esi, esi
je 0x40d833
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0041d4e3
mov esp, ebp
pop ebp
ret