Function at 0x413a68
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory

Disassembly:
mov eax, 0x462d7b
call fcn.00451b80
sub esp, 0x184
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov al, byte [ebp + 0x1f]
push 1
pop ebx
lea ecx, [ebp - 0x20]
push edi
mov dword [ebp - 4], ebx
mov byte [ebp - 0x20], al
call fcn.004079c3
mov al, byte [ebp + 0x1f]
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov byte [ebp - 0x30], al
call fcn.004079c3
mov al, byte [ebp + 0x1f]
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov byte [ebp - 0x40], al
call fcn.004079c3
mov esi, 0x47cdfc
push esi
call fcn.004525b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.0040819b
test byte [0x47cd79], bl
mov byte [ebp - 4], 4
jne 0x413b08
mov al, byte [ebp + 0x1f]
or byte [0x47cd79], bl
push 0x413ccb
mov byte [0x47cdb8], al
mov dword [0x47cdbc], edi
mov dword [0x47cdc0], edi
mov dword [0x47cdc4], edi
call fcn.00452cce
pop ecx
cmp byte [ebp + 0x1c], 0
je 0x413b24
push dword [0x47cdc0]
mov ecx, 0x47cdb8
push dword [0x47cdbc]
call fcn.00411728
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x413b30
mov eax, 0x466500
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [0x466504]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x30]
push edi
push eax
call fcn.004080af
mov esi, str..
push esi
call fcn.004525b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0040796c
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x413b6c
mov eax, 0x466500
lea ecx, [ebp - 0x190]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413b96
mov ecx, dword [ebp + 8]
push 0x47cdb8
call fcn.00418c87
mov dword [ebp - 0x10], ebx
jmp 0x413c86
lea eax, [ebp - 0x164]
push 0x47506c
push eax
call fcn.004535bc
pop ecx
test eax, eax
pop ecx
je 0x413c59
lea eax, [ebp - 0x164]
push 0x475068
push eax
call fcn.004535bc
pop ecx
test eax, eax
pop ecx
je 0x413c59
push dword [0x466504]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x20]
push edi
push eax
call fcn.004080af
push 0x5c
push ebx
lea ecx, [ebp - 0x20]
call fcn.00408d95
lea eax, [ebp - 0x164]
push eax
call fcn.004525b0
pop ecx
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040796c
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x413c13
mov eax, 0x466500
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test byte [ebp - 0x190], 0x10
je 0x413c4b
push edi
lea eax, [ebp - 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x1c], esp
push eax
call fcn.00418a7f
lea eax, [ebp - 0x50]
push eax
call fcn.00413a68
add esp, 0x18
lea ecx, [ebp - 0x50]
call fcn.004105e6
jmp 0x413c59
lea eax, [ebp - 0x20]
mov ecx, 0x47cdb8
push eax
call fcn.00418cef
lea eax, [ebp - 0x190]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413b96
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
push 0x47cdb8
call fcn.00418c87
mov dword [ebp - 0x10], ebx
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004079c3
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004079c3
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004079c3
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.004079c3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret