Function at 0x40d9a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4155d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
mov eax, dword [0x41c260]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x274], eax
mov ebx, ecx
mov eax, edi
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d9e0
sub eax, edx
add eax, 0xa
push eax
call sub.MFC71.DLL_operator_new
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40da00
push esi
call fcn.004100f0
add esp, 4
mov edi, esi
dec edi
test eax, eax
jne 0x40da40
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40da20
mov ax, word [0x416a28]
mov word [edi], ax
mov cl, byte [0x416a2a]
mov byte [edi + 2], cl
jmp 0x40da52
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40da40
mov dx, word [0x416a24]
mov word [edi], dx
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
push esi
mov dword [esp + 0x24], edi
call sub.MFC71.DLL_operator_delete
add esp, 4
cmp edi, 0xffffffff
je 0x40dd67
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push ecx
push edx
push edi
mov ecx, ebx
call fcn.0040d940
lea esp, [esp]
mov esi, dword [sym.imp.MSVCR71.dll__mbscmp]
lea eax, [esp + 0x54]
push 0x416a20
push eax
call esi
add esp, 8
test eax, eax
je 0x40dd44
lea ecx, [esp + 0x54]
push 0x416a1c
push ecx
call esi
add esp, 8
test eax, eax
je 0x40dd44
test byte [esp + 0x28], 0x10
je 0x40dc23
mov eax, dword [ebx + 0x218]
test eax, eax
je 0x40dd44
mov edx, dword [ebp + 8]
push edx
lea ecx, [esp + 0x18]
call dword [0x416138]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28c], 0
call fcn.00410210
add esp, 8
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, edi
call fcn.0040c780
test eax, eax
jne 0x40dbee
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x288], 1
call fcn.0040d170
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00410210
push 0x40
call sub.MFC71.DLL_operator_new_1
mov esi, eax
add esp, 0xc
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x284], 2
je 0x40db82
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push edi
mov ecx, esi
call fcn.0040ca90
mov esi, eax
jmp 0x40db84
xor esi, esi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
push eax
push 1
lea ecx, [esp + 0x60]
push ecx
push edi
mov ecx, ebx
mov byte [esp + 0x298], 1
call fcn.0040d8b0
push esi
mov ecx, edi
call fcn.0040d3d0
test eax, eax
jne 0x40dbc7
test esi, esi
je 0x40dbe2
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40dc09
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push esi
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, ebx
call fcn.0040d9a0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40dc09
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, ebx
call fcn.0040d9a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x284], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40dd44
lea eax, [esp + 0x54]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dc30
sub eax, edx
mov edx, dword [esp + 0x10]
mov ebx, eax
mov byte [esp + 0x168], cl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x169]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
add edx, 0x114
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.MSVCR71.dll__mbsnbcpy]
mov edi, dword [sym.imp.MSVCR71.dll__mbstok]
lea ecx, [esp + 0x174]
push 0x416a18
push ecx
call edi
add esp, 0x14
test eax, eax
je 0x40dd3d
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40dc98
sub ecx, esi
push ecx
mov edx, ebx
push eax
sub edx, ecx
lea eax, [esp + edx + 0x5c]
push eax
call dword [sym.imp.MSVCR71.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x40dccb
push 0x416a18
push 0
call edi
add esp, 8
test eax, eax
jne 0x40dc93
jmp 0x40dd3d
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x20]
call dword [0x416138]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28c], 3
call fcn.00410210
add esp, 8
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0040c780
test eax, eax
jne 0x40dd28
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x60]
push eax
push esi
call fcn.0040d8b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x284], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ebx, dword [esp + 0x10]
mov edi, dword [ebp + 0xc]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40da90
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x274]
call fcn.004140fd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10