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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e30c
mov eax, dword fs:[0]
push eax
sub esp, 0x76c
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x450088
xor eax, eax
jmp 0x45049a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4501ce
call fcn.00478bf0
mov dword [ebp - 0x6bc], eax
push 1
mov ecx, dword [ebp - 0x6bc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x6bc]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x6c4], al
cmp byte [ebp - 0x6c4], 1
je 0x4500ce
jmp 0x4501c7
push 0x62e310
lea ecx, [ebp - 0x450]
call fcn.00408710
mov dword [ebp - 4], 0
push 0x62e30c
lea ecx, [ebp - 0x438]
call fcn.00408710
mov byte [ebp - 4], 1
call fcn.00478bf0
mov dword [ebp - 0x6c0], eax
push str.delete_directory_is_not_exist_
lea ecx, [ebp - 0x6d8]
push ecx
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x6c8], eax
mov edx, dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6cc]
push eax
push 0x5e5
lea ecx, [ebp - 0x450]
push ecx
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x778]
call fcn.0040d3b0
mov dword [ebp - 0x6d0], eax
mov eax, dword [ebp - 0x6d0]
mov dword [ebp - 0x6d4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6d4]
call fcn.0040b2d0
push eax
mov ecx, dword [ebp - 0x6c0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x6c0]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x778]
call fcn.0040e140
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6d8]
call fcn.00405df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00405e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00405e70
xor eax, eax
jmp 0x45049a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x6a8], ecx
mov edx, dword [ebp - 0x6a8]
add edx, 2
mov dword [ebp - 0x6dc], edx
mov eax, dword [ebp - 0x6a8]
mov cx, word [eax]
mov word [ebp - 0x6b2], cx
add dword [ebp - 0x6a8], 2
cmp word [ebp - 0x6b2], 0
jne 0x4501e6
mov edx, dword [ebp - 0x6a8]
sub edx, dword [ebp - 0x6dc]
sar edx, 1
mov dword [ebp - 0x6e0], edx
cmp dword [ebp - 0x6e0], 3
ja 0x45022b
xor eax, eax
jmp 0x45049a
mov dword [ebp - 0x6a4], 1
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.005b1170
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.005b1170
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x6ac], eax
cmp dword [ebp - 0x6ac], 0xffffffff
je 0x4502c8
mov eax, dword [ebp - 0x6ac]
and eax, 1
je 0x4502c8
mov ecx, dword [ebp - 0x6ac]
and ecx, 0xfffffffe
mov dword [ebp - 0x6ac], ecx
mov edx, dword [ebp - 0x6ac]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x6a0]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x6b8], eax
cmp dword [ebp - 0x6b8], 0xffffffff
je 0x45047c
lea eax, [ebp - 0x6a0]
push eax
mov ecx, dword [ebp - 0x6b8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x45046f
mov edx, dword [ebp - 0x6a0]
and edx, 0x10
je 0x4503ca
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x674]
cmp edx, 0x2e
jne 0x45036f
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x674]
test ecx, ecx
je 0x45036b
mov edx, 2
shl edx, 0
movzx eax, word [ebp + edx - 0x674]
cmp eax, 0x2e
jne 0x45036f
mov ecx, 2
shl ecx, 1
movzx edx, word [ebp + ecx - 0x674]
test edx, edx
jne 0x45036f
jmp 0x4502ef
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.005b1170
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
push edx
call fcn.00450050
add esp, 4
and eax, dword [ebp - 0x6a4]
mov dword [ebp - 0x6a4], eax
jmp 0x45046a
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.005b1170
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0xffffffff
je 0x45044f
mov eax, dword [ebp - 0x6b0]
and eax, 1
je 0x45044f
mov ecx, dword [ebp - 0x6b0]
and ecx, 0xfffffffe
mov dword [ebp - 0x6b0], ecx
mov edx, dword [ebp - 0x6b0]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45046a
mov dword [ebp - 0x6a4], 0
jmp 0x4502ef
mov edx, dword [ebp - 0x6b8]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call fcn.00455390
add esp, 4
and eax, dword [ebp - 0x6a4]
mov dword [ebp - 0x6a4], eax
mov eax, dword [ebp - 0x6a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret