Function at 0x40f479
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b304
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
mov dword [ebp - 0x18c], ecx
lea ecx, [ebp - 0x2c]
call sub.mfc42.dll_CFileFind::CFileFind
mov dword [ebp - 4], 0
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x164]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x154]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov byte [ebp - 4], 2
lea edx, [ebp - 0x174]
push edx
lea ecx, [ebp - 0x144]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov byte [ebp - 4], 3
push 0x104
push 0
lea eax, [ebp - 0x130]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
push 0
push 0
lea ecx, [ebp - 0x2c]
call sub.mfc42.dll_CFileFind::FindFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40f733
lea ecx, [ebp - 0x2c]
call sub.mfc42.dll_CFileFind::FindNextFileA
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x178]
push edx
lea ecx, [ebp - 0x2c]
call sub.mfc42.dll_CFileFind::GetFilePath
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x194], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x194]
call fcn.00414ba0
push eax
lea ecx, [ebp - 0x130]
push ecx
call sub.msvcrt.dll__mbscpy
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x178]
call fcn.00419ff8
lea ecx, [ebp - 0x2c]
call sub.mfc42.dll_CFileFind::IsDots
test eax, eax
je 0x40f59c
jmp 0x40f52a
lea ecx, [ebp - 0x2c]
call fcn.0040f890
test eax, eax
je 0x40f5c3
mov dl, byte [ebp + 0xc]
push edx
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x18c]
call fcn.0040f479
jmp 0x40f52a
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
test ecx, ecx
je 0x40f63e
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [ebp - 0x18c]
call fcn.0040f782
and eax, 0xff
test eax, eax
je 0x40f639
lea ecx, [ebp - 0x168]
call sub.mfc42.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
mov byte [ebp - 4], 5
lea eax, [ebp - 0x130]
push eax
push str._s_include_DBCS_character
lea ecx, [ebp - 0x168]
push ecx
call sub.mfc42.dll_CString::Format
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x168]
call fcn.00414ba0
push eax
call sub.mfc42.dll_AfxMessageBox_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x168]
call fcn.00419ff8
jmp 0x40f52a
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.msvcrt.dll__strlwr]
add esp, 4
push eax
lea ecx, [ebp - 0x154]
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [ebp - 0x18c]
add eax, 0x12c
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
add esp, 4
push eax
lea ecx, [ebp - 0x144]
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [ebp - 0x144]
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov dword [ebp - 0x134], eax
mov ecx, dword [sym.imp.msvcp60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x154]
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov dword [ebp - 0x198], eax
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x19c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x164]
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x188]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0
lea ecx, [ebp - 0x164]
call dword [sym.imp.msvcp60.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
mov ecx, dword [ebp - 0x18c]
call fcn.0040f005
and eax, 0xff
test eax, eax
je 0x40f72e
push 0
lea ecx, [ebp - 0x164]
call dword [sym.imp.msvcp60.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0xa0
call fcn.00408d20
jmp 0x40f52a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x144]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x154]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041a364
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8