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

Disassembly:
push 0x2b0
mov eax, 0x59d569
call fcn.0056ce95
mov eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040ad38
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
jne 0x4768e8
mov bl, 1
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0040b028
mov al, bl
call fcn.0056cf18
ret
mov eax, dword [ebp - 0x2c]
push 8
pop edi
cmp dword [ebp - 0x18], edi
jae 0x4768f6
lea eax, [ebp - 0x2c]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x47690e
push 0x5c2724
lea eax, [ebp - 0x2c]
push eax
call fcn.004090e2
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
jbe 0x47693f
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x476920
lea eax, [ebp - 0x2c]
cmp word [eax + ecx*2], 0x2f
jne 0x476939
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x476932
lea eax, [ebp - 0x2c]
push 0x5c
pop edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, dword [ebp - 0x1c]
jb 0x476915
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x64]
call fcn.0040905d
push 0x5da400
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.004090e2
push 0x250
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.00560d40
mov eax, dword [ebp - 0x64]
add esp, 0xc
cmp dword [ebp - 0x50], edi
jae 0x47697b
mov eax, esi
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b8], eax
cmp eax, 0xffffffff
jne 0x4769a7
push 1
xor edi, edi
lea esi, [ebp - 0x64]
call fcn.0040b028
xor bl, bl
jmp 0x4768d4
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x48]
call fcn.0040905d
lea eax, [ebp - 0x288]
push eax
mov eax, esi
push eax
mov byte [ebp - 4], 2
call fcn.004090e2
test byte [ebp - 0x2b4], 0x10
je 0x476a1a
lea eax, [ebp - 0x288]
push 0x5c3b10
push eax
call fcn.00561046
pop ecx
pop ecx
test eax, eax
je 0x476a77
lea eax, [ebp - 0x288]
push 0x5c3b14
push eax
call fcn.00561046
pop ecx
pop ecx
test eax, eax
je 0x476a77
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x476a11
mov eax, esi
push eax
call fcn.00476894
pop ecx
jmp 0x476a77
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x476a25
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x476a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x476a77
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x476a48
lea eax, [ebp - 0x48]
push eax
call ebx
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x476a56
lea ecx, [ebp - 0x48]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x476aa6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x476a70
lea eax, [ebp - 0x48]
push eax
call esi
test eax, eax
je 0x476aa6
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040b028
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x476ab7
push 8
pop edi
jmp 0x4769ad
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.0040b028
jmp 0x476994
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x2bc]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call esi
test eax, eax
jne 0x476af7
push edi
call ebx
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x476994
push edi
call esi
test eax, eax
je 0x476994
push 1
xor edi, edi
lea esi, [ebp - 0x64]
call fcn.0040b028
jmp 0x4768d2