Function at 0x452d60
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f1ec
mov eax, dword fs:[0]
push eax
mov eax, 0x2398
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.InstallDiasAndGetDevInfo::ProcDIASInstall
lea ecx, [ebp - 0x2370]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x452de9
test byte [ecx + 0x1c], 1
je 0x452de9
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ccde0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1f
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0xb38]
mov dword [ebp - 0x2378], 0
push 0
push eax
call fcn.00571c00
push 0x80
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.00571c00
push 0x80
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00571c00
push 0x800
xorps xmm0, xmm0
lea eax, [ebp - 0x1338]
push 0
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x1b38]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x338]
push 0
push eax
call fcn.00571c00
add esp, 0x48
lea eax, [ebp - 0x2338]
push 0x800
push 0
push eax
call fcn.00571c00
add esp, 0xc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x453502
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x237c], eax
push 0xb7
lea ecx, [ebp - 0x237c]
mov byte [ebp - 4], 1
call fcn.00403020
mov ecx, dword [0x6184f8]
push 0x32
push 0x3f1
call fcn.004b2fb0
mov esi, dword [ebp - 0x237c]
mov ecx, dword [0x6184f8]
push esi
push 0x3f1
call fcn.004b3300
mov ecx, dword [0x6184f8]
push 0
push 0x3f1
call fcn.004b3160
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xb38]
push eax
push str.TEMPPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.InsDrv.ini
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xb38]
push eax
push 0x40
lea eax, [ebp - 0xb0]
push eax
push 0x5c6930
push str.Product
push str.Installer_Info
call edi
lea eax, [ebp - 0xb38]
push eax
push 0x40
lea eax, [ebp - 0x130]
push eax
push 0x5c6930
push str.Version
push str.Installer_Info
call edi
lea eax, [ebp - 0xb38]
push eax
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x5c7da0
push str.ServiceStart
push str.DIAS
call edi
push 0x5c7d38
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
lea eax, [ebp - 0x30]
jne 0x452fb3
push 0x5c7d38
jmp 0x452fb8
push 0x5c7da0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1338]
push eax
push str.DIASREGISTICF
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4530fa
test byte [ecx + 0x1c], 4
je 0x45302a
cmp dword [0x608f68], 8
lea edx, [ebp - 0xb0]
push edx
mov eax, 0x608f54
mov edx, 0x5ccde0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x20
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
cmp ecx, 0x608f30
je 0x4530fa
test byte [ecx + 0x1c], 4
je 0x453075
cmp dword [0x608f68], 8
lea edx, [ebp - 0x130]
push edx
mov eax, 0x608f54
mov edx, 0x5ccde0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x21
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
cmp ecx, 0x608f30
je 0x4530fa
test byte [ecx + 0x1c], 4
je 0x4530b9
cmp dword [0x608f68], 8
lea edx, [ebp - 0x30]
push edx
mov eax, 0x608f54
mov edx, 0x5ccde0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x22
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
cmp ecx, 0x608f30
je 0x4530fa
test byte [ecx + 0x1c], 4
je 0x4530fa
cmp dword [0x608f68], 8
lea edx, [ebp - 0x1338]
push edx
mov eax, 0x608f54
mov edx, 0x5ccde0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x23
call fcn.00405920
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
mov ecx, 0x618548
push eax
push str.DIASSetup.msi
call fcn.0047b3b0
mov edi, eax
test edi, edi
jne 0x453454
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453454
lea eax, [ebp - 0x1338]
push eax
push 0x5ccd34
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xb0]
push eax
push 0x5ccd38
push 0x5c79bc
push str.ALLUSERS_s_ADDLOCAL_s_V1__s__V2_s_V5_s_REBOOT_s_V7_s
lea eax, [ebp - 0x2338]
push 0x400
push eax
call fcn.0041e030
mov ecx, dword [0x6184f8]
add esp, 0x28
push 0x19
push 0x3f1
call fcn.004b3160
push edi
push 2
call dword [sym.imp.msi.dll_MsiSetPropertyW]
test eax, eax
je 0x453454
lea eax, [ebp - 0x2338]
push eax
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.msi.dll_MsiOpenDatabaseW]
test eax, eax
jne 0x453454
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1b38]
push eax
push str.DIASREGISTVERSION
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x453210
test byte [ecx + 0x1c], 4
je 0x453210
cmp dword [0x608f68], 8
lea edx, [ebp - 0x1b38]
push edx
mov eax, 0x608f54
mov edx, 0x5ccde0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [edi + 0x24]
call fcn.00405920
add esp, 0x10
push 0x5ccbd4
lea eax, [ebp - 0x1b38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea ecx, [ebp - 0x23a4]
test eax, eax
je 0x453356
call fcn.004066e0
lea ecx, [ebp - 0x23a4]
mov byte [ebp - 4], 2
call fcn.004068b0
lea eax, [ebp - 0x23a4]
push eax
push 0x20019
push 0
push str.SOFTWARECanonDIASSETUP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x453407
push eax
mov dword [ebp - 0x2374], eax
lea ecx, [ebp - 0x23a4]
lea eax, [ebp - 0x2374]
push eax
push str.DIASDone
call fcn.00406aa0
test eax, eax
jne 0x453407
mov dword [ebp - 0x2378], 1
mov ecx, dword [0x608f30]
mov edx, dword [ebp - 0x2374]
cmp ecx, 0x608f30
je 0x4532e7
test byte [ecx + 0x1c], 4
je 0x4532e7
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edx
cmovae eax, dword [0x608f54]
mov edx, 0x5ccde0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x25
call fcn.00405920
mov edx, dword [ebp - 0x2374]
add esp, 0x10
push str.Reboot
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x453335
push 0x5c7da0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x453407
push 0xb9
push dword [0x6184fc]
call fcn.00502d80
add esp, 8
mov dword [0x6183ec], 0x28
mov edi, 0x80010028
jmp 0x453407
mov eax, dword [0x6184f0]
push 0x5c79bc
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
add eax, 0x6814
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x453407
call fcn.004066e0
lea ecx, [ebp - 0x23a4]
mov byte [ebp - 4], 3
call fcn.004068b0
lea eax, [ebp - 0x23a4]
push eax
push 0x20019
push 0
push str.SOFTWARECanonDIASSETUPDIASUser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x453407
push eax
mov dword [ebp - 0x2374], eax
lea ecx, [ebp - 0x23a4]
lea eax, [ebp - 0x2374]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00406aa0
test eax, eax
jne 0x453407
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4533fd
test byte [ecx + 0x1c], 4
je 0x4533fd
push dword [ebp - 0x2374]
cmp dword [0x608f68], 8
lea edx, [ebp - 0xb0]
push edx
mov eax, 0x608f54
mov edx, 0x5ccde0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x26
call fcn.00430170
add esp, 0x14
mov dword [ebp - 0x2378], 1
lea ecx, [ebp - 0x23a4]
mov byte [ebp - 4], 1
call fcn.004067f0
cmp dword [ebp - 0x2378], 0
jne 0x453440
push 0xb8
push dword [0x6184fc]
call fcn.00502d80
mov edi, 0x80010028
mov dword [0x6183ec], 0x28
jmp 0x453473
mov ecx, dword [0x6184f8]
push 0x19
push 0x3f1
call fcn.004b3160
jmp 0x453476
push 0xb8
push dword [0x6184fc]
call fcn.00502d80
mov edi, 0x80010051
mov dword [0x6183ec], 0x51
add esp, 8
mov byte [ebp - 0x236c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4534be
test byte [ecx + 0x1c], 1
je 0x4534be
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5ccde0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x27
call fcn.004018a0
add esp, 0x10
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4534da
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2370]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013a0
int3