Function at 0x406f00
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
sub esp, 0x78c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x406f22
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x78c
ret 8
mov edx, dword [esi + 0x114]
mov eax, dword [esp + 0x7a0]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x48]
inc edx
push eax
push ecx
mov dword [esi + 0x114], edx
call ebp
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.004072d0
lea eax, [esp + 0x48]
mov dword [esp + 0x40], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x14]
push 1
lea edx, [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x50], eax
call fcn.004027b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x22]
and eax, 0xffff
and ecx, 0xffff
add esp, 0xc
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1e]
and eax, 0xffff
and ecx, 0xffff
mov dword [esp + 0x2c], eax
mov al, byte [0x417114]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x14c], al
mov edx, dword [esp + 0x1a]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14d]
mov ebx, dword [sym.imp.MSVCRT.dll__splitpath]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and edx, 0xffff
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
stosb byte es:[edi], al
mov al, byte [esp + 0x7a4]
and edx, 0xffff
test al, al
mov dword [esp + 0x24], edx
je 0x407018
lea ecx, [esp + 0x14c]
push 0
push ecx
push 0
lea edx, [esp + 0x54]
push 0
push edx
call ebx
add esp, 0x14
jmp 0x40705b
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x4c]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x407045
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x78c
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + eax + 0x48]
lea edx, [esp + 0x14c]
push ecx
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14c]
push 0x415a10
push eax
call edi
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push 8
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
lea edx, [esp + 0x168]
push ecx
push edx
push eax
call fcn.00408fc0
mov ecx, dword [esi + 4]
push ecx
call fcn.00408920
lea edx, [esp + 0x69c]
push 0
lea eax, [esp + 0x254]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
call ebx
add esp, 0x14
lea eax, [esp + 0x69c]
lea ecx, [esp + 0x250]
push eax
push ecx
call edi
mov ebp, dword [sym.imp.MSVCRT.dll__makepath]
push 0x415ef0
lea edx, [esp + 0x254]
push 0x415ef0
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x5a4]
push eax
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x354]
lea eax, [esp + 0x598]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4071a0
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp byte [esp + 0x380], 0x2e
je 0x40718a
lea ecx, [esp + 0x380]
push 0
lea edx, [esp + 0x254]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x4a0]
push eax
push ecx
call ebp
mov al, byte [esp + 0x368]
add esp, 0x14
test al, 0x10
je 0x407173
mov edx, dword [esp + 0x7a4]
lea eax, [esp + 0x494]
push edx
push eax
mov ecx, esi
call fcn.00406f00
jmp 0x40718a
mov ecx, dword [esp + 0x7a4]
lea edx, [esp + 0x494]
push ecx
push edx
mov ecx, esi
call fcn.00406c60
lea eax, [esp + 0x354]
push eax
push edi
call ebx
test eax, eax
jne 0x407121
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x78c
ret 8