Function at 0x456e40
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1a04]
mov eax, 0x1a04
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51fa30
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1a00], 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, dword [ebp + 0x1a0c]
mov dword [ebp - 0x20], eax
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x457271
cmp esi, edi
je 0x457271
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x456eb0
sub eax, edx
sar eax, 1
je 0x457271
push 0x800
push edi
lea ecx, [ebp]
push ecx
call fcn.004fd670
push esi
push str.InstallingComponents
push 0x535a74
lea edx, [ebp]
call fcn.00404380
push 4
push 4
lea edx, [ebp - 0x24]
push edx
push str.internal_cmd
mov eax, dword [ebx]
push eax
mov edx, esi
call fcn.004920e0
add esp, 0x2c
test eax, eax
jne 0x456f57
cmp dword [ebp - 0x24], edi
je 0x456f57
cmp dword [ebp + 0x1a10], edi
je 0x456f43
mov edi, 2
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
push 4
push 4
lea ecx, [ebp - 0x1c]
push ecx
push str.InstallStatus
mov edx, dword [ebx]
push edx
mov edx, esi
call fcn.004920e0
add esp, 0x14
test eax, eax
jne 0x456f46
cmp dword [ebp - 0x1c], 1
jne 0x456f46
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x34], edi
push 0x5814b0
lea eax, [ebp - 0x34]
push eax
call fcn.004fd5a3
push 0x800
push edi
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004fd670
add esp, 0xc
mov eax, dword [ebp + 0x1a10]
sub eax, 2
je 0x456f81
push str.Inst_Cmd
jmp 0x45703b
push 0x200
push edi
lea edx, [ebp + 0x1800]
push edx
call fcn.004fd670
add esp, 0xc
push str.Uninstall_Key
push esi
push ebx
mov eax, pe_nt_image_headers32
lea edx, [ebp + 0x1800]
call fcn.004051f0
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x45701c
lea eax, [ebp + 0x1800]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456fc0
sub eax, edx
sar eax, 1
je 0x45701c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14464]
push 1
push 0x800
lea ecx, [ebp + 0x1000]
push ecx
lea edx, [ebp + 0x1800]
push edx
push eax
mov edx, str.UninstallInfo
call fcn.004920e0
add esp, 0x14
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x45701c
push 0x800
push 0
lea eax, [ebp + 0x1000]
push eax
call fcn.004fd670
add esp, 0xc
lea eax, [ebp + 0x1000]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457025
sub eax, edx
sar eax, 1
jne 0x457052
push str.Uninst_Cmd
push esi
push ebx
mov eax, 0x400
lea edx, [ebp + 0x1000]
call fcn.004051f0
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x457067
mov dword [ebp - 0x38], edi
push 0x5814b0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004fd5a3
push 0x800
push 0
lea edx, [ebp + 0x800]
push edx
call fcn.004fd670
add esp, 0xc
lea eax, [ebp]
push eax
push 0x400
lea ecx, [ebp + 0x800]
push ecx
lea edx, [ebp + 0x1000]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14460]
call fcn.00480760
lea ecx, [ebp + 0x800]
call fcn.00495170
test al, al
jne 0x4570c6
mov dword [ebp - 0x30], 2
push 0x5814b0
lea ecx, [ebp - 0x30]
push ecx
call fcn.004fd5a3
push 0x800
push 0
lea edx, [ebp + 0x1000]
push edx
call fcn.004fd670
add esp, 0xc
push str.Class
push esi
push ebx
mov eax, 0x400
lea edx, [ebp + 0x1000]
call fcn.004051f0
test eax, eax
jne 0x4571f3
push str.Printer
lea eax, [ebp + 0x1000]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x457147
push str.Image
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x457147
push str.NonDevice
lea edx, [ebp + 0x1000]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x4571f3
push 0x800
push 0
lea eax, [ebp + 0x1000]
push eax
call fcn.004fd670
add esp, 0xc
push 0x53b8ec
push esi
push ebx
mov eax, 0x400
lea edx, [ebp + 0x1000]
call fcn.004051f0
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x457192
mov dword [ebp - 0x2c], 2
push 0x5814b0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004fd5a3
push 0x800
push 0
lea edx, [ebp + 0x800]
push edx
call fcn.004fd670
add esp, 0xc
lea eax, [ebp]
push eax
push 0x400
lea ecx, [ebp + 0x800]
push ecx
lea edx, [ebp + 0x1000]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14460]
call fcn.00480760
lea ecx, [ebp + 0x800]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4571f3
mov dword [ebp - 0x40], 2
push 0x5814b0
lea edx, [ebp - 0x40]
push edx
call fcn.004fd5a3
cmp dword [ebp + 0x1a10], 2
jne 0x457268
mov byte [ebp - 0x15], 0
xor edi, edi
mov dword [ebp - 0x1c], edi
push 4
push 4
lea eax, [ebp - 0x1c]
push eax
push str.InstallStatus
mov ecx, dword [ebx]
push ecx
mov edx, esi
call fcn.004920e0
add esp, 0x14
test eax, eax
jne 0x457229
cmp dword [ebp - 0x1c], 1
je 0x457250
mov dword [ebp - 0x1c], edi
push 4
push 4
lea edx, [ebp - 0x1c]
push edx
push str.Installed
mov eax, dword [ebx]
push eax
mov edx, esi
call fcn.004920e0
add esp, 0x14
test eax, eax
jne 0x457260
cmp dword [ebp - 0x1c], 1
jne 0x457260
mov byte [ebp - 0x15], 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x4572c2
mov edi, 0xd
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x4572c2
mov dword [ebp - 0x3c], 0x57
push 0x5814b0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004fd5a3
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4572bf
ret
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a00]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1a04
mov esp, ebp
pop ebp
ret 8