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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0a69
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x6ac30c]
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 dword [ebp - 0x2b4], ecx
xor esi, esi
push 0xffffffffffffffff
push esi
lea eax, [ebp + 8]
mov ebx, 0xf
push eax
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], esi
mov byte [ebp - 0x14c], 0
call fcn.0040bf50
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], esi
mov byte [ebp - 0x130], 0
push 4
push str..
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 2
call fcn.0044ca30
mov eax, dword [ebp - 0x14c]
mov edi, 0x10
cmp dword [ebp - 0x138], edi
jae 0x54d295
lea eax, [ebp - 0x14c]
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2b0], eax
cmp eax, 0xffffffff
jne 0x54d31a
cmp dword [ebp - 0x11c], edi
jb 0x54d2c5
mov edx, dword [ebp - 0x130]
push edx
call fcn.00599ae9
add esp, 4
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], esi
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x138], edi
jb 0x54d2ef
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00599ae9
add esp, 4
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], esi
mov byte [ebp - 0x14c], 0
cmp dword [ebp + 0x1c], edi
jb 0x54d313
mov ecx, dword [ebp + 8]
push ecx
call fcn.00599ae9
add esp, 4
xor eax, eax
jmp 0x54d648
mov bl, byte [ebp - 0x2a9]
push 0xffffffffffffffff
push esi
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x14c]
call fcn.0040bf50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x27c], 0x2e
je 0x54d57c
mov eax, dword [ebp - 0x2a8]
cmp eax, 0x2010
je 0x54d3e9
cmp eax, edi
je 0x54d3e9
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x130]
call fcn.0040bf50
push 1
push 0x5cee60
lea ecx, [ebp - 0x130]
call fcn.0044ca30
lea eax, [ebp - 0x27c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54d390
sub eax, edx
push eax
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x130]
call fcn.0044ca30
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], edi
jae 0x54d3c0
lea eax, [ebp - 0x130]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], edi
jae 0x54d3dd
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x54d577
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x138], edi
jae 0x54d3fd
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 0x13c]
cmp byte [eax + edx - 1], 0x5c
jne 0x54d4f3
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x14c]
mov ebx, 0xf
push eax
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x158], esi
mov byte [ebp - 0x168], 0
call fcn.0040bf50
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54d448
sub eax, edx
push eax
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x168]
call fcn.0044ca30
push 1
push 0x5cee60
lea ecx, [ebp - 0x168]
call fcn.0044ca30
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x154], edi
jae 0x54d48a
lea eax, [ebp - 0x168]
push eax
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x10], esi
lea eax, [ebp - 0x114]
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x2b8], esp
mov byte [ecx], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x54d4b5
sub eax, esi
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040c070
mov ecx, dword [ebp - 0x2b4]
call fcn.0054d1f0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x154], edi
jb 0x54d4f1
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.00599ae9
add esp, 4
xor esi, esi
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x130]
call fcn.0040bf50
push 1
push 0x5cee60
lea ecx, [ebp - 0x130]
call fcn.0044ca30
lea eax, [ebp - 0x27c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54d523
sub eax, edx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x130]
call fcn.0044ca30
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], edi
jae 0x54d553
lea eax, [ebp - 0x130]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], edi
jae 0x54d570
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
mov edx, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x2a8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x54d320
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x54d5c0
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x138], edi
jae 0x54d5b7
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov bl, 1
mov eax, dword [ebp - 0x2b0]
cmp eax, esi
je 0x54d5d1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx esi, bl
cmp dword [ebp - 0x11c], edi
jb 0x54d5eb
mov eax, dword [ebp - 0x130]
push eax
call fcn.00599ae9
add esp, 4
mov ebx, 0xf
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x138], edi
jb 0x54d61e
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00599ae9
add esp, 4
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x14c], 0
cmp dword [ebp + 0x1c], edi
jb 0x54d646
mov edx, dword [ebp + 8]
push edx
call fcn.00599ae9
add esp, 4
mov eax, esi
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.00599821
mov esp, ebp
pop ebp
ret 0x1c