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

Disassembly:
push 0x2b0
mov eax, 0x4cbdb3
call fcn.0044dabe
mov eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.00404c84
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00405528
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401198
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jne 0x41f3d3
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00401198
mov al, bl
call fcn.0044db41
ret
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x41f3df
lea eax, [ebp - 0x48]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x41f400
mov esi, 0x4e0ca0
push esi
call fcn.00447827
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x48]
call fcn.0040594f
xor ecx, ecx
cmp dword [ebp - 0x38], ebx
jbe 0x41f433
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x41f413
lea eax, [ebp - 0x48]
cmp word [eax + ecx*2], 0x2f
jne 0x41f42d
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x41f426
lea eax, [ebp - 0x48]
push 0x5c
pop edx
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, dword [ebp - 0x38]
jb 0x41f407
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x64]
call fcn.00401874
mov esi, 0x4e5458
push esi
mov byte [ebp - 4], 2
call fcn.00447827
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x64]
call fcn.0040594f
push 0x250
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.00447b70
mov eax, dword [ebp - 0x64]
add esp, 0xc
cmp dword [ebp - 0x50], 8
jae 0x41f47b
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b8], eax
cmp eax, 0xffffffff
jne 0x41f4ab
push 1
xor edi, edi
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.00401198
xor bl, bl
jmp 0x41f3bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x2c]
call fcn.00401874
lea eax, [ebp - 0x288]
push eax
mov byte [ebp - 4], 3
call fcn.00447827
pop ecx
lea ecx, [ebp - 0x288]
mov edi, eax
push ecx
mov eax, esi
call fcn.0040594f
test byte [ebp - 0x2b4], 0x10
je 0x41f52d
lea eax, [ebp - 0x288]
push 0x4def40
push eax
call fcn.00448a0a
pop ecx
pop ecx
test eax, eax
je 0x41f596
lea eax, [ebp - 0x288]
push 0x4e0ca8
push eax
call fcn.00448a0a
pop ecx
pop ecx
test eax, eax
je 0x41f596
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41f524
mov eax, esi
push eax
call fcn.0041f35a
pop ecx
jmp 0x41f596
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41f539
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x41f596
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41f596
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41f55d
lea eax, [ebp - 0x2c]
push eax
call ebx
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x41f56c
lea ecx, [ebp - 0x2c]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41f616
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41f58b
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
je 0x41f616
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401198
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f4b1
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 0x41f601
push edi
call ebx
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41f494
push edi
call esi
test eax, eax
je 0x41f494
push 1
xor edi, edi
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.00401198
jmp 0x41f3b9
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401198
jmp 0x41f494