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

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b8d0
push eax
mov dword fs:[0], esp
sub esp, 0x154
lea ecx, [ebp - 0x1c]
push ebx
push esi
call sub.MFC40.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC40.DLL_CString::CString
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
mov ebx, 2
mov byte [ebp - 4], 1
call fcn.0041559a
push 0x419150
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::CString_1
mov esi, eax
push 1
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], bl
call sub.MFC40.DLL_CString::Right
mov byte [ebp - 4], 3
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT40.dll__mbscmp]
add esp, 8
mov byte [ebp - 4], bl
cmp eax, 1
sbb eax, eax
inc eax
mov dword [ebp - 0x20], eax
call fcn.0040b8b8
mov byte [ebp - 4], 1
call fcn.0040b8c0
cmp dword [ebp - 0x20], 0
je 0x40b672
push 0x419150
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC40.DLL_CString::operator
mov byte [ebp - 4], 1
call fcn.0040b7a9
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x10]
push ecx
push edx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0041559a
mov byte [ebp - 4], 1
call fcn.0040b8b0
lea eax, [ebp - 0x160]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40b713
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x20]
push eax
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x14]
push eax
push ecx
call sub.MFC40.DLL_operator
mov byte [ebp - 4], 7
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
push eax
call sub.MFC40.DLL_CStringList::AddHead
mov byte [ebp - 4], 6
call fcn.0040b7b9
mov byte [ebp - 4], 1
call fcn.0040b7b1
lea eax, [ebp - 0x160]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b6b2
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x419a04
lea ecx, [ebp - 0x18]
mov ebx, 8
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], bl
push eax
push ecx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.0041559a
mov byte [ebp - 4], bl
call fcn.0040b8a8
mov byte [ebp - 4], 1
call fcn.0040b8a0
lea eax, [ebp - 0x160]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40b86c
test byte [ebp - 0x160], 0x10
je 0x40b849
lea eax, [ebp - 0x134]
mov ecx, 0x419260
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b7c1
or dl, dl
je 0x40b7a5
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b7c1
add eax, 2
add ecx, 2
or dl, dl
jne 0x40b789
xor eax, eax
jmp 0x40b7c6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b849
lea eax, [ebp - 0x134]
mov ecx, 0x41925c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b7f5
or dl, dl
je 0x40b7f1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b7f5
add eax, 2
add ecx, 2
or dl, dl
jne 0x40b7d5
xor eax, eax
jmp 0x40b7fa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b849
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x134]
push eax
mov ebx, 0xa
push ecx
lea ecx, [ebp - 0x20]
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], bl
call sub.MFC40.DLL_operator
push eax
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0xb
push ecx
call fcn.0040b5b0
add esp, 0xc
mov byte [ebp - 4], bl
call fcn.0040b898
mov byte [ebp - 4], 1
call fcn.0040b890
lea eax, [ebp - 0x160]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b771
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
call fcn.0040b8c8
mov dword [ebp - 4], 0xffffffff
call fcn.0040b8da
mov eax, dword [ebp - 0xc]
pop esi
mov dword fs:[0], eax
pop ebx
mov esp, ebp
pop ebp
ret