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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ca1d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x432748]
call fcn.0043edf8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ca1aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c9df0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jg 0x4ca05a
call fcn.00406660
jmp 0x4ca1b1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4ca189
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
lea eax, [ebp - 0x28]
call fcn.00407abc
mov eax, dword [ebp - 0x28]
mov dl, 1
call fcn.0041c318
test al, al
je 0x4ca17d
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
lea eax, [ebp - 0x30]
call fcn.00407abc
mov eax, dword [ebp - 0x30]
xor edx, edx
call fcn.004c365c
fstp qword [ebp - 0x3c]
wait
call fcn.0041e198
fsub qword [ebp - 0x3c]
mov eax, dword [ebp - 4]
fild dword [eax + 0x44]
fcompp
wait
fnstsw ax
sahf
jae 0x4ca17d
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
lea eax, [ebp - 0x40]
call fcn.00407abc
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.00407880
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x4ca17d
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
call fcn.00407880
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4ca174
test byte [ebp - 0x1b], 4
je 0x4ca174
test byte [ebp - 0x1c], 0x10
je 0x4ca174
mov eax, dword [ebp - 0x14]
call fcn.00407880
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
jmp 0x4ca17d
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetLastError
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x4ca076
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca1b1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
call fcn.00405414
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca1e0
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00406e7c
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00406e7c
ret