Function at 0x100608e0
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
push 0xffffffffffffffff
push 0x100d7e6b
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x10106024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x380], ecx
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x10060921
mov eax, dword [esi]
push eax
push str._event_:_Removing_settings_with_name__s._n
call fcn.100a0980
mov ecx, dword [0x101149e4]
mov eax, 0x7fffffff
mov edi, dword [esi + 0x10]
add ecx, 0x28
add esp, 8
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, edi
jb 0x10060cee
cmp dword [ecx + 0x14], 0x10
jb 0x10060955
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x1006095d
mov esi, dword [esi]
push edi
push esi
push edx
push ecx
push ecx
push dword [ebp - 0x380]
lea ecx, [ebp - 0x23c]
call fcn.10029d20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 0x10
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10060c9a
not eax
test al, 0x10
jne 0x10060c9a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10060c9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x10060c9a
mov eax, dword [ebp - 0x22c]
add eax, 5
cmp eax, 0x104
ja 0x10060c9a
push 0x104
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.100ac370
add esp, 0xc
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 0x10
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push str._s.
push eax
call fcn.10062bd0
add esp, 0xc
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
test ebx, ebx
je 0x10060c9a
cmp ebx, 0xffffffff
je 0x10060c9a
cmp dword [ebp - 0x228], 0x10
lea ecx, [ebp - 0x23c]
lea eax, [ebp - 0x224]
cmovae ecx, dword [ebp - 0x23c]
push ecx
push 0x104
push eax
call fcn.100bd89e
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
nop dword [eax]
mov ecx, 0x100f5374
lea eax, [ebp - 0x350]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10060ac0
test dl, dl
je 0x10060abc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10060ac0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10060aa0
xor eax, eax
jmp 0x10060ac5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10060c57
mov ecx, 0x100f5378
lea eax, [ebp - 0x350]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10060af8
test dl, dl
je 0x10060af4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10060af8
add eax, 2
add ecx, 2
test dl, dl
jne 0x10060ad8
xor eax, eax
jmp 0x10060afd
sbb eax, eax
or eax, 1
test eax, eax
je 0x10060c57
lea ecx, [ebp - 0x224]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10060b10
sub ecx, edx
lea edx, [ebp - 0x350]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10060b22
sub edx, esi
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x104
ja 0x10060c57
push 0x104
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.100ac370
add esp, 0xc
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x11c]
push str._s_s
push eax
call fcn.10062bd0
mov eax, dword [ebp - 0x37c]
add esp, 0x10
test al, 0x10
je 0x10060c38
test al, 1
je 0x10060b98
and eax, 0xfffffffe
push eax
mov dword [ebp - 0x37c], eax
lea eax, [ebp - 0x11c]
push eax
call edi
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x388], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x384], 0xf
mov byte [ebp - 0x398], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10060bc6
sub ecx, edx
lea eax, [ebp - 0x11c]
push ecx
push eax
lea ecx, [ebp - 0x398]
call fcn.10044480
mov ecx, dword [ebp - 0x380]
lea eax, [ebp - 0x398]
push eax
mov byte [ebp - 4], 1
call fcn.100608e0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x384]
cmp edx, 0x10
jb 0x10060c57
mov ecx, dword [ebp - 0x398]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10060c2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10060cf3
push edx
push ecx
call fcn.100aa01d
add esp, 8
jmp 0x10060c57
test al, 5
je 0x10060c4a
push 0x80
lea eax, [ebp - 0x11c]
push eax
call edi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x37c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10060a90
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10060c9a
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [ebp - 0x228]
cmp edx, 0x10
jb 0x10060cd0
mov ecx, dword [ebp - 0x23c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10060cc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10060cf3
push edx
push ecx
call fcn.100aa01d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100aa00f
mov esp, ebp
pop ebp
ret 4
call fcn.10029f50
call fcn.100bb40e
int3