Function at 0x101cd97
Capabilities:
Check if file exists
Clear file content
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], ebx
je 0x101cf9e
cmp dword [ebp + 0xc], ebx
je 0x101cf9e
cmp dword [ebp + 0x1c], ebx
je 0x101cf9e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101cddc
push dword [ebp + 0xc]
call fcn.01015316
or dword [ebp + 0x14], 0x2200020
push esi
push edi
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, 0xc0110100
call fcn.0101957a
test dword [ebp - 0x10], 0x10000
je 0x101ce05
mov esi, 0xc11d0100
push ebx
push dword [ebp + 0x14]
push 2
push ebx
push 7
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x101cf33
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x101ce6f
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebx
push ebx
push dword [esi + 4]
push dword [esi]
push eax
call edi
test eax, eax
je 0x101cef4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x101cef4
push ebx
push ebx
push dword [0x1049a84]
push dword [0x1049a80]
push dword [ebp - 4]
call edi
test eax, eax
je 0x101cef4
mov dword [ebp - 0xc], 1
cmp esi, ebx
je 0x101cf1d
test dword [ebp - 0x10], 0x1000000
je 0x101cf1d
test dword [ebp + 0x14], 0x4000100
jne 0x101cf1d
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x900c4
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x101ceee
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0x980c8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x101cf1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x101cf0b
and eax, 0xffff
or eax, 0x80070000
push 0x114d
push 0x10033f4
push eax
push 0x10033cc
jmp 0x101cf5f
push dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
push eax
mov dword [ecx], eax
call fcn.01015a8d
jmp 0x101cf6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x20], ebx
je 0x101cf89
cmp eax, ebx
jle 0x101cf4f
and eax, 0xffff
or eax, 0x80070000
push 0x1157
push 0x10033f4
push eax
push 0x1002e18
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
call fcn.01015457
cmp dword [ebp - 0xc], ebx
jne 0x101cf89
cmp dword [ebp - 4], 0xffffffff
je 0x101cf89
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
cmp dword [ebp - 8], ebx
je 0x101cf99
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
jmp 0x101cfa8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x1c