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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fafe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push edi
cmp dword [ebp + 8], 0
je 0x40ea82
mov eax, dword [ebp + 8]
push eax
call fcn.00430d40
add esp, 4
test eax, eax
jne 0x40ea89
xor eax, eax
jmp 0x40ecbd
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 0x40eaa6
mov edx, dword [ebp - 0x10]
and edx, 0x10
test edx, edx
jne 0x40eaad
xor eax, eax
jmp 0x40ecbd
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 0x5b842c
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x160]
push eax
call fcn.0055648c
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x174], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x174]
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 0x40ec9e
push 0x5b8430
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40eb75
push 0x5b8434
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40eb7a
jmp 0x40ec75
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 0x40ec38
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x15c]
push edx
push 0x5b8438
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x164]
push ecx
call fcn.0055648c
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x168]
push ecx
call fcn.00556426
mov dword [ebp - 0x180], eax
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x184], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x184]
call fcn.004035b0
push eax
call fcn.0040ea4d
add esp, 0xc
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 0x40ec45
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
cmp dword [ebp + 0x10], 0
je 0x40ec66
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax]
ja 0x40ec66
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.005561f7
jmp 0x40ec91
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.005561f7
lea edx, [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eb49
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x16c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005561f7
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret