Function at 0x46a8f0
Capabilities:
Check if file exists
Check internet connectivity via wininet
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec3ec
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x74e2f4]
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.00469230
mov ecx, ebx
call fcn.0046b190
push 3
xor eax, eax
push 0x626dbc
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00406400
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 1
call fcn.00409910
mov esi, eax
lea eax, [ebp - 0x228]
cmp eax, esi
je 0x46a9e7
cmp dword [ebp - 0x214], 8
jb 0x46a9be
push dword [ebp - 0x228]
call fcn.0049500b
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.00405f10
cmp dword [ebp - 0x280], 8
jb 0x46a9fe
push dword [ebp - 0x294]
call fcn.0049500b
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x268], 8
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
jb 0x46aa35
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
push 0x1a
push str.DriverDRVSETUPSETUP.EXE
lea ecx, [ebp - 0x228]
call fcn.004062d0
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0xa
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
lea ecx, [ebp - 0x27c]
push str.ONLINEFLAG
cmp eax, 1
jne 0x46aaff
xor eax, eax
mov word [ebp - 0x27c], ax
call fcn.00406400
push 0
lea eax, [ebp - 0x27c]
lea edi, [ebx + 0xc]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040a350
mov byte [ebp - 4], 0
cmp dword [ebp - 0x268], 8
jb 0x46aac8
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
push 0xd
xor eax, eax
push str.CD_ONLINEFLAG
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00406400
mov byte [ebp - 4], 3
push 1
jmp 0x46ab74
xor eax, eax
mov word [ebp - 0x27c], ax
call fcn.00406400
push 1
lea eax, [ebp - 0x27c]
lea edi, [ebx + 0xc]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040a350
mov byte [ebp - 4], 0
cmp dword [ebp - 0x268], 8
jb 0x46ab3f
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
push 0xd
xor eax, eax
push str.CD_ONLINEFLAG
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00406400
mov byte [ebp - 4], 5
push 0
lea eax, [ebp - 0x27c]
push eax
mov ecx, edi
call fcn.0040a350
mov byte [ebp - 4], 0
cmp dword [ebp - 0x268], 8
jb 0x46ab9d
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
push 0
lea eax, [ebp - 0x244]
push eax
mov dword [ebp - 0x244], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
push 0xe
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
lea ecx, [ebp - 0x27c]
push str.NO_WEBCONECTED
test eax, eax
jne 0x46abef
mov word [ebp - 0x27c], ax
call fcn.00406400
mov byte [ebp - 4], 6
push 1
jmp 0x46ac03
xor eax, eax
mov word [ebp - 0x27c], ax
call fcn.00406400
mov byte [ebp - 4], 7
push 0
lea eax, [ebp - 0x27c]
push eax
mov ecx, edi
call fcn.0040a350
mov byte [ebp - 4], 0
cmp dword [ebp - 0x268], 8
jb 0x46ac2c
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
mov ecx, ebx
call fcn.0046b5a0
test eax, eax
jne 0x46acf4
push 0xe
push str.NO_WEBCONECTED
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], eax
mov word [ebp - 0x27c], ax
call fcn.00406400
push 1
lea eax, [ebp - 0x27c]
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.0040a350
mov byte [ebp - 4], 0
cmp dword [ebp - 0x268], 8
jb 0x46ac93
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
push 0xa
xor eax, eax
push str.ONLINEFLAG
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00406400
push 1
lea eax, [ebp - 0x27c]
push eax
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.0040a350
cmp dword [ebp - 0x268], 8
jb 0x46aced
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
xor esi, esi
jmp 0x46b158
push 0x16
xor eax, eax
push str.SOFTWARECANONMSETUP4
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00406400
push 0x17
push str.InstalledDeviceCanon
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xa
call fcn.004062d0
push 4
xor eax, eax
push str.NAME
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00406400
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x294]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.00409910
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xc
call fcn.004061c0
cmp dword [ebp - 0x280], 8
jb 0x46adac
push dword [ebp - 0x294]
call fcn.0049500b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x268], 8
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
jb 0x46ade4
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
push 0x14
xor eax, eax
push str.INSTALLED_DEVICE_REG
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00406400
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 0xd
call fcn.00409f70
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x268], 8
jb 0x46ae48
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
mov ecx, ebx
call fcn.0046c550
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
push esi
mov ecx, ebx
call fcn.0046fc90
mov ecx, ebx
push esi
call fcn.0046fee0
xor eax, eax
push 6
push str.REBOOT
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00406400
push 0
lea eax, [ebp - 0x27c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.0040a350
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x268], 8
jb 0x46aec6
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.005bb1c0
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp - 0x248]
lea eax, [ebp - 0x210]
push dword [ebp - 0x24c]
push 0x63db84
push 0xffffffffffffffff
push pe_nt_image_headers32
push eax
call fcn.005b8769
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
cmp word [ebp - 0x210], ax
jne 0x46af42
xor ecx, ecx
jmp 0x46af5f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
jmp 0x46af50
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46af50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x294]
call fcn.00406400
mov byte [ebp - 4], 0xf
push 0xb
xor eax, eax
push str.MS_INSTDATE
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00406400
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x27c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.00409f70
cmp dword [ebp - 0x268], 8
jb 0x46afd5
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x280], 8
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
jb 0x46b00d
push dword [ebp - 0x294]
call fcn.0049500b
add esp, 4
push 3
xor eax, eax
push 0x624350
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00406400
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 0x11
call fcn.00409910
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x268], 8
jb 0x46b071
push dword [ebp - 0x27c]
call fcn.0049500b
add esp, 4
xor eax, eax
push 0xe
push str.INIT_MSETUPLOG
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], eax
mov word [ebp - 0x294], ax
call fcn.00406400
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 0x14
mov ecx, dword [0x74e2f0]
push eax
call fcn.00461e40
cmp dword [ebp - 0x280], 8
jb 0x46b0eb
push dword [ebp - 0x294]
call fcn.0049500b
add esp, 4
cmp dword [ebp - 0x250], 8
mov esi, 1
jb 0x46b107
push dword [ebp - 0x264]
call fcn.0049500b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x22c], 8
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], ax
jb 0x46b13b
push dword [ebp - 0x240]
call fcn.0049500b
add esp, 4
xor eax, eax
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
cmp dword [ebp - 0x214], 8
jb 0x46b16f
push dword [ebp - 0x228]
call fcn.0049500b
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret