Function at 0x40ecae
Capabilities:
Enumerate files on windows

Disassembly:
push 0x270
mov eax, 0x42cd3d
call fcn.00429bcb
mov esi, dword [ebp + 8]
mov dword [ebp - 0x270], ecx
mov ebx, edx
mov dword [ebp - 0x27c], esi
call fcn.0040f2be
push esi
lea ecx, [ebp - 0x26c]
call dword [0x42fa28]
and dword [ebp - 4], 0
lea esi, [ebp - 0x26c]
call fcn.0040f373
lea eax, [ebp - 0x268]
push ebx
push eax
mov ecx, esi
call fcn.0040f6d7
pop ecx
pop ecx
lea eax, [ebp - 0x260]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x268]
mov dword [ebp - 0x274], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ee3a
test byte [ebp - 0x260], 0x10
jne 0x40ee03
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0040f6d7
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
jle 0x40edcf
test esi, esi
jl 0x40ee35
cmp esi, eax
jge 0x40ee35
mov eax, dword [edi + 4]
push dword [ebp - 0x264]
lea ecx, [eax + esi*4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jg 0x40ee22
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x40eda1
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x264]
push ecx
push eax
mov ecx, edi
call sub.mfc90u.dll_CStringArray::SetAtGrow_1
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x264]
push eax
call fcn.0040ec7c
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ed2c
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40ee59
push 1
lea eax, [ebp - 0x264]
push eax
push esi
mov ecx, edi
call sub.mfc90u.dll_CStringArray::InsertAt
jmp 0x40ede1
call sub.mfc90u.dll_AfxThrowInvalidArgException
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x268]
call fcn.0040f2ca
and dword [ebp - 0x274], 0
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x26c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp - 0x274]
call fcn.00429c15
ret 4