Function at 0x467a70
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x589ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x414]
mov dword [ebp - 0x668], edx
push 0
push eax
mov edi, ecx
call fcn.004d90f0
lea edx, [ebp - 0x414]
add esp, 0xc
mov eax, edx
mov esi, 0x104
sub edi, eax
lea eax, [esi + 0x7ffffefa]
test eax, eax
je 0x467ad0
movzx eax, word [edi + edx]
test ax, ax
je 0x467ad0
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x467ab2
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467ae6
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jg 0x467b0e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret
add eax, eax
movzx ecx, word [ebp + eax - 0x414]
cmp ecx, 0x5c
je 0x467b22
cmp ecx, 0x2f
jne 0x467b37
cmp eax, 0x208
jae 0x467cf0
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
xor eax, eax
push ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x414]
push eax
push str._s.
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004594d0
add esp, 0x10
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x467ccb
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [eax]
test byte [ebp - 0x664], 0x10
lea eax, [ebp - 0x638]
je 0x467c53
mov ecx, 0x567d54
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x467bce
test dx, dx
je 0x467bca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x467bce
add eax, 4
add ecx, 4
test dx, dx
jne 0x467ba8
xor eax, eax
jmp 0x467bd3
sbb eax, eax
or eax, 1
test eax, eax
je 0x467cb5
mov ecx, 0x56b944
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x467c0c
test dx, dx
je 0x467c08
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x467c0c
add eax, 4
add ecx, 4
test dx, dx
jne 0x467be6
xor eax, eax
jmp 0x467c11
sbb eax, eax
or eax, 1
test eax, eax
je 0x467cb5
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x414]
push eax
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004594d0
mov edx, dword [ebp - 0x668]
lea ecx, [ebp - 0x20c]
add esp, 0x14
call fcn.00467a70
jmp 0x467cb5
push eax
lea eax, [ebp - 0x414]
push eax
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004594d0
mov eax, dword [ebp - 0x664]
add esp, 0x14
test al, 1
je 0x467c9e
cmp dword [ebp - 0x668], 0
je 0x467cb5
and eax, 0xfffffffe
push eax
mov dword [ebp - 0x664], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x467cb5
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x467b90
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret
call fcn.004ba489
int3