Function at 0x4f2130
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a497b
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.0056e430
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 edi, dword [ebp + 0x10]
push ecx
push str.CBaseInfoPrinterEx::MakeBackUpDir
lea ecx, [ebp - 0x1048]
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x4f2209
test byte [esi + 0x1c], 1
je 0x4f21c3
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5daec4
mov ecx, 0x86
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
cmp esi, 0x608f30
je 0x4f2209
test byte [esi + 0x1c], 1
je 0x4f2209
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5daec4
push 0x104
push eax
push dword [esi + 0x14]
mov ecx, 0x87
push dword [esi + 0x10]
call fcn.00430650
mov esi, dword [0x608f30]
add esp, 0x14
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x1010]
push ebx
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00571c00
add esp, 0x18
test edi, edi
jne 0x4f224a
mov ebx, 0x80010001
mov dword [0x6183ec], 1
jmp 0x4f23ca
push 0x208
push 0
push edi
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1010]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.ProgramFilesFolder
call fcn.004f65f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1010]
push eax
push edi
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.Canon_
push edi
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4f22ae
cmp dword [ebp + 8], ebx
je 0x4f22ae
push 0
push edi
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.InstRestore
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f22d5
cmp dword [ebp + 8], ebx
je 0x4f22d5
push eax
push edi
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.005746e6
add esp, 0xc
lea eax, [ebp - 0x810]
push str.color_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f231e
push eax
lea eax, [ebp - 0x810]
push eax
call esi
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x810]
push eax
push str.RESTORE_COLOR_FOLDER
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
add eax, 0x8bc
cmp dword [eax + 0x14], 8
jb 0x4f234d
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f2369
cmp dword [ebp + 8], ebx
je 0x4f2369
push eax
push edi
call esi
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4f23aa
test byte [ecx + 0x1c], 4
je 0x4f23aa
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5daec4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x88
call fcn.00405920
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [0x608f30]
test eax, eax
jne 0x4f23ca
mov ebx, 0x80010009
mov dword [0x6183ec], 9
mov byte [ebp - 0x1044], 1
cmp esi, 0x608f30
je 0x4f240c
test byte [esi + 0x1c], 1
je 0x4f240c
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5daec4
push eax
push dword [esi + 0x14]
mov ecx, 0x89
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x1048]
call fcn.0040a570
mov eax, ebx
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 0xc