Function at 0x101ce78
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 0x101d07f
cmp dword [ebp + 0xc], ebx
je 0x101d07f
cmp dword [ebp + 0x1c], ebx
je 0x101d07f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101cebd
push dword [ebp + 0xc]
call fcn.010153f7
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.0101965b
test dword [ebp - 0x10], 0x10000
je 0x101cee6
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 0x101d014
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x101cf50
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 0x101cfd5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x101cfd5
push ebx
push ebx
push dword [0x1049a84]
push dword [0x1049a80]
push dword [ebp - 4]
call edi
test eax, eax
je 0x101cfd5
mov dword [ebp - 0xc], 1
cmp esi, ebx
je 0x101cffe
test dword [ebp - 0x10], 0x1000000
je 0x101cffe
test dword [ebp + 0x14], 0x4000100
jne 0x101cffe
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 0x101cfcf
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 0x101cffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x101cfec
and eax, 0xffff
or eax, 0x80070000
push 0x114d
push 0x10033f4
push eax
push 0x10033cc
jmp 0x101d040
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.01015b6e
jmp 0x101d04d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x20], ebx
je 0x101d06a
cmp eax, ebx
jle 0x101d030
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.01015538
cmp dword [ebp - 0xc], ebx
jne 0x101d06a
cmp dword [ebp - 4], 0xffffffff
je 0x101d06a
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 0x101d07a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
jmp 0x101d089
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x1c