Function at 0x410db0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf2f6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x65a000]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x44], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], 0
mov dword [0x6faff0], 0
mov dword [0x6fafec], eax
call fcn.00410a50
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x48], eax
test eax, eax
jns 0x410e30
mov eax, dword [edi + 4]
mov ebx, SysReAllocString
push str.CDownload::CreateForDownload_CoInitialize___Failed
mov dword [eax + 0x20], ebx
call fcn.00415fc0
jmp 0x411197
mov eax, dword [edi + 8]
mov dword [0x6fafe8], eax
mov dword [ebp - 4], 0
call fcn.00410b00
test eax, eax
je 0x410e98
mov eax, dword [edi + 4]
mov esi, dword [0x6fafec]
mov dword [eax + 0x20], reloc.OLEAUT32.dll_VariantCopy
mov eax, dword [esi + 0x50]
test eax, eax
je 0x410e68
call eax
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x410e7d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x48], 0
mov ecx, esi
call fcn.00410a50
push str.CDownload::CreateForDownload_DownloadLibraryLoad___Failed
mov ebx, SysReAllocString
call fcn.00415fc0
jmp 0x411197
push 0
push 0
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push str.OMSetupDownloadWindowClass
push str.OMSetupDownloadWindowClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
jne 0x410f02
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov eax, dword [edi + 4]
mov dword [eax + 0x20], SysReAllocString
call esi
push eax
push str.CDownload::CreateForDownload_CreateWindowEx___Failed___0x_08x
push 0xffffffffffffffff
push 0x1000
push 0x6fb428
call fcn.005a4e29
add esp, 0x14
push 0x6fb428
call fcn.00415fc0
jmp 0x411197
mov edi, dword [ebp - 0x44]
xor esi, esi
cmp esi, 0x1e
jge 0x410f4a
push 0
push 0
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
jne 0x4110f9
push dword [ebp - 0x34]
push str.CDownload::CreateForDownload_GetMessage___Failed___0x_08x
push 0xffffffffffffffff
push 0x1000
push 0x6fb428
call fcn.005a4e29
add esp, 0x14
push 0x6fb428
call fcn.00415fc0
mov edi, dword [0x6fafec]
mov eax, dword [edi + 0x50]
test eax, eax
je 0x410f60
call eax
mov dword [edi + 0x50], 0
mov eax, dword [edi + 0x48]
test eax, eax
je 0x410f75
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x48], 0
mov ecx, edi
call fcn.00410a50
cmp esi, 0x1d
jl 0x4110f2
mov ecx, dword [ebp - 0x44]
push 0
push ebx
call fcn.00410890
push 1
xor eax, eax
push 0x60f2a4
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
call fcn.004058d0
mov byte [ebp - 4], 1
push 0xf
xor eax, eax
push str.DL_CANCEL_EVENT
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
call fcn.004058d0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ecx + 0xc]
call fcn.00407490
cmp dword [ebp - 0x4c], 8
jb 0x411014
push dword [ebp - 0x60]
call fcn.0048166b
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x94], 8
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
jb 0x411042
push dword [ebp - 0xa8]
call fcn.0048166b
add esp, 4
push 1
xor eax, eax
push 0x60f2a4
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
call fcn.004058d0
mov byte [ebp - 4], 3
push 0xe
xor eax, eax
push str.NO_WEBCONECTED
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
call fcn.004058d0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 4
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ecx + 0xc]
call fcn.00407490
cmp dword [ebp - 0x64], 8
jb 0x4110c0
push dword [ebp - 0x78]
call fcn.0048166b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x7c], 8
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
jb 0x4110e8
push dword [ebp - 0x90]
call fcn.0048166b
add esp, 4
push str.CDownload::CreateForDownload__time_out
call fcn.00415fc0
xor ebx, ebx
jmp 0x411197
test eax, eax
jne 0x41110a
push dword [ebp - 0x34]
push str.CDownload::CreateForDownload_GetMessage___Success___0x_08x
jmp 0x410f2c
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6faff0], 1
jne 0x41115c
xor esi, esi
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x41115c
push eax
push ebx
mov ecx, edi
call fcn.00410890
push str.CDownload::CreateForDownload_InternetGetConnectedState___ifFlag__FALSE
call fcn.00415fc0
mov dword [0x6faff0], esi
inc esi
jmp 0x410f07
cmp dword [ebp - 0x48], 0
jl 0x4111a3
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005a4646
mov esp, ebp
pop ebp
ret 4