Function at 0x40ccb8
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fa39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
push edi
cmp dword [ebp + 8], 0
je 0x40cced
mov eax, dword [ebp + 8]
push eax
call fcn.00430d40
add esp, 4
test eax, eax
jne 0x40ccf4
xor eax, eax
jmp 0x40cf81
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40cd11
mov edx, dword [ebp - 0x10]
and edx, 0x10
test edx, edx
jne 0x40cd18
xor eax, eax
jmp 0x40cf81
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00556265
mov dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.005530ad
mov dword [ebp - 0x154], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x150]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x154]
push ecx
push 0x5b8008
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x160]
push eax
call fcn.0055648c
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x17c]
call fcn.004035b0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.005561f7
cmp dword [ebp - 0x158], 0xffffffff
je 0x40cf62
push 0x5b800c
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40cde0
push 0x5b8010
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40cde5
jmp 0x40cf39
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00556265
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x154]
and edx, 0x10
test edx, edx
je 0x40cea2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x15c]
push ecx
push 0x5b8014
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x164]
push eax
call fcn.0055648c
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x184], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x184]
push edx
lea eax, [ebp - 0x168]
push eax
call fcn.00556426
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18c]
call fcn.004035b0
push eax
call fcn.0040ccb8
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x168]
call fcn.005561f7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x164]
call fcn.005561f7
jmp 0x40cf2a
lea edx, [ebp - 0x15c]
push edx
push 0x5b8018
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x16c]
push ecx
call fcn.0055648c
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x194], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x194]
push eax
lea ecx, [ebp - 0x170]
push ecx
call fcn.00556426
mov dword [ebp - 0x198], eax
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x19c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004056d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x170]
call fcn.005561f7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x16c]
call fcn.005561f7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.005561f7
lea ecx, [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cdb4
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x174], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005561f7
mov eax, dword [ebp - 0x174]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret