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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9246
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x100db3fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1001417c
xor eax, eax
jmp 0x1001448a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10014175
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014190
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x10014175
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x674], 1
push 0
push eax
call fcn.10076570
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10076570
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
add esp, 0x18
push edi
push eax
call ebx
push str..
lea eax, [ebp - 0x420]
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 0xffffffff
je 0x10014212
test al, 1
je 0x10014212
and eax, 0xfffffffe
push eax
push edi
call esi
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x680], eax
cmp eax, 0xffffffff
je 0x1001447b
lea ecx, [ebp - 0x670]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1001446f
nop dword [eax + eax]
test byte [ebp - 0x670], 0x10
je 0x100142d4
cmp word [ebp - 0x644], 0x2e
jne 0x10014287
mov ax, word [ebp - 0x642]
test ax, ax
je 0x10014454
cmp ax, 0x2e
jne 0x10014287
cmp word [ebp - 0x640], 0
je 0x10014454
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10076570
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push eax
call ebx
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
call fcn.10014140
add esp, 8
and dword [ebp - 0x674], eax
jmp 0x10014454
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10076570
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push eax
call ebx
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10014327
test al, 1
je 0x10014327
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10014454
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10014454
push 0x80
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x10014378
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10014454
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100143a5
test al, 0x10
je 0x100143a5
lea eax, [ebp - 0x218]
push eax
call fcn.10016700
add esp, 4
test eax, eax
jne 0x10014454
cmp dword [ebp + 0xc], 0
je 0x10014454
lea ecx, [ebp - 0x67c]
call fcn.10002a90
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x678]
call fcn.10003600
lea eax, [ebp - 0x67c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.10013d20
mov edx, dword [ebp - 0x678]
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10014411
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
test esi, esi
mov esi, dword [ebp - 0x67c]
push 0
je 0x10014422
push esi
jmp 0x10014429
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001444e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10014250
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.10016700
add esp, 4
and eax, dword [ebp - 0x674]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret