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

Disassembly:
push 0x2b8
mov eax, 0x597eb8
call fcn.00410ff3
mov esi, dword [ebp + 8]
push esi
call fcn.00434fd1
pop ecx
cmp eax, 3
jb 0x417cfb
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417cfb
push esi
lea ecx, [ebp - 0x28]
call fcn.0040135f
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00419b09
mov ebx, 0x59bb6c
pop ecx
test eax, eax
jne 0x417a35
push ebx
call fcn.00434fd1
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401cf3
call fcn.00415449
test al, al
je 0x417a56
push esi
push eax
push edi
push eax
push ebp
push esp
pop esi
pop esp
pop ebx
pop esp
pop ecx
push ebx
pop edx
pop ebp
push esp
push edx
push ecx
push edi
push eax
push edx
push eax
push eax
pop esp
push ecx
call fcn.004155a2
test al, al
je 0x417a73
pop edx
pop esp
pop esp
push eax
pop esi
pop ecx
push ebx
pop esp
push esp
push esp
pop ebx
push esp
push edi
push esp
pop edi
push edx
push edx
pop ecx
push esp
pop ebp
call fcn.004156fb
test al, al
je 0x417a97
pop esp
push eax
push esp
pop ecx
push esi
pop eax
pop eax
push ecx
pop ebx
pop edx
pop esp
pop ebp
push ecx
push esp
push ebx
push ecx
push eax
pop ebp
push edx
pop esi
pop edi
push edi
push ecx
pop edx
push ecx
pop eax
pop eax
and dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.00402647
mov esi, 0x59bb64
mov byte [ebp - 4], 2
push esi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00401cf3
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c4], eax
call fcn.0041555d
test al, al
je 0x417b11
push esi
push edx
push edx
push ecx
pop eax
push ebp
push esp
pop edx
pop edi
push eax
push edx
pop ecx
pop ecx
push edi
push ebx
pop edx
pop esi
push esi
push edi
pop edx
pop eax
push eax
push eax
call fcn.004155a2
test al, al
je 0x417b31
pop esi
push ebp
pop ebx
push ecx
pop esp
pop ebx
push esi
push ecx
pop ebp
pop esi
pop edi
pop ebp
push esp
pop esi
pop edx
push ebp
push esp
push ecx
pop edx
pop esi
pop esp
pop eax
pop ebx
call fcn.00415968
test al, al
je 0x417b4d
pop esi
push eax
pop edx
pop esp
push edi
push ebp
push eax
push esp
pop edx
push esp
pop esi
pop esi
pop ebp
pop ebx
pop eax
pop eax
pop edi
pop ebx
push esi
mov edi, dword [ebp - 0x2c4]
cmp edi, 0xffffffff
je 0x417c77
push 0x2e
pop ebx
mov esi, 0x59bb6c
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x417c77
cmp word [ebp - 0x294], bx
je 0x417b64
cmp word [ebp - 0x292], 0
je 0x417b64
cmp word [ebp - 0x292], bx
jne 0x417ba0
cmp word [ebp - 0x290], 0
je 0x417b64
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x28]
je 0x417c1c
push eax
lea ecx, [ebp - 0x58]
call fcn.00402647
cmp word [ebp - 0x294], 0
mov byte [ebp - 4], 3
jne 0x417bc7
xor eax, eax
jmp 0x417bd4
lea eax, [ebp - 0x294]
push eax
call fcn.00434fd1
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401cf3
push esi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00401cf3
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004179d3
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00401bfd
jmp 0x417b64
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00401ea6
cmp word [ebp - 0x294], 0
jne 0x417c37
xor eax, eax
jmp 0x417c44
lea eax, [ebp - 0x294]
push eax
call fcn.00434fd1
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401cf3
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040135f
call fcn.0041930b
add esp, 0x18
jmp 0x417b64
call fcn.004155a2
test al, al
je 0x417c92
pop eax
push edx
push edi
pop esi
push edx
push esi
push edi
push esi
push eax
push eax
pop esp
pop ebp
push edi
pop ecx
push esp
pop esp
pop esi
push ebx
call fcn.00415a37
test al, al
je 0x417cab
push ebx
pop esi
pop esi
push ebp
pop edx
push ecx
pop ebx
pop eax
pop ecx
pop esp
pop esi
pop ecx
pop edx
push ebp
pop edx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ebx, ebx
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401bfd
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401bfd
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401bfd
call fcn.00410fae
ret