Function at 0x40a210
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
mov eax, dword [0x43bba8]
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 0xac]
push edi
mov ecx, esi
mov dword [esp + 0x184], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x40a2c8
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC71.DLL_CCmdTarget::BeginWaitCursor
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x194], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
mov ecx, ebx
mov byte [esp + 0x1a0], 2
call fcn.00409240
test eax, eax
jne 0x40a2cf
lea ecx, [esp + 0x14]
call dword [0x42a1f0]
lea ecx, [esp + 0x1c]
call dword [0x42a1f0]
mov dword [esp + 0x194], 0xffffffff
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC71.DLL_CCmdTarget::EndWaitCursor
xor eax, eax
jmp 0x40a511
mov edx, dword [ebx + 0xb4]
mov eax, dword [edx + 4]
lea esi, [ebx + 0xb0]
push eax
mov ecx, esi
call fcn.0040a070
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov eax, dword [ebx + 0xb4]
mov eax, dword [eax]
mov dword [ebx + 0xc8], eax
mov eax, dword [ebx + 0xc4]
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x40a473
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.004098b0
push 0x42c858
lea ecx, [esp + 0x34]
mov byte [esp + 0x198], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x1a0], 4
call fcn.00402680
lea edx, [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x1ac], 5
call fcn.00402680
add esp, 0x18
lea ecx, [esp + 0x34]
call dword [0x42a1f0]
lea ecx, [esp + 0x30]
mov byte [esp + 0x194], 7
call dword [0x42a1f0]
xor eax, eax
mov ecx, 0x50
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a43e
test byte [esp + 0x40], 0x10
jne 0x40a427
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x1a0], 9
call fcn.00402680
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x194], 0xb
call dword [0x42a1f0]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00409fa0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x194], 7
call dword [0x42a1f0]
lea ecx, [esp + 0x40]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a3c1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x28]
call dword [0x42a1f0]
lea ecx, [esp + 0x24]
mov byte [esp + 0x194], 2
call dword [0x42a1f0]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0xc4]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40a320
xor edi, edi
push ecx
lea eax, [ebx + 0xac]
mov dword [esp + 0x24], esp
mov ecx, esp
push eax
call dword [0x42a228]
mov eax, dword [ebx + 0xb4]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00409e00
mov eax, dword [eax]
mov ecx, dword [ebx + 0xb4]
add esp, 0x10
cmp eax, ecx
mov dword [ebx + 0xc8], eax
jne 0x40a4e0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.0040a070
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov eax, dword [ebx + 0xb4]
mov edx, dword [eax]
mov dword [ebx + 0xc8], edx
lea ecx, [esp + 0x14]
call dword [0x42a1f0]
lea ecx, [esp + 0x1c]
call dword [0x42a1f0]
mov dword [esp + 0x194], 0xffffffff
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC71.DLL_CCmdTarget::EndWaitCursor
mov eax, 1
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x184]
call fcn.00425abd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret