Function at 0x1006d0c0
Capabilities:
Clear file content
Delete file
Set file attributes

Disassembly:
sub esp, 0x30
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebp, edx
mov dword [esp + 0x10], eax
push esi
push edi
mov ebx, ecx
mov edi, dword [ebp + 0x10]
dec edi
neg edi
sbb edi, edi
add edi, 3
cmp byte [ebp + 0x14], 0
je 0x1006d207
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
or eax, ecx
mov dword [esp + 0x10], ecx
je 0x1006d207
push 0
push 0x80
push 2
push 0
push 3
push 0xc0010000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1006d207
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
push 0
push 0
push 0
push 0x900c4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1006d1e7
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
push 0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x10
lea eax, [esp + 0x3c]
push eax
push 0x980c8
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1006d1a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006d1e7
push 0
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1006d1e7
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10151433
add esp, 0x30
ret
test esi, esi
je 0x1006d200
push 1
lea eax, [esp + 0x23]
mov byte [esp + 0x23], 1
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 4]
neg ecx
push 0
sbb ecx, ecx
xor eax, eax
push 0x80
and ecx, 4
cmp dword [ebp], eax
push edi
push 0
setne al
or ecx, eax
push ecx
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006d34c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
je 0x1006d2fa
cmp edi, 0x7b
je 0x1006d2fa
cmp edi, 3
jne 0x1006d33d
cmp dword [ebp + 8], 0
je 0x1006d346
mov eax, dword [0x101c5980]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
movq qword [esp + 0x34], xmm0
push ebx
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.1000bc60
lea ecx, [esp + 0x34]
call fcn.10009b90
mov ebx, dword [esp + 0x34]
add esp, 0xc
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x1006d2e0
cmp ebx, dword [0x101c5980]
je 0x1006d2e0
push ebx
call fcn.10154f5a
add esp, 4
cmp esi, 0xffffffff
je 0x1006d33d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10151433
add esp, 0x30
ret
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1006d33d
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006d34c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x1006d346
mov edi, 0xa0000031
mov eax, dword [esp + 0x18]
mov dword [eax], edi
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x30
ret