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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405eb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
push esi
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 4], 0
push 0x409624
lea eax, [ebp + 8]
push eax
call fcn.004021e0
and eax, 0xff
test eax, eax
je 0x4011ce
mov dword [ebp - 0x170], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x170]
jmp 0x401632
lea ecx, [ebp - 0x158]
push ecx
push str..
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x174]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1b0]
call fcn.004021d0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40124e
mov dword [ebp - 0x178], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x178]
jmp 0x401632
mov dword [ebp - 0x18], 1
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0
je 0x4015c8
push 0x408028
lea eax, [ebp - 0x15c]
push eax
call fcn.004021e0
and eax, 0xff
test eax, eax
jne 0x4012a9
push 0x40802c
lea ecx, [ebp - 0x15c]
push ecx
call fcn.004021e0
and eax, 0xff
test eax, eax
je 0x4012ae
jmp 0x40159d
mov edx, dword [ebp - 0x158]
and edx, 0x10
cmp edx, 0x10
jne 0x401329
push ecx
mov esi, esp
mov dword [ebp - 0x17c], esp
lea eax, [ebp - 0x15c]
push eax
push str._
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x180]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1b8]
push ecx
push esi
call sub.MFC42.DLL_operator
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1a8]
call fcn.00401167
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x180]
call sub.MFC42.DLL_CString::CString
jmp 0x40159d
lea edx, [ebp - 0x15c]
push edx
push 0x408034
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x184]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x1c0], eax
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x188]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1cc], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1cc]
call fcn.004021d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x184]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x160], 0
jne 0x40159d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 5
jne 0x40159d
lea eax, [ebp - 0x15c]
push eax
push 0x408038
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x18c]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1d4]
push ecx
lea edx, [ebp - 0x190]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1dc]
call fcn.004021d0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x168]
and ecx, 0xfffffffe
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x15c]
push eax
push 0x40803c
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x194]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1e4]
push ecx
lea edx, [ebp - 0x198]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1ec]
call fcn.004021d0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x198]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x15c]
push ecx
push 0x408040
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x19c]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x1f4]
push edx
lea eax, [ebp - 0x1a0]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x1fc]
call fcn.004021d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1a0]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00405948
jmp 0x40126b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x408044
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp + 8]
call fcn.004021d0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401604
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x1a4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4