Function at 0x4e8790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9acc
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x608554]
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, ecx
push ecx
push str.CBaseInfoPrinterEx::BackupBasicPrinterInfo
lea ecx, [ebp - 0x280]
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x4e881e
test byte [esi + 0x1c], 1
je 0x4e881e
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5daec4
mov ecx, 0x1a
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x210]
push 0x200
push edi
push eax
mov dword [ebp - 0x284], edi
call fcn.00571c00
mov eax, dword [0x6184f0]
add esp, 0xc
mov eax, dword [eax + 8]
cmp dword [eax + 0x3a4], edi
je 0x4e8ce6
lea esi, [ebx + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e888b
push str.w_ccsUNICODE
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], edi
push esi
push eax
call fcn.0057f9ca
mov eax, dword [ebp - 0x288]
add esp, 0xc
test eax, eax
je 0x4e888b
push eax
call fcn.0057fa93
add esp, 4
lea eax, [ebp - 0x284]
mov ecx, ebx
push eax
push 2
call fcn.004ecf30
mov edi, eax
test edi, edi
jne 0x4e8ce0
lea eax, [ebp - 0x284]
mov ecx, ebx
push eax
push 3
call fcn.004ecf30
mov edi, eax
test edi, edi
jne 0x4e8ce0
lea eax, [ebp - 0x284]
mov ecx, ebx
push eax
push 1
call fcn.004ecf30
mov edi, eax
test edi, edi
jne 0x4e8ce0
lea eax, [ebp - 0x284]
mov ecx, ebx
push eax
push edi
call fcn.004ecf30
mov edi, eax
test edi, edi
jne 0x4e8ce0
mov eax, dword [0x6184f0]
push ecx
push str.CBaseInfoResBasicIni::Write_InstInfo_FileVersion
lea ecx, [ebp - 0x248]
mov ebx, dword [eax + 0x2c]
call fcn.0040a480
mov byte [ebp - 4], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e894d
test byte [ecx + 0x1c], 1
je 0x4e894d
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5db828
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [edi + 0xa]
call fcn.00401840
add esp, 0xc
push 0x10000
push 0x5ceb18
push str.InstallInfo
mov ecx, ebx
xor esi, esi
call fcn.00408910
test eax, eax
jne 0x4e8978
mov esi, 0x80010007
mov dword [0x6183ec], 7
mov byte [ebp - 0x244], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e89c0
test byte [ecx + 0x1c], 1
je 0x4e89c0
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5db828
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xb
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.0040a570
lea ecx, [ebp - 0x288]
call fcn.00475e00
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 2
push eax
push 0x100
lea ecx, [ebp - 0x288]
call fcn.004775d0
mov eax, dword [0x6184f0]
push ecx
push str.CBaseInfoResBasicIni::Write_InstInfo_PDLProductVersion
lea ecx, [ebp - 0x248]
mov ebx, dword [eax + 0x2c]
call fcn.0040a480
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e8a4e
test byte [ecx + 0x1c], 1
je 0x4e8a4e
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5db828
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xe
call fcn.00401840
add esp, 0xc
lea eax, [ebx + 4]
xor esi, esi
cmp dword [eax + 0x14], 8
jb 0x4e8a5b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x5db914
push str.InstallInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x4e8a86
mov esi, 0x80010007
mov dword [0x6183ec], 7
mov byte [ebp - 0x244], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e8ace
test byte [ecx + 0x1c], 1
je 0x4e8ace
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5db828
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xf
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x248]
call fcn.0040a570
mov eax, dword [0x6184f0]
push ecx
push str.CBaseInfoResBasicIni::Write_InstInfo_PrinterNum
lea ecx, [ebp - 0x248]
mov ebx, dword [eax + 0x2c]
call fcn.0040a480
mov byte [ebp - 4], 3
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e8b36
test byte [ecx + 0x1c], 1
je 0x4e8b36
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5db828
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x12
call fcn.00401840
add esp, 0xc
push dword [ebp - 0x284]
mov ecx, ebx
xor esi, esi
push str.PrinterNum
push str.InstallInfo
call fcn.00408910
test eax, eax
jne 0x4e8b62
mov esi, 0x80010007
mov dword [0x6183ec], 7
mov byte [ebp - 0x244], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e8baa
test byte [ecx + 0x1c], 1
je 0x4e8baa
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5db828
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x13
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.0040a570
mov ecx, dword [0x6184f0]
push 0xa
mov ecx, dword [ecx + 0x2c]
call fcn.004f8c20
mov eax, dword [0x6184f0]
push ecx
push str.CBaseInfoResBasicIni::Write_InstInfo_SilentMode
lea ecx, [ebp - 0x248]
mov ebx, dword [eax + 0x2c]
mov eax, dword [0x618500]
mov dword [ebp - 0x284], eax
call fcn.0040a480
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x4e8c2d
test byte [edx + 0x1c], 1
je 0x4e8c2d
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov ecx, 0x1a
cmovae eax, dword [0x608f54]
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x5db828
call fcn.00401840
add esp, 0xc
xor esi, esi
lea eax, [ebx + 4]
cmp dword [ebp - 0x284], esi
je 0x4e8c4a
cmp dword [eax + 0x14], 8
jb 0x4e8c42
mov eax, dword [eax]
push eax
push 0x5c7da0
jmp 0x4e8c58
cmp dword [eax + 0x14], 8
jb 0x4e8c52
mov eax, dword [eax]
push eax
push 0x5c7d38
mov eax, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.SilentMode
push str.InstallInfo
call eax
neg eax
sbb eax, eax
neg eax
test eax, eax
jne 0x4e8c82
mov esi, 0x80010007
mov dword [0x6183ec], 7
mov byte [ebp - 0x244], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e8cca
test byte [ecx + 0x1c], 1
je 0x4e8cca
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5db828
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1b
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x248]
call fcn.0040a570
lea ecx, [ebp - 0x288]
call fcn.00475ed0
mov esi, dword [0x608f30]
mov byte [ebp - 0x27c], 1
cmp esi, 0x608f30
je 0x4e8d28
test byte [esi + 0x1c], 1
je 0x4e8d28
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5daec4
push eax
push dword [esi + 0x14]
mov ecx, 0x1b
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x280]
call fcn.0040a570
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 - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret