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

Disassembly:
push 0xffffffffffffffff
push 0x432c4e
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x446050]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2b4]
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2b0]
mov edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
cmp dword [ebp + 0xc], ebx
jbe 0x40ef24
call fcn.00420164
mov esi, dword [ebp]
mov ebp, dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
cmp ebp, dword [ecx + 0x10]
jbe 0x40ef3c
call fcn.00420164
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
push ebx
push esi
push ebp
push eax
lea edx, [esp + 0x38]
push edx
mov esi, ecx
call fcn.00409af0
mov ecx, dword [esp + 0x1c]
call fcn.00410140
push edi
push str._s.
lea ecx, [esp + 0x70]
mov byte [esp + 0x23], 0
call fcn.004172c0
add esp, 8
xor ebp, ebp
mov dword [esp + 0x2a8], ebp
mov eax, dword [esp + 0x6c]
mov esi, 0x10
cmp dword [esp + 0x80], esi
jae 0x40ef8d
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x15c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, ebp
je 0x40f239
cmp ebx, 0xffffffff
je 0x40f239
jmp 0x40efc0
test byte [esp + 0x15c], 0x10
jne 0x40f21b
lea edx, [esp + 0x84]
push edx
call fcn.0040c0c0
mov byte [esp + 0x2a8], 1
lea eax, [esp + 0x188]
push eax
push edi
push 0x436a34
lea ecx, [esp + 0x58]
call fcn.004172c0
add esp, 0xc
mov byte [esp + 0x2a8], 2
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x90]
call fcn.004096e0
mov byte [esp + 0x2a8], 1
cmp dword [esp + 0x64], esi
jb 0x40f030
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0042019e
add esp, 4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x188]
push edx
push eax
mov edi, 0xf
push 0x436a34
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebp
mov byte [esp + 0x5c], 0
call fcn.004172c0
add esp, 0xc
mov byte [esp + 0x2a8], 3
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0xac]
call fcn.004096e0
mov byte [esp + 0x2a8], 1
cmp dword [esp + 0x48], esi
jb 0x40f093
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042019e
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov byte [esp + 0x34], 0
mov byte [esp + 0xbc], 1
cmp dword [esp + 0x9c], esi
jae 0x40f0bf
lea ecx, [esp + 0x88]
lea edx, [esp + 0xbe]
call fcn.004113a0
mov edi, 0x64
cmp dx, di
mov dword [esp + 0x148], edx
sbb edx, edx
inc edx
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x154], dl
cmp dword [esp + 0xb8], esi
jae 0x40f102
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f11c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x40f126
test bl, 0x10
je 0x40f126
mov ebp, 2
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebp, ebp
sete al
mov byte [esp + 0xbd], al
test al, al
je 0x40f17f
mov ecx, dword [esp + 0xa4]
cmp dword [esp + 0xb8], esi
jae 0x40f156
lea ecx, [esp + 0xa4]
lea edx, [esp + 0xfe]
call fcn.004113a0
cmp dx, di
sbb ebx, ebx
mov dword [esp + 0x14c], eax
inc ebx
mov dword [esp + 0x150], edx
mov byte [esp + 0x155], bl
jmp 0x40f194
mov bl, byte [esp + 0x155]
mov edx, dword [esp + 0x150]
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x144]
mov edi, dword [esp + 0x148]
mov ebp, ecx
or ebp, edi
je 0x40f1cd
mov ebp, eax
or ebp, edx
je 0x40f1cd
movzx ebp, byte [0x449dbe]
push ebp
push edx
push eax
push edi
push ecx
call fcn.004112f0
add esp, 0x14
test al, al
je 0x40f1cd
mov byte [esp + 0x1b], 1
jmp 0x40f1eb
test bl, bl
je 0x40f1e2
cmp byte [esp + 0x154], 0
jne 0x40f1e2
mov eax, 1
jmp 0x40f1e4
xor eax, eax
mov byte [esp + 0x156], al
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x84]
push eax
call fcn.00410290
mov byte [esp + 0x2a8], 0
lea ecx, [esp + 0x84]
push ecx
call fcn.0040afa0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
xor ebp, ebp
lea edx, [esp + 0x15c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40efc0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x2a8], 0xffffffff
cmp dword [esp + 0x80], esi
jb 0x40f25a
mov eax, dword [esp + 0x6c]
push eax
call fcn.0042019e
add esp, 4
mov al, byte [esp + 0x1b]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebp
mov byte [esp + 0x6c], 0
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.0041f826
add esp, 0x298
ret