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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x75bc8d18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov esi, 0x30c
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
call fcn.759c5bb8
test al, al
je 0x75afaf10
push ebx
push esi
lea ecx, [ebp - 0x14]
call fcn.759c5bb8
test al, al
je 0x75afaf10
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.759b3cf5
test eax, eax
jl 0x75afaf10
push 0x75afb1d8
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.759b3d8c
test eax, eax
jl 0x75afaf10
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
jne 0x75afaf31
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x75afb120
lea ecx, [ebp - 0x14]
call fcn.759b1681
lea ecx, [ebp - 0x24]
call fcn.759b1681
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.759b1748
leave
ret
xor ebx, ebx
mov esi, 0x759b7ff8
mov ecx, 0x759f9eac
lea eax, [ebp - 0x248]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x75afaf69
cmp dx, bx
je 0x75afaf65
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x75afaf69
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x75afaf43
xor eax, eax
jmp 0x75afaf6e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x75afb090
mov ecx, 0x75a0aea8
lea eax, [ebp - 0x248]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x75afafa7
cmp dx, bx
je 0x75afafa3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x75afafa7
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x75afaf81
xor eax, eax
jmp 0x75afafac
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x75afb090
push dword [ebp - 0x278]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.759b3cf5
test eax, eax
jl 0x75afb090
push 0x759b4930
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.759b3d8c
test eax, eax
jl 0x75afb090
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.759b3d8c
test eax, eax
jl 0x75afb090
test byte [ebp - 0x274], 0x10
je 0x75afb036
cmp dword [0x75bc8ca8], ebx
je 0x75afb02b
push ebx
push ebx
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x14]
push 0x75afb190
push ebx
push ebx
push 0xa
call fcn.759c26bf
add esp, 0x30
push dword [ebp - 0x14]
call fcn.75afae69
pop ecx
jmp 0x75afb090
cmp dword [0x75bc8ca8], ebx
je 0x75afb059
push ebx
push ebx
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x14]
push 0x75afb148
push ebx
push ebx
push 0xa
call fcn.759c26bf
add esp, 0x30
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x75afb090
push ebx
push dword [ebp - 0x14]
call fcn.75b313fc
pop ecx
pop ecx
push ebx
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, ebx
je 0x75afb090
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x75afaf38
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x278]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
test eax, eax
jne 0x75afb109
push ebx
push dword [ebp - 0x278]
call fcn.75b313fc
pop ecx
pop ecx
push ebx
push dword [ebp - 0x278]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x278]
call esi
test eax, eax
jne 0x75afb0ff
cmp edi, ebx
je 0x75afb129
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x75afb129
cmp edi, ebx
je 0x75afb109
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x14]
call fcn.759b1681
lea ecx, [ebp - 0x24]
call fcn.759b1681
mov al, 1
jmp 0x75afaf22
call esi
cmp eax, 2
je 0x75afb140
xor bl, bl
lea ecx, [ebp - 0x14]
call fcn.759b1681
lea ecx, [ebp - 0x24]
call fcn.759b1681
mov al, bl
jmp 0x75afaf22
mov bl, 1
jmp 0x75afb129