Function at 0x413510
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e35c6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x677000]
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 [0x74e2d0], 0
mov dword [0x74e2cc], eax
call fcn.004131b0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x48], eax
test eax, eax
jns 0x413590
mov eax, dword [edi + 4]
mov ebx, SysReAllocStringLen
push str.CDownload::CreateForDownload_CoInitialize___Failed
mov dword [eax + 0x20], ebx
call fcn.00418730
jmp 0x4138f7
mov eax, dword [edi + 8]
mov dword [0x74e2c8], eax
mov dword [ebp - 4], 0
call fcn.00413260
test eax, eax
je 0x4135f8
mov eax, dword [edi + 4]
mov esi, dword [0x74e2cc]
mov dword [eax + 0x20], reloc.OLEAUT32.dll_VariantCopy
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4135c8
call eax
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4135dd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x48], 0
mov ecx, esi
call fcn.004131b0
push str.CDownload::CreateForDownload_DownloadLibraryLoad___Failed
mov ebx, SysReAllocStringLen
call fcn.00418730
jmp 0x4138f7
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 0x413662
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov eax, dword [edi + 4]
mov dword [eax + 0x20], SysReAllocStringLen
call esi
push eax
push str.CDownload::CreateForDownload_CreateWindowEx___Failed___0x_08x
push 0xffffffffffffffff
push 0x1000
push 0x74e818
call fcn.005b8769
add esp, 0x14
push 0x74e818
call fcn.00418730
jmp 0x4138f7
mov edi, dword [ebp - 0x44]
xor esi, esi
cmp esi, 0x1e
jge 0x4136aa
push 0
push 0
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
jne 0x413859
push dword [ebp - 0x34]
push str.CDownload::CreateForDownload_GetMessage___Failed___0x_08x
push 0xffffffffffffffff
push 0x1000
push 0x74e818
call fcn.005b8769
add esp, 0x14
push 0x74e818
call fcn.00418730
mov edi, dword [0x74e2cc]
mov eax, dword [edi + 0x50]
test eax, eax
je 0x4136c0
call eax
mov dword [edi + 0x50], 0
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4136d5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x48], 0
mov ecx, edi
call fcn.004131b0
cmp esi, 0x1d
jl 0x413852
mov ecx, dword [ebp - 0x44]
push 0
push ebx
call fcn.00412ff0
push 1
xor eax, eax
push 0x6266cc
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
call fcn.00406400
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.00406400
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
mov ecx, dword [0x74e2f4]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ecx + 0xc]
call fcn.00409f70
cmp dword [ebp - 0x4c], 8
jb 0x413774
push dword [ebp - 0x60]
call fcn.0049500b
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 0x4137a2
push dword [ebp - 0xa8]
call fcn.0049500b
add esp, 4
push 1
xor eax, eax
push 0x6266cc
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
call fcn.00406400
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.00406400
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 4
mov ecx, dword [0x74e2f4]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ecx + 0xc]
call fcn.00409f70
cmp dword [ebp - 0x64], 8
jb 0x413820
push dword [ebp - 0x78]
call fcn.0049500b
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 0x413848
push dword [ebp - 0x90]
call fcn.0049500b
add esp, 4
push str.CDownload::CreateForDownload__time_out
call fcn.00418730
xor ebx, ebx
jmp 0x4138f7
test eax, eax
jne 0x41386a
push dword [ebp - 0x34]
push str.CDownload::CreateForDownload_GetMessage___Success___0x_08x
jmp 0x41368c
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 [0x74e2d0], 1
jne 0x4138bc
xor esi, esi
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4138bc
push eax
push ebx
mov ecx, edi
call fcn.00412ff0
push str.CDownload::CreateForDownload_InternetGetConnectedState___ifFlag__FALSE
call fcn.00418730
mov dword [0x74e2d0], esi
inc esi
jmp 0x413667
cmp dword [ebp - 0x48], 0
jl 0x413903
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.005b7f8f
mov esp, ebp
pop ebp
ret 4