Function at 0x1000d880
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1010a702
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x10137920]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push esi
push edi
mov eax, dword [0x10137920]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [esp + 0x3c], cx
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
call fcn.1000b050
lea eax, [ebx + 0x20]
lea edi, [esp + 0x34]
mov dword [esp + 0x308], ebx
call fcn.1000be20
lea esi, [ebx + 8]
cmp dword [esp + 0x44], ebx
je 0x1000d98c
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x1000d911
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x1000d98c
push 0x10123328
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.10010100
add esp, 0xc
mov byte [esp + 0x308], 1
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x1000d94e
lea eax, [esp + 0x50]
lea edx, [esp + 0xa4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x1000d9b0
cmp dword [esp + 0x64], esi
jb 0x1000d979
mov eax, dword [esp + 0x50]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], cx
cmp dword [esp + 0x48], esi
jb 0x1000d99f
mov edx, dword [esp + 0x34]
push edx
call fcn.10065453
add esp, 4
xor al, al
jmp 0x1000dc03
lea eax, [esp + 0xd0]
push eax
push 0x10123334
call fcn.10068f48
add esp, 8
test eax, eax
je 0x1000dba2
lea ecx, [esp + 0xd0]
push ecx
push 0x10123338
call fcn.10068f48
add esp, 8
test eax, eax
je 0x1000dba2
lea edx, [esp + 0x88]
push edx
lea ebx, [esp + 0x38]
call fcn.100101f0
add esp, 4
lea ecx, [esp + 0xd0]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x314], 2
call fcn.100102a0
add esp, 0xc
mov byte [esp + 0x308], 4
cmp dword [esp + 0x9c], esi
jb 0x1000da3d
mov eax, dword [esp + 0x88]
push eax
call fcn.10065453
add esp, 4
mov eax, dword [esp + 0x18]
xor ebx, ebx
xor ecx, ecx
mov edi, 7
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], cx
cmp dword [esp + 0x2c], esi
jae 0x1000da6a
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1000da8e
mov ecx, dword [esp + 0x18]
and eax, 0xfffffffe
cmp dword [esp + 0x2c], esi
jae 0x1000da86
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0xa4], 0x10
mov edx, dword [esp + 0x18]
je 0x1000db1d
cmp dword [esp + 0x2c], esi
jae 0x1000daaa
lea edx, [esp + 0x18]
xor eax, eax
mov word [esp + 0x6c], ax
mov eax, edx
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000dac1
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x74]
call fcn.1000abb0
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x30c], 5
call fcn.1000d880
add esp, 4
cmp dword [esp + 0x80], esi
jb 0x1000db06
mov edx, dword [esp + 0x6c]
push edx
call fcn.10065453
add esp, 4
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], esi
jae 0x1000db14
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1000db87
cmp dword [esp + 0x2c], esi
jae 0x1000db27
lea edx, [esp + 0x18]
xor eax, eax
mov word [esp + 0x6c], ax
mov eax, edx
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000db40
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x74]
call fcn.1000abb0
lea ecx, [esp + 0x6c]
push 1
push ecx
mov byte [esp + 0x310], 6
call fcn.1000dc30
add esp, 8
cmp dword [esp + 0x80], esi
jb 0x1000db87
mov edx, dword [esp + 0x6c]
push edx
call fcn.10065453
add esp, 4
mov byte [esp + 0x308], 1
cmp dword [esp + 0x2c], esi
jb 0x1000dba2
mov eax, dword [esp + 0x18]
push eax
call fcn.10065453
add esp, 4
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xa4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000d9b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x64], esi
jb 0x1000dbd7
mov edx, dword [esp + 0x50]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
cmp dword [esp + 0x48], esi
jb 0x1000dc01
mov ecx, dword [esp + 0x34]
push ecx
call fcn.10065453
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.1006656c
mov esp, ebp
pop ebp
ret