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

Disassembly:
push ebp
lea ebp, [esp - 0x4f0]
sub esp, 0x570
mov eax, dword [0x4705d0]
xor eax, ebp
mov dword [ebp + 0x4ec], eax
mov eax, dword [ebp + 0x500]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x4f8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x504]
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x3e9]
push ebx
push eax
mov dword [ebp - 0x68], edi
mov byte [ebp + 0x3e8], bl
call fcn.004464f0
push esi
lea eax, [ebp + 0x2e5]
push ebx
push eax
mov byte [ebp + 0x2e4], bl
call fcn.004464f0
push esi
lea eax, [ebp + 0x1e1]
push ebx
push eax
mov byte [ebp + 0x1e0], bl
call fcn.004464f0
push esi
lea eax, [ebp + 0xdd]
push ebx
push eax
mov byte [ebp + 0xdc], bl
call fcn.004464f0
push 0x13c
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x64], ebx
call fcn.004464f0
add esp, 0x3c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
inc eax
cmp eax, esi
jle 0x40eb90
mov eax, esi
jmp 0x40eb96
push dword [ebp - 0x68]
call edi
inc eax
push eax
push dword [ebp - 0x68]
lea eax, [ebp + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp + 0x3e8], bl
je 0x40ebfc
lea eax, [ebp + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40ebfc
lea eax, [ebp + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ebfc
lea eax, [ebp + 0x3e8]
push eax
call edi
lea ecx, [ebp + 0x3e8]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40ebfc
push 0x45a954
lea eax, [ebp + 0x3e8]
push eax
call esi
lea eax, [ebp + 0x3e8]
push eax
call edi
lea ecx, [ebp + 0x3e8]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40ec3d
cmp byte [ebp + 0x3e8], bl
je 0x40ec3d
lea eax, [ebp + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40ec4b
lea eax, [ebp + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ec4b
push 0x45c518
lea eax, [ebp + 0x3e8]
push eax
call esi
lea eax, [ebp + 0x3e8]
push eax
lea eax, [ebp + 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x2e4]
push eax
call edi
dec eax
lea edi, [ebp + eax + 0x2e4]
cmp byte [edi], bl
je 0x40ec94
cmp eax, ebx
jle 0x40ec94
mov cl, byte [ebp + eax + 0x2e3]
cmp cl, 0x5c
je 0x40ec8e
cmp cl, 0x3a
je 0x40ec8e
cmp cl, 0xa
jne 0x40ec68
mov byte [edi], bl
xor eax, eax
jmp 0x40ec69
push 0xc
lea eax, [ebp + 0xdc]
push eax
push dword [ebp - 0x68]
call fcn.0040dac4
cmp byte [ebp + 0xdc], bl
jne 0x40ecbf
push 0x45c518
lea eax, [ebp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x3e8]
push eax
call edi
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
je 0x40ed20
push 0x45b780
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40ed0f
push 0x45bef8
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40ed0f
test byte [ebp - 0x64], 0x10
je 0x40ed0c
inc dword [ebp - 0x70]
jmp 0x40ed0f
inc dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ecd5
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x4fc], ebx
je 0x40ee27
lea eax, [ebp + 0x2e4]
push eax
lea eax, [ebp + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45c518
lea eax, [ebp + 0x3e8]
push eax
call esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x3e8]
push eax
call edi
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
je 0x40ee1e
cmp byte [ebp - 0x38], bl
je 0x40ee09
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x45b780
lea eax, [ebp - 0x38]
push eax
call edi
test eax, eax
je 0x40ee09
push 0x45bef8
lea eax, [ebp - 0x38]
push eax
call edi
test eax, eax
je 0x40ee09
test byte [ebp - 0x64], 0x10
je 0x40ee09
lea eax, [ebp + 0x2e4]
push eax
lea eax, [ebp + 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x1e0]
push eax
call esi
push 0x45a954
lea eax, [ebp + 0x1e0]
push eax
call esi
lea eax, [ebp + 0xdc]
push eax
lea eax, [ebp + 0x1e0]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x4fc]
lea eax, [ebp + 0x1e0]
push eax
call fcn.0040eacd
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x70], eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ed67
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x74], ebx
je 0x40ee3d
push 4
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call fcn.00445ea0
add esp, 0xc
cmp dword [ebp - 0x7c], ebx
pop edi
pop esi
pop ebx
je 0x40ee5b
push 4
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call fcn.00445ea0
mov eax, dword [ebp - 0x70]
add esp, 0xc
jmp 0x40ee5e
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0x4ec]
xor ecx, ebp
call fcn.004464bf
add ebp, 0x4f0
leave
ret 0x10