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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x860], edi
test edi, edi
je 0x10080f3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jg 0x10080f3
push edi
mov esi, 0x30c
push esi
lea eax, [ebp - 0x71c]
push eax
call fcn.0100734b
push 0x100295c
push esi
lea eax, [ebp - 0x71c]
push eax
call fcn.010073d2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1007f37
xor eax, eax
inc eax
jmp 0x10080f5
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x71c]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1007f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100803c
push 1
push dword [ebp - 0x860]
call fcn.01007c9d
pop ecx
pop ecx
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x71c]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100803c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x1002958
lea eax, [ebp - 0x830]
push eax
call edi
test eax, eax
je 0x1008023
push 0x1002954
lea eax, [ebp - 0x830]
push eax
call edi
test eax, eax
je 0x1008023
push dword [ebp - 0x860]
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0100734b
push 0x1001a24
push esi
lea eax, [ebp - 0x410]
push eax
call fcn.010073d2
lea eax, [ebp - 0x830]
push eax
push esi
lea eax, [ebp - 0x410]
push eax
call fcn.010073d2
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp + 0xc]
test al, 0x10
lea eax, [ebp - 0x410]
push eax
je 0x1008014
call fcn.01007ec3
test eax, eax
jmp 0x100801b
call fcn.01007db7
test al, al
pop ecx
pop ecx
je 0x10080f3
lea eax, [ebp - 0x85c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x1007f93
jmp 0x100805d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1007f2f
push dword [ebp - 0x860]
push 0x1002928
call fcn.0100d383
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test bl, bl
jne 0x1008081
push dword [ebp - 0x860]
call esi
test eax, eax
jne 0x100812f
push 1
push dword [ebp - 0x860]
call fcn.01007c9d
pop ecx
pop ecx
mov edi, eax
test bl, bl
jne 0x1008104
push dword [ebp - 0x860]
call esi
test eax, eax
jne 0x1008104
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
push eax
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
push esi
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x10080d9
push dword [ebp - 0x860]
push esi
push 0x10028f8
jmp 0x10080eb
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x860]
push 0x10028cc
call fcn.0100d383
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d419
leave
ret
test edi, edi
je 0x1008126
mov eax, 0x10028a4
test bl, bl
jne 0x1008116
mov eax, 0x1002884
push dword [ebp - 0x860]
push eax
call fcn.0100d383
pop ecx
pop ecx
jmp 0x10080f3
mov eax, 0x1002864
test bl, bl
jne 0x1008134
mov eax, 0x100284c
push dword [ebp - 0x860]
push eax
call fcn.0100d383
pop ecx
pop ecx
mov byte [0x101977a], 1
jmp 0x1007f2f