Function at 0x47fb18
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c4
mov eax, dword [0x61dc40]
xor eax, esp
mov dword [esp + 0x8c0], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [esp + 0x6c4], ax
xor esi, esi
lea eax, [esp + 0x6c6]
push esi
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 1
call fcn.00596530
push 0x5ee4c8
push ebx
push 0x5def50
mov ebx, 0x103
lea eax, [esp + 0x6d8]
push ebx
push eax
call fcn.0058f42f
add esp, 0x20
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x6c4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x47fbaf
xor eax, eax
jmp 0x47fe65
cmp dword [ebp + 0x14], esi
je 0x47fbcd
cmp dword [ebp + 0xc], esi
je 0x47fbbf
cmp dword [ebp + 0xc], 1
jne 0x47fbcd
push dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
call fcn.0047f9c0
pop ecx
xor eax, eax
push edi
mov word [esp + 0x4bc], ax
lea eax, [esp + 0x4be]
push esi
push eax
call fcn.00596530
add esp, 0xc
inc dword [0x6456d8]
mov eax, dword [0x6456d8]
push 0x32
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x47fc5c
push 1
push esi
push esi
push esi
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x47fc5c
cmp dword [esp + 0x48], 0x12
jne 0x47fc25
mov dword [esp + 0x18], 1
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
push esi
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x47fc16
cmp dword [esp + 0x18], esi
je 0x47fc5c
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, 0x5e23ec
lea eax, [esp + 0x8c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47fc8e
cmp dx, si
je 0x47fc8a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47fc8e
add eax, 4
add ecx, 4
cmp dx, si
jne 0x47fc68
xor eax, eax
jmp 0x47fc93
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x47fe16
mov ecx, 0x5ed394
lea eax, [esp + 0x8c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47fccd
cmp dx, si
je 0x47fcc9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47fccd
add eax, 4
add ecx, 4
cmp dx, si
jne 0x47fca7
xor eax, eax
jmp 0x47fcd2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x47fe16
xor eax, eax
push edi
mov word [esp + 0x2b4], ax
lea eax, [esp + 0x2b6]
push esi
push eax
call fcn.00596530
test byte [esp + 0x6c], 0x10
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x2c4]
je 0x47fd38
push 0x5eb400
push ebx
push eax
call fcn.0058f42f
push dword [ebp + 0x14]
lea eax, [esp + 0x2d4]
push dword [esp + 0x40]
push dword [ebp + 0xc]
push eax
call fcn.0047fb18
add esp, 0x30
jmp 0x47fe12
push 0x5def50
push ebx
push eax
call fcn.0058f42f
add esp, 0x20
cmp dword [ebp + 0xc], esi
je 0x47fd56
cmp dword [ebp + 0xc], 1
jne 0x47fe16
cmp dword [esp + 0x1c], esi
je 0x47fdb7
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0x208
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4bc]
push esi
push eax
call fcn.00596530
push dword [esp + 0x24]
lea eax, [esp + 0x4c8]
push 0x5ee3bc
push ebx
push eax
call fcn.0058f42f
add esp, 0x1c
cmp dword [esp + 0x18], esi
je 0x47fe16
push dword [esp + 0x1c]
lea eax, [esp + 0x4bc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x47fe16
cmp dword [ebp + 0x14], esi
je 0x47fe04
push 7
xor eax, eax
pop ecx
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2b0]
mov dword [esp + 0x2c], eax
mov eax, 0x454
mov word [esp + 0x34], ax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x3e], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x42], esi
mov dword [esp + 0x2c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, 0x206
jmp 0x47fe12
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47fbe9
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], esi
je 0x47fe42
cmp dword [ebp + 0xc], 2
jne 0x47fe61
push 0x20
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x14], esi
jne 0x47fe61
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x8cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058f3cf
mov esp, ebp
pop ebp
ret