Function at 0x472930
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
push 0xffffffffffffffff
push 0x4cade7
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x502054]
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 - 0x270], ecx
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
push str..
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x274]
push ecx
push eax
call fcn.004697e0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4729c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
je 0x472b97
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop word [eax + eax]
mov ecx, 0x4ee094
lea eax, [ebp - 0x234]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x472a16
test dx, dx
je 0x472a12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x472a16
add eax, 4
add ecx, 4
test dx, dx
jne 0x4729f0
xor eax, eax
jmp 0x472a1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x472b70
mov eax, 0x4ee098
lea ecx, [ebp - 0x234]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x472a56
test dx, dx
je 0x472a52
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x472a56
add ecx, 4
add eax, 4
test dx, dx
jne 0x472a30
xor eax, eax
jmp 0x472a5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x472b70
push 0x4ec208
push dword [ebp - 0x270]
lea eax, [ebp - 0x278]
push eax
call fcn.004697e0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004697e0
add esp, 0x18
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x278]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472aba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x260], 0x10
je 0x472aed
push dword [ebp - 0x268]
mov dl, 1
lea ecx, [ebp - 0x264]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push esi
call fcn.00472930
add esp, 0x14
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test bl, bl
je 0x472b04
mov eax, dword [ebp - 0x268]
push dword [eax]
push dword [ebp - 0x264]
call fcn.00467e60
push 0x80
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x264]
call edi
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x472b4b
mov ecx, dword [ebp - 0x264]
call fcn.00472240
test al, al
je 0x472b4b
push dword [ebp - 0x264]
call edi
test eax, eax
je 0x472b4b
mov byte [esi], 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472b70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4729e0
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x270]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
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.004a9913
mov esp, ebp
pop ebp
ret