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

Disassembly:
push ebp
lea ebp, [esp - 0x664]
sub esp, 0x664
push 0xffffffffffffffff
push 0x438a98
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x44cc80]
xor eax, ebp
mov dword [ebp + 0x660], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x66c]
xor edi, edi
push edi
push str.COperateFile::ChangeFileAttribute
lea eax, [ebp - 0x3c]
push eax
call fcn.00405b00
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 0x800000
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
cmp ebx, edi
jne 0x4096e3
mov dword [ebp - 0x34], 0x8080ffff
push 0x44729c
lea ecx, [ebp - 0x34]
push ecx
call fcn.00426b1b
mov word [ebp + 0x458], di
push 0x206
push edi
lea edx, [ebp + 0x45a]
push edx
call fcn.004250c0
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x2c], ecx
mov esi, 0x104
mov dword [ebp - 0x24], esi
lea eax, [ebp + 0x458]
mov dword [ebp - 0x20], eax
cmp esi, edi
je 0x409738
movzx edx, word [ecx]
cmp dx, di
je 0x40973e
mov word [eax], dx
add eax, 2
mov dword [ebp - 0x20], eax
add ecx, 2
mov dword [ebp - 0x2c], ecx
sub esi, 1
mov dword [ebp - 0x24], esi
jmp 0x409715
sub eax, 2
mov dword [ebp - 0x20], eax
mov word [eax], di
lea eax, [ebp + 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x43f99c
mov edx, 0x104
lea edi, [ebp + 0x458]
call fcn.00404410
lea ecx, [ebp]
push ecx
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x409872
mov edi, edi
push 0x43f9c0
lea eax, [ebp + 0x2c]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call edi
test eax, eax
je 0x409853
push 0x43f9c4
lea ecx, [ebp + 0x2c]
push ecx
call edi
test eax, eax
je 0x409853
mov word [ebp + 0x250], 0
push 0x206
push 0
lea edx, [ebp + 0x252]
push edx
call fcn.004250c0
lea eax, [ebp + 0x2c]
push eax
push ebx
push 0x43fe0c
mov eax, 0x104
lea edi, [ebp + 0x250]
call fcn.004049d0
add esp, 0x18
test byte [ebp], 0x10
je 0x409811
mov ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00409660
mov dword [ebp - 0x18], eax
cmp eax, 0x800000
je 0x409853
mov dword [ebp - 0x30], eax
push 0x44729c
lea edx, [ebp - 0x30]
push edx
call fcn.00426b1b
push 0x20
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x409853
lea ecx, [ebp + 0x250]
push ecx
push 0x8080000d
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
push eax
call fcn.00409990
add esp, 0xc
mov dword [ebp - 0x28], 0x8080ffff
push 0x44729c
lea ecx, [ebp - 0x28]
push ecx
call fcn.00426b1b
lea edx, [ebp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409780
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
jmp 0x4098a7
test esi, esi
je 0x4098b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x18]
push esi
push str.return_DWORD__d__n
push 2
lea edx, [ebp - 0x3c]
push edx
call fcn.00404dc0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00405a70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x660]
xor ecx, ebp
call fcn.004237ad
add ebp, 0x664
mov esp, ebp
pop ebp
ret 4