Function at 0x405f60
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
push ebx
push ebx
push 1
push ebx
push ebx
call sub.winspool.drv_GetPrintProcessorDirectoryW
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
call sub.mfc42u.dll_operatornew
mov esi, eax
mov eax, dword [ebp - 0x14]
add esp, 4
lea edx, [ebp - 0x14]
inc eax
push edx
push eax
push esi
push 1
push ebx
push ebx
call sub.winspool.drv_GetPrintProcessorDirectoryW
lea ecx, [ebp - 0x23c]
push esi
push ecx
call dword [sym.imp.msvcrt.dll_wcscpy]
push esi
call sub.mfc42u.dll_operatordelete
lea edx, [ebp - 0x23c]
push 0x40dea4
push edx
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x14
lea ecx, [ebp - 0x28]
call sub.mfc42u.dll_CStringArray::CStringArray
mov edi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
lea eax, [ebp - 0x23c]
push eax
mov dword [ebp - 4], ebx
call edi
cmp eax, 0xffffffff
je 0x4060ec
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x4060ec
lea edx, [ebp - 0x28]
push edx
push 1
call fcn.00404950
mov eax, dword [ebp - 0x20]
add esp, 8
xor esi, esi
cmp eax, ebx
jle 0x40604b
mov eax, dword [ebp - 0x24]
push ebx
mov eax, dword [eax + esi*4]
push eax
call fcn.00405b20
add esp, 8
test eax, eax
je 0x406087
mov eax, dword [ebp - 0x20]
inc esi
cmp esi, eax
jl 0x40602f
call fcn.00404b00
test al, al
je 0x4060ec
mov ecx, dword [0x40dcb8]
push ecx
push ebx
push ebx
call sub.winspool.drv_DeletePrintProcessorW
test eax, eax
jne 0x4060ac
call fcn.00405e80
test al, al
je 0x4060b9
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileW]
call fcn.00405d70
jmp 0x4060b9
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409224
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea ecx, [ebp - 0x23c]
push ecx
call edi
cmp eax, 0xffffffff
je 0x4060ec
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409224
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x23c]
push 0x1001
push edx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call sub.mfc42u.dll_CFile::CFile
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call sub.mfc42u.dll_CFile::Write
lea ecx, [ebp - 0x38]
call sub.mfc42u.dll_CFile::Close
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00409158
lea edx, [ebp - 0x23c]
mov dword [ebp - 4], ebx
push edx
call edi
or esi, 0xffffffff
cmp eax, esi
jne 0x406160
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.00409224
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x40dcb8]
push eax
push 0x40de88
push ebx
push ebx
call sub.winspool.drv_AddPrintProcessorW
test eax, eax
jne 0x4061a1
push 6
call fcn.00404eb0
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.00409224
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp eax, ebx
jle 0x4061c3
mov ecx, dword [ebp - 0x24]
push 1
mov eax, dword [ecx + esi*4]
push eax
call fcn.00405b20
mov eax, dword [ebp - 0x20]
add esp, 8
inc esi
cmp esi, eax
jl 0x4061aa
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409224
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret