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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5daa82
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
lea ecx, [esp + 0x24]
push esi
push ecx
mov ebx, 0x698f40
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
call fcn.004176f0
add esp, 8
mov dword [esp + 0x298], 0
mov eax, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x298], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0040b950
cmp ebx, 0xffffffff
je 0x47dc60
mov ecx, 0x6996a4
lea eax, [esp + 0x60]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47da66
test dx, dx
je 0x47da62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47da66
add eax, 4
add ecx, 4
test dx, dx
jne 0x47da40
xor eax, eax
jmp 0x47da6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47dc45
mov ecx, 0x6996a8
lea eax, [esp + 0x60]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47daa6
test dx, dx
je 0x47daa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47daa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x47da80
xor eax, eax
jmp 0x47daab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47dc45
lea eax, [esp + 0x20]
push esi
push eax
mov ebx, 0x692fe8
call fcn.004176f0
mov dword [esp + 0x2a0], 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x70]
call fcn.004176f0
add esp, 0x10
mov byte [esp + 0x298], 3
lea ecx, [esp + 0x20]
call fcn.0040b950
test byte [esp + 0x34], 0x10
je 0x47db23
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
push edi
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0047d990
mov eax, dword [esp + 0x24]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x47dc29
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0x14], 0
je 0x47dbd1
mov eax, dword [edi]
push 1
sub esp, 0x1c
mov esi, esp
xor edi, edi
xor edx, edx
mov ecx, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x50], esp
mov word [esi + 4], dx
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x47db61
sub ecx, ebx
sar ecx, 1
push ecx
call fcn.0040d4e0
mov byte [esp + 0x2b8], 4
mov eax, dword [esp + 0x30]
sub esp, 0x1c
mov esi, esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
mov ecx, eax
mov dword [esp + 0x64], esp
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x47dba0
sub ecx, ebx
sar ecx, 1
push ecx
call fcn.0040d4e0
mov byte [esp + 0x2d4], 5
mov byte [esp + 0x2d4], 3
call fcn.00476000
mov edi, dword [esp + 0x54]
add esp, 0x3c
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47dc29
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
lea edx, [esp + 0x14]
push edx
push ecx
call fcn.0040b840
mov byte [esp + 0x29c], 6
mov byte [esp + 0x29c], 3
call fcn.00475ba0
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call esi
test eax, eax
je 0x47dc29
mov ecx, dword [esp + 0x14]
mov byte [ecx], 1
mov dword [esp + 0x298], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040b950
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47da34
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x47dc6f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret