Function at 0x472d70
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d5c46
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x63ae80]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x63ae80]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004021d1
push 0x5c
lea eax, [esp + 0x34]
mov dword [esp + 0x1a4], ebx
call fcn.0040c7b4
mov ecx, dword [esp + 0x40]
lea edx, [ecx - 1]
cmp edx, eax
je 0x472e7e
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
ja 0x472e07
push str.string_too_long
call fcn.005c6ae1
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
jbe 0x472e19
push str.string_too_long
call fcn.005c6ae1
mov eax, dword [esp + 0x44]
cmp eax, esi
jae 0x472e2e
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.004024eb
jmp 0x472e45
cmp esi, ebx
jne 0x472e4b
cmp eax, 0x10
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
jae 0x472e43
lea eax, [esp + 0x30]
mov byte [eax], bl
mov ecx, dword [esp + 0x40]
cmp esi, ebx
seta al
cmp al, bl
je 0x472e7e
mov eax, dword [esp + 0x30]
mov edx, 0x10
cmp dword [esp + 0x44], edx
jae 0x472e65
lea eax, [esp + 0x30]
mov byte [ecx + eax], 0x5c
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], edx
jae 0x472e7b
lea eax, [esp + 0x30]
mov byte [eax + esi], bl
push 0x6116a0
mov ebx, 3
lea eax, [esp + 0x34]
call fcn.0040409e
mov eax, dword [esp + 0x30]
mov ebx, 0x10
cmp dword [esp + 0x44], ebx
jae 0x472ea4
lea eax, [esp + 0x30]
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4730b6
lea ecx, [ecx]
lea ecx, [esp + 0x78]
mov eax, 0x6116a4
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x472ef0
test dl, dl
je 0x472eec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x472ef0
add eax, 2
add ecx, 2
test dl, dl
jne 0x472ed0
xor eax, eax
jmp 0x472ef5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x473085
lea ecx, [esp + 0x78]
mov eax, 0x6116a8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x472f26
test dl, dl
je 0x472f22
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x472f26
add eax, 2
add ecx, 2
test dl, dl
jne 0x472f06
xor eax, eax
jmp 0x472f2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x473085
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.004021d1
push 0x5c
lea eax, [esp + 0x18]
mov byte [esp + 0x1a4], 1
call fcn.0040c7b4
mov ecx, dword [esp + 0x24]
lea edx, [ecx - 1]
cmp edx, eax
je 0x472fef
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x472dfd
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x472dfd
mov eax, dword [esp + 0x28]
cmp eax, esi
jae 0x472fa3
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.004024eb
jmp 0x472fba
test esi, esi
jne 0x472fc0
cmp eax, ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], esi
jae 0x472fb7
lea eax, [esp + 0x14]
mov byte [eax], 0
mov ecx, dword [esp + 0x24]
test esi, esi
setne al
test al, al
je 0x472fef
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
jae 0x472fd5
lea eax, [esp + 0x14]
mov byte [eax + ecx], 0x5c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], esi
cmp dword [esp + 0x28], ebx
jae 0x472feb
lea eax, [esp + 0x14]
mov byte [eax + esi], 0
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472ff6
sub eax, edx
lea ecx, [esp + 0x78]
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.0040409e
mov al, byte [esp + 0x4c]
mov ebx, 0x10
test bl, al
je 0x47302b
lea edx, [esp + 0x14]
push edx
call fcn.00472d70
add esp, 4
jmp 0x47306a
test al, 1
je 0x473055
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov eax, esi
cmp ecx, ebx
jae 0x473043
lea eax, [esp + 0x14]
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], ebx
jae 0x473063
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x1a0], 0
cmp dword [esp + 0x28], ebx
jb 0x473085
mov eax, dword [esp + 0x14]
push eax
call fcn.004a4d8a
add esp, 4
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x472ec0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], ebx
jb 0x4730ad
mov eax, dword [edi]
jmp 0x4730af
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [esp + 0x44], ebx
jb 0x4730c9
mov edx, dword [esp + 0x30]
push edx
call fcn.004a4d8a
add esp, 4
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret