Function at 0x40d420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42af80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x80], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x44]
mov byte [esp + 0x80], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 2
call fcn.0041f5c0
push 0
lea ecx, [esp + 0x44]
call fcn.0041dd40
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 7
mov ebp, 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 8
call sub.MFC42.DLL_CStringArray::CStringArray
push ecx
mov bl, 9
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x43770c
mov byte [esp + 0x88], bl
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x30]
lea edx, [esp + 0x8c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x90], 0xa
call fcn.00428f24
lea esi, [edi + 0x148]
mov byte [esp + 0x8c], bl
mov ecx, esi
call fcn.00402620
lea eax, [esp + 0x24]
push ebp
push eax
lea ecx, [esp + 0x34]
call fcn.004085a0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 0xb
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], bl
call sub.MFC42.DLL_CString::CString
push 2
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x34]
call fcn.004085a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 0xc
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x24]
push 3
push edx
lea ecx, [esp + 0x34]
call fcn.004085a0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0xd
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00402a70
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0xe
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [edi + 0xbc8]
lea edx, [esp + 0x10]
push ecx
push str._s_favorites.xml
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x98]
add esp, 0xc
cmp eax, ebp
jne 0x40dad1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d780
push str.__xml_version_1.0__encoding_GB2312___
lea ecx, [esp + 0x44]
call fcn.0041dd40
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x94], esp
push 0
call fcn.00408590
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push str.root
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd00
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x94], esp
push 0
call fcn.00408590
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push str.item
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd40
lea ecx, [esp + 0x40]
call fcn.0041f520
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push 0x4377a0
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd40
push 0
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push str.typeid
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd40
push 0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push str.title
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd40
push 0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push str.time
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd40
jmp 0x40da8e
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [esp + 0x90], esp
mov dword [eax], ecx
lea ecx, [esp + 0x44]
call fcn.0041de90
test al, al
jne 0x40d7b5
push 0x10
push 0x437108
push 0x437774
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x40dc2c
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov dword [esp + 0x24], 0
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], str.item
call fcn.0041e620
test al, al
je 0x40d944
lea ecx, [esp + 0x40]
call fcn.0041f520
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], 0x4377a0
call fcn.0041e620
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x40]
push edx
call fcn.0040dce0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c]
push eax
push ecx
mov byte [esp + 0x88], 0xf
call esi
add esp, 8
test eax, eax
je 0x40d87d
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x3c
mov dword [esp + 0x24], eax
jl 0x40d85c
lea ecx, [esp + 0x40]
call fcn.0041f580
mov edx, dword [esp + 0x10]
push ecx
mov eax, esp
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], esp
mov dword [eax], edx
call fcn.0041e2c0
lea ecx, [esp + 0x40]
call fcn.0041f540
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d7c3
push 0
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0040dcd0
lea ecx, [esp + 0x48]
call fcn.0040dd60
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], str.typeid
call fcn.0041e620
push 0
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0040dcd0
lea ecx, [esp + 0x48]
call fcn.0040dd60
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], str.title
call fcn.0041e620
push 0
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0040dcd0
lea ecx, [esp + 0x48]
call fcn.0040dd60
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], str.time
call fcn.0041e620
push 0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0040dcd0
lea ecx, [esp + 0x48]
call fcn.0040dd60
lea ecx, [esp + 0x8c]
xor ebp, ebp
mov byte [esp + 0x80], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x48]
push 0
push 0
push eax
lea ecx, [esp + 0x4c]
call fcn.0041f610
test ebp, ebp
je 0x40da8e
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x90], esp
mov dword [eax], str.root
call fcn.0041e580
lea ecx, [esp + 0x40]
call fcn.0041f520
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x94], esp
push 0
call fcn.00408590
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push str.item
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd20
lea ecx, [esp + 0x40]
call fcn.0041f520
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push 0x4377a0
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd00
push 0
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push str.typeid
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd00
push 0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push str.title
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd00
push 0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push str.time
call fcn.00408590
lea ecx, [esp + 0x4c]
call fcn.0040dd00
lea ecx, [esp + 0x40]
call fcn.0041f540
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [esp + 0x90], esp
mov dword [eax], ecx
lea ecx, [esp + 0x44]
call fcn.0041e2c0
test al, al
push 0
push 0
je 0x40dac0
push 0x437760
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x40dc2c
push 0x43774c
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x40dc2c
cmp eax, 2
jne 0x40dbb7
mov edx, dword [esp + 0x10]
push ecx
mov eax, esp
lea ecx, [esp + 0x44]
mov dword [esp + 0x90], esp
mov dword [eax], edx
call fcn.0041de90
test al, al
je 0x40dba5
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], str.item
call fcn.0041e620
test al, al
je 0x40dba5
lea ecx, [esp + 0x40]
call fcn.0041f520
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], 0x4377a0
call fcn.0041e620
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x40]
push eax
call fcn.0040dce0
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call esi
add esp, 8
lea ecx, [esp + 0x8c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
lea ecx, [esp + 0x40]
jne 0x40db7c
call fcn.0041f540
jmp 0x40db01
call fcn.0041f580
mov edx, dword [esp + 0x10]
push ecx
mov eax, esp
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], esp
mov dword [eax], edx
call fcn.0041e2c0
lea ecx, [esp + 0x40]
call fcn.0041f540
jmp 0x40dc2c
push 0
push 0
push 0x43773c
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x40dc2c
cmp eax, 3
jne 0x40dc2c
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [esp + 0x90], esp
mov dword [eax], ecx
lea ecx, [esp + 0x44]
call fcn.0041de90
test al, al
je 0x40dc2c
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x90], esp
mov dword [eax], str.item
call fcn.0041e620
test al, al
je 0x40dc13
lea ecx, [esp + 0x40]
call fcn.0041f520
lea ecx, [esp + 0x40]
call fcn.0041f580
lea ecx, [esp + 0x40]
call fcn.0041f540
jmp 0x40dbd9
mov edx, dword [esp + 0x10]
push ecx
mov eax, esp
lea ecx, [esp + 0x44]
mov dword [esp + 0x90], esp
mov dword [eax], edx
call fcn.0041e2c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 8
call fcn.00429200
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 0
call fcn.0041dc00
lea ecx, [esp + 0x88]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret 8