Function at 0x4e8340
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9a6c
mov eax, dword fs:[0]
push eax
sub esp, 0x288
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
mov dword [ebp - 0x28c], ebx
push ecx
push str.CBaseInfoPrinterEx::DeletePrinterInfoFile
lea ecx, [ebp - 0x288]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e83ce
test byte [ecx + 0x1c], 1
je 0x4e83ce
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5daec4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x18
call fcn.00401840
add esp, 0xc
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x290], 0
call fcn.0046a2f0
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004e81d0
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [ecx + 0x2c]
call fcn.004f8d40
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x4e8425
cmp eax, 0x3e8
je 0x4e8425
cmp eax, 0x270f
je 0x4e8425
cmp dword [ebp + 8], 1
jne 0x4e8704
lea eax, [ebx + 0x210]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4e8463
mov eax, dword [ebp - 0x28c]
push 0x20
add eax, 0x210
push eax
call esi
mov ecx, dword [ebp - 0x28c]
lea eax, [ecx + 0x210]
push eax
call edi
mov eax, dword [ebp - 0x28c]
add eax, 8
push eax
call ebx
test eax, eax
je 0x4e848d
mov eax, dword [ebp - 0x28c]
push 0x20
add eax, 8
push eax
call esi
mov ecx, dword [ebp - 0x28c]
lea eax, [ecx + 8]
push eax
call edi
mov eax, dword [0x6184f0]
push ecx
push str.CBaseInfoAddIn::DeleteRestoreFile
lea ecx, [ebp - 0x250]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x28c], eax
call fcn.0040a480
mov byte [ebp - 4], 2
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e84f0
test byte [ecx + 0x1c], 1
je 0x4e84f0
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d8b50
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x14
call fcn.00401840
add esp, 0xc
mov ecx, dword [ebp - 0x28c]
call fcn.004d3390
mov eax, dword [ebp - 0x28c]
add eax, 0x10
push eax
mov dword [ebp - 0x290], eax
call ebx
test eax, eax
je 0x4e8523
push 0x20
push dword [ebp - 0x290]
call esi
push dword [ebp - 0x290]
call edi
mov eax, dword [ebp - 0x28c]
add eax, 0x218
push eax
call ebx
test eax, eax
je 0x4e8553
mov eax, dword [ebp - 0x28c]
push 0x20
add eax, 0x218
push eax
call esi
mov eax, dword [ebp - 0x28c]
add eax, 0x218
push eax
call edi
mov eax, dword [ebp - 0x28c]
add eax, 0x420
push eax
call ebx
test eax, eax
je 0x4e8583
mov eax, dword [ebp - 0x28c]
push 0x20
add eax, 0x420
push eax
call esi
mov eax, dword [ebp - 0x28c]
add eax, 0x420
push eax
call edi
mov byte [ebp - 0x24c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e85cc
test byte [ecx + 0x1c], 1
je 0x4e85cc
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5d8b50
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x15
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.0040a570
mov eax, dword [0x6184f0]
push ecx
push str.CBaseInfoProperty::DeletePropertyInfoFile
lea ecx, [ebp - 0x250]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x28c], eax
call fcn.0040a480
mov byte [ebp - 4], 3
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x4e863e
test byte [edx + 0x1c], 1
je 0x4e863e
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov ecx, 0x18
cmovae eax, dword [0x608f54]
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x5db7e4
call fcn.00401840
add esp, 0xc
mov ecx, dword [ebp - 0x28c]
call fcn.004f8140
mov eax, dword [ebp - 0x28c]
add eax, 0xc
push eax
call ebx
test eax, eax
je 0x4e866a
mov ebx, dword [ebp - 0x28c]
push 0x20
add ebx, 0xc
push ebx
call esi
push ebx
call edi
mov byte [ebp - 0x24c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e86b3
test byte [ecx + 0x1c], 1
je 0x4e86b3
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5db7e4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x19
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.0040a570
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x218]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.RESTORE_COLOR_FOLDER
call fcn.004f65f0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x294]
call fcn.0046f570
mov byte [ebp - 0x284], 1
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x4e874d
test byte [esi + 0x1c], 1
je 0x4e874d
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5daec4
push eax
push dword [esi + 0x14]
mov ecx, 0x19
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x294]
call fcn.0046a3c0
lea ecx, [ebp - 0x288]
call fcn.0040a570
xor eax, eax
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 4