Function at 0x1006836
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1a8c
call fcn.010095d0
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x100bffc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x1a88], ecx
mov esi, 0x104
push esi
lea ecx, [ebp - 0x414]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
xor edi, edi
push eax
mov dword [ebp - 0x1a8c], eax
mov dword [ebp - 0x1a7c], edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, edi
je 0x1006889
cmp eax, esi
jb 0x1006890
mov word [ebp - 0x414], di
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1006a57
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1006a4a
lea eax, [ebp - 0x1a74]
push eax
push 0x1003168
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1a84], eax
je 0x1006a4a
lea eax, [ebp - 0x1a78]
push eax
push 0x1003a7c
push 1
push edi
push 0x1003a8c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1006a3e
mov eax, dword [ebp - 0x1a78]
mov ecx, dword [eax]
lea edx, [ebp - 0x1a80]
push edx
push 0x1003a9c
push eax
call dword [ecx]
test eax, eax
jl 0x1006a32
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov eax, dword [ebp - 0x1a80]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x1a48]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x1006a0b
mov eax, dword [ebp - 0x1a78]
mov ecx, dword [eax]
push 0
push 0
push esi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x1006a0b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x1a8c]
call edi
test eax, eax
je 0x1006985
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x1006a0b
mov eax, dword [ebp - 0x1a78]
mov ecx, dword [eax]
push 0x800
lea edx, [ebp - 0x1824]
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x1006a0b
lea eax, [ebp - 0x1824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push dword [ebp - 0x1a88]
lea eax, [ebp - 0x1824]
push eax
call edi
test eax, eax
jne 0x1006a0b
push 0x80
lea eax, [ebp - 0x1a48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x1a48]
push eax
push ebx
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x824]
push eax
call fcn.01008979
lea eax, [ebp - 0x1a48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1006a0b
inc dword [ebp - 0x1a7c]
lea eax, [ebp - 0x1a74]
push eax
push dword [ebp - 0x1a84]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100691d
mov eax, dword [ebp - 0x1a80]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1a78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x1a84]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a7c]
pop edi
pop esi
pop ebx
call fcn.01009336
leave
ret 0xc