Function at 0x40e5e0
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42b190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x44]
mov byte [esp + 0x84], 2
call fcn.0041f5c0
push 0
lea ecx, [esp + 0x48]
call fcn.0041dd40
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 7
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 8
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0xc]
mov byte [esp + 0x84], 9
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 0xa
call sub.MFC42.DLL_CStringArray::CStringArray
push ecx
mov bl, 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x43770c
mov byte [esp + 0x8c], bl
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x34]
lea edx, [esp + 0x90]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x94], 0xc
call fcn.00428f24
lea edi, [esi + 0x148]
mov byte [esp + 0x90], bl
mov ecx, edi
call fcn.00402620
lea eax, [esp + 0x28]
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.004085a0
mov byte [esp + 0x84], 0xd
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
push 2
push ecx
lea ecx, [esp + 0x38]
call fcn.004085a0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 0xe
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call fcn.00402a70
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x88], 0xf
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x28]
push 3
push eax
lea ecx, [esp + 0x38]
call fcn.004085a0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x88], 0x10
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
push 4
push ecx
lea ecx, [esp + 0x38]
call fcn.004085a0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0x11
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x28]
push 5
push edx
lea ecx, [esp + 0x38]
call fcn.004085a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 0x12
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0xbc8]
lea ecx, [esp + 0xc]
push eax
push str._shistorylist.xml
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x9c]
add esp, 0xc
cmp eax, 1
jne 0x40ec81
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e9f8
push str.__xml_version_1.0__encoding_GB2312___
lea ecx, [esp + 0x48]
call fcn.0041dd40
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0
call fcn.00408590
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.root
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd00
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0
call fcn.00408590
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.item
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd40
lea ecx, [esp + 0x44]
call fcn.0041f520
push 0
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x4377a0
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd40
push 0
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.title
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd40
push 0
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x43780c
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd40
push 0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x437808
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd40
push 0
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.typeid
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd40
push 0
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.time
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd40
jmp 0x40ec6f
push ecx
mov ecx, dword [esp + 0x10]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ecx
lea ecx, [esp + 0x48]
call fcn.0041de90
test al, al
jne 0x40ea2a
push 0x10
push 0x437108
push 0x437774
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x40edb5
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
xor edi, edi
push ecx
lea ecx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], str.item
call fcn.0041e620
test al, al
je 0x40eaf4
lea ecx, [esp + 0x44]
call fcn.0041f520
push ecx
lea ecx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], 0x4377a0
call fcn.0041e620
lea edx, [esp + 0x28]
lea ecx, [esp + 0x44]
push edx
call fcn.0040dce0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x8c], 0x13
call esi
add esp, 8
test eax, eax
je 0x40eadb
inc edi
cmp edi, 0x1e
jl 0x40eabd
lea ecx, [esp + 0x44]
call fcn.0041f580
mov edx, dword [esp + 0xc]
push ecx
mov eax, esp
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], esp
mov dword [eax], edx
call fcn.0041e2c0
lea ecx, [esp + 0x44]
call fcn.0041f540
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40ea32
lea ecx, [esp + 0x44]
call fcn.0041f580
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x4c]
push 0
push 0
push eax
lea ecx, [esp + 0x50]
call fcn.0041f610
push ecx
lea ecx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], str.root
call fcn.0041e580
lea ecx, [esp + 0x44]
call fcn.0041f520
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0
call fcn.00408590
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.item
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd20
lea ecx, [esp + 0x44]
call fcn.0041f520
push 0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x4377a0
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd00
push 0
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.title
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd00
push 0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x43780c
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd00
push 0
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x437808
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd00
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.typeid
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd00
push 0
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040dcd0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.time
call fcn.00408590
lea ecx, [esp + 0x50]
call fcn.0040dd00
lea ecx, [esp + 0x44]
call fcn.0041f540
push ecx
mov ecx, dword [esp + 0x10]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ecx
jmp 0x40edac
cmp eax, 2
jne 0x40ed49
mov edx, dword [esp + 0xc]
push ecx
mov eax, esp
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], esp
mov dword [eax], edx
call fcn.0041de90
test al, al
je 0x40edb5
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
lea ecx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], str.item
call fcn.0041e620
test al, al
je 0x40edb5
lea ecx, [esp + 0x44]
call fcn.0041f520
push ecx
lea ecx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], 0x4377a0
call fcn.0041e620
lea eax, [esp + 0x28]
lea ecx, [esp + 0x44]
push eax
call fcn.0040dce0
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
call esi
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
lea ecx, [esp + 0x44]
jne 0x40ed23
call fcn.0041f540
jmp 0x40ecae
call fcn.0041f580
mov edx, dword [esp + 0xc]
push ecx
mov eax, esp
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], esp
mov dword [eax], edx
call fcn.0041e2c0
lea ecx, [esp + 0x44]
call fcn.0041f540
jmp 0x40edb5
cmp eax, 3
jne 0x40edb5
push ecx
mov ecx, dword [esp + 0x10]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ecx
lea ecx, [esp + 0x48]
call fcn.0041de90
test al, al
je 0x40edb5
push ecx
lea ecx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], str.item
call fcn.0041e620
test al, al
je 0x40ed9f
lea ecx, [esp + 0x44]
call fcn.0041f520
lea ecx, [esp + 0x44]
call fcn.0041f580
lea ecx, [esp + 0x44]
call fcn.0041f540
jmp 0x40ed68
mov edx, dword [esp + 0xc]
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], edx
lea ecx, [esp + 0x48]
call fcn.0041e2c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 0xa
call fcn.00429200
lea ecx, [esp + 0xc]
mov byte [esp + 0x84], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x84], 0
call fcn.0041dc00
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret 8