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

Disassembly:
push 0xffffffffffffffff
push 0x41e268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x398
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x3ac]
push esi
mov eax, dword [ebp]
mov dword [esp + 0x20], 0x12
mov edx, dword [ecx + 0x20]
push eax
mov eax, dword [0x4321c8]
push 0x1001
push eax
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push str..
lea eax, [esp + 0x10]
push ebp
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], esi
call fcn.004193cc
cmp esi, 0xffffffff
jne 0x413217
mov edx, dword [esp + 0x3b4]
mov eax, dword [edx]
jmp 0x413525
mov eax, dword [esp + 0x3b4]
push ebx
push edi
cmp dword [eax], 0
jne 0x41345b
mov bl, 2
push 0x4256d0
lea ecx, [esp + 0x18]
push ebp
push ecx
call sub.MFC42.DLL_operator
lea edx, [esp + 0x54]
mov dword [esp + 0x3b0], 0
push edx
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x3b0], bl
call fcn.004193cc
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41328a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413313
push 0x4256d0
lea edx, [esp + 0x1c]
push ebp
push edx
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x158]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x3bc], 3
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3b4], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x3b0], 3
call fcn.004193cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x3b0], bl
call fcn.004193cc
lea edi, [esp + 0x158]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x413427
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x413427
test byte [esp + 0x28], 0x10
je 0x4133a2
mov eax, dword [esp + 0x3c4]
test eax, eax
je 0x413427
cmp byte [esp + 0x54], 0x2e
jne 0x413350
mov al, byte [esp + 0x55]
test al, al
je 0x413427
cmp al, 0x2e
jne 0x413350
mov al, byte [esp + 0x56]
test al, al
je 0x413427
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x3b0], 5
je 0x41338b
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CString::CString_2
push eax
lea ecx, [ebp + 4]
mov byte [esp + 0x3b4], bl
call sub.MFC42.DLL_CPtrList::AddTail
jmp 0x413427
xor eax, eax
lea ecx, [ebp + 4]
push eax
mov byte [esp + 0x3b4], bl
call sub.MFC42.DLL_CPtrList::AddTail
jmp 0x413427
mov ecx, 0x8f
xor eax, eax
lea edi, [esp + 0x168]
lea edx, [esp + 0x174]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
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, edx
lea edx, [esp + 0x168]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3c4]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x16c], 0
mov dword [esp + 0x170], esi
mov dword [esp + 0x38c], ecx
call dword [sym.imp.AVPBASE.dll_AVP_ProcessObject]
mov eax, dword [esp + 0x3c0]
mov ecx, dword [esp + 0x14]
push esi
push eax
push ecx
call fcn.00412e60
mov esi, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x3b0], 0xffffffff
call fcn.004193cc
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x41345b
mov eax, dword [esp + 0x3bc]
cmp dword [eax], 0
je 0x41322b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41351a
mov ebx, 6
mov ecx, dword [esp + 0x3bc]
cmp dword [ecx], 0
jne 0x41351a
lea ecx, [ebp + 4]
call sub.MFC42.DLL_CPtrList::RemoveHead
push 0x20
mov edi, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x3b0], ebx
je 0x4134b3
mov ecx, dword [edi]
push ecx
mov ecx, eax
call fcn.00413060
mov esi, eax
jmp 0x4134b5
xor esi, esi
mov edx, dword [esp + 0x3c4]
mov eax, dword [esp + 0x3c0]
mov ecx, dword [esp + 0x3bc]
push edx
mov edx, dword [esp + 0x3bc]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x3c0], 0xffffffff
call fcn.00413190
test esi, esi
je 0x4134fb
mov ecx, esi
call fcn.00413100
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
je 0x41350f
mov ecx, edi
call fcn.004193cc
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x413472
mov eax, dword [esp + 0x3bc]
pop edi
pop ebx
mov eax, dword [eax]
mov ecx, dword [esp + 0x3a0]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3a4
ret 0x10