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

Disassembly:
push 0xffffffffffffffff
push 0x41d2f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
push edi
push 0xa
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPtrList::CPtrList
mov ebp, dword [esp + 0x184]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x17c], 0
cmp ecx, 0x1fa
lea ebx, [ecx + ebp]
jle 0x405f0e
lea ecx, [esp + 0x14]
mov dword [esp + 0x17c], 0xffffffff
call fcn.00419552
xor eax, eax
jmp 0x406189
mov edi, 0x42573c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x405f5e
lea ecx, [esp + 0x14]
mov dword [esp + 0x17c], eax
call fcn.00419552
xor eax, eax
jmp 0x406189
mov edx, dword [esp + 0x18c]
cmp dword [edx], 0
jne 0x4060af
test byte [esp + 0x34], 0x10
je 0x406054
cmp byte [esp + 0x60], 0x2e
jne 0x405f9c
mov al, byte [esp + 0x61]
test al, al
je 0x40608b
cmp al, 0x2e
jne 0x405f9c
mov al, byte [esp + 0x62]
test al, al
je 0x40608b
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405fd9
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40601a
lea edi, [esp + 0x164]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x164]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40608b
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40608b
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x17c], 1
je 0x40603e
push ebx
mov ecx, eax
call sub.MFC42.DLL_CString::CString_1
jmp 0x406040
xor eax, eax
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x180], 0
call sub.MFC42.DLL_CPtrList::AddTail
jmp 0x40608b
cmp dword [esp + 0x54], 0xffffffff
je 0x40608b
push 0x429c98
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x188]
mov ecx, dword [esp + 0x54]
push 0x429c98
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
mov ecx, dword [eax + 4]
adc ecx, 0
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4060af
mov eax, dword [esp + 0x18c]
cmp dword [eax], 0
je 0x405f6e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406161
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CPtrList::RemoveHead
mov ecx, dword [esp + 0x18c]
mov ebp, eax
cmp dword [ecx], 0
jne 0x406141
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4256d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18c]
mov ecx, edx
mov edx, dword [esp + 0x184]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x188]
push eax
push ecx
push edx
call fcn.00405ea0
add esp, 0xc
test ebp, ebp
je 0x406155
mov ecx, ebp
call fcn.004193cc
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4060c2
mov ecx, dword [esp + 0x18c]
xor eax, eax
mov dword [esp + 0x17c], 0xffffffff
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
test edx, edx
sete al
mov esi, eax
call fcn.00419552
mov eax, esi
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret