Function at 0x40e120
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x426d8b
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x868
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x40e3df
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esp + 0x884]
push str.config.xml
lea edx, [esp + 0x28]
mov dword [esp + 0x880], edi
mov ecx, dword [eax]
push ecx
push str._s_s
push edx
call sub.MFC42u.DLL_CString::Format
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, edi
mov byte [esp + 0x87c], 1
je 0x40e1a2
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.00401ed0
jmp 0x40e1a4
xor eax, eax
cmp eax, edi
mov byte [esp + 0x87c], 0
mov dword [esp + 0x54], eax
jne 0x40e1be
push 0x8007000e
call fcn.004253d0
mov esi, dword [esp + 0x24]
mov bl, 2
push 0xc
mov byte [esp + 0x880], bl
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, edi
mov byte [esp + 0x87c], 3
je 0x40e1ef
push esi
mov ecx, eax
call fcn.00401ed0
jmp 0x40e1f1
xor eax, eax
cmp eax, edi
mov byte [esp + 0x87c], bl
mov dword [esp + 0x20], eax
jne 0x40e20a
push 0x8007000e
call fcn.004253d0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
lea eax, [esp + 0x54]
lea ecx, [esp + 0x38]
push eax
call fcn.0040bfb0
mov eax, dword [esp + 0x20]
mov esi, 0x4286a8
cmp eax, edi
mov byte [esp + 0x87c], 7
mov dword [esp + 0x2c], esi
je 0x40e2e9
mov eax, dword [eax]
cmp eax, edi
je 0x40e2e9
push eax
call dword [0x42858c]
cmp eax, edi
jbe 0x40e2e9
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x40e262
mov eax, dword [eax]
jmp 0x40e264
xor eax, eax
push eax
call dword [0x4285bc]
test eax, eax
jne 0x40e280
lea ecx, [esp + 0x20]
push edi
push ecx
lea ecx, [esp + 0x34]
call fcn.00401840
jmp 0x40e2e9
lea edx, [esp + 0x74]
push 0x400
push edx
push edi
call dword [0x4280c0]
lea eax, [esp + 0x74]
push eax
call dword [0x4285c8]
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x40e2a8
mov eax, dword [eax]
jmp 0x40e2aa
xor eax, eax
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x78]
push ecx
push edx
call dword [0x4285cc]
lea eax, [esp + 0x74]
lea ecx, [esp + 0x10]
push eax
call fcn.00401020
lea ecx, [esp + 0x10]
push edi
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x884], 8
call fcn.00401840
lea ecx, [esp + 0x10]
call fcn.00401660
lea ecx, [esp + 0x20]
call fcn.00401660
lea ecx, [esp + 0x54]
mov byte [esp + 0x87c], 0xa
call fcn.00401660
push edi
lea ecx, [esp + 0x34]
call fcn.00405f90
test al, al
jne 0x40e3ac
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, edi
mov byte [esp + 0x87c], 0xc
je 0x40e33d
push str.Root.Config_Skin_Item
mov ecx, eax
call fcn.00401ed0
jmp 0x40e33f
xor eax, eax
cmp eax, edi
mov byte [esp + 0x87c], 0xa
mov dword [esp + 0x50], eax
jne 0x40e359
push 0x8007000e
call fcn.004253d0
lea edx, [esp + 0x50]
lea eax, [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x884], 0xd
call fcn.00403660
lea ecx, [esp + 0x50]
mov byte [esp + 0x87c], 0xf
call fcn.00401660
push edi
lea ecx, [esp + 0x74]
call fcn.00405f90
test al, al
jne 0x40e39b
mov eax, dword [esp + 0x6c]
cmp eax, edi
jg 0x40e3e6
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0x4286a4
call fcn.00405fc0
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], esi
call fcn.00401660
lea ecx, [esp + 0x34]
call fcn.00401660
lea ecx, [esp + 0x30]
call fcn.00405fc0
lea ecx, [esp + 0x24]
mov dword [esp + 0x87c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x40e6b4
push ebp
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x2c], eax
jle 0x40e678
mov esi, dword [0x4285d0]
mov bl, 0x13
lea ecx, [esp + 0x44]
push ebp
push ecx
lea ecx, [esp + 0x74]
call fcn.004032e0
lea ecx, [esp + 0x44]
mov byte [esp + 0x880], 0x10
call fcn.00403640
test al, al
je 0x40e65a
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_1
push str.SkinPath
lea ecx, [esp + 0x6c]
mov byte [esp + 0x884], 0x11
call fcn.00401020
lea edx, [esp + 0x10]
push edi
lea eax, [esp + 0x6c]
push edx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x88c], 0x12
call fcn.00403170
lea ecx, [esp + 0x68]
mov byte [esp + 0x880], 0x11
call fcn.00401660
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], edi
je 0x40e649
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_1
push str.StorageFile
lea ecx, [esp + 0x60]
mov byte [esp + 0x884], bl
call fcn.00401020
lea edx, [esp + 0x18]
push edi
lea eax, [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x88c], 0x14
call fcn.00403170
lea ecx, [esp + 0x5c]
mov byte [esp + 0x880], bl
call fcn.00401660
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], edi
je 0x40e638
push str.DefaultSkin
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], edi
call fcn.00401020
lea edx, [esp + 0x64]
push edi
lea eax, [esp + 0x64]
push edx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x88c], 0x15
call fcn.00404400
lea ecx, [esp + 0x60]
mov byte [esp + 0x880], bl
call fcn.00401660
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0040d900
add esp, 8
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x880], 0x16
cmp dword [eax - 8], edi
je 0x40e628
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x888]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x2c]
push str._s_s_s
push edx
mov byte [esp + 0x894], 0x17
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x34]
add esp, 0x14
push eax
call esi
test eax, eax
je 0x40e617
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_1
mov edx, dword [esp + 0x888]
mov ecx, dword [esp + 0x1c]
push str.miniui.xml
push ecx
mov eax, dword [edx]
lea ecx, [esp + 0x1c]
push eax
push str._s_s_s
push ecx
mov byte [esp + 0x894], 0x18
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0x14
push edx
call esi
test eax, eax
je 0x40e606
mov ecx, dword [esp + 0x890]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0040e6d0
add esp, 8
test eax, eax
je 0x40e606
mov eax, dword [esp + 0x88c]
mov ecx, dword [esp + 0x20]
push ecx
push edi
mov edx, dword [eax]
push eax
call dword [edx]
cmp dword [esp + 0x64], edi
je 0x40e606
mov eax, dword [esp + 0x88c]
mov ecx, dword [esp + 0x20]
push ecx
push edi
mov edx, dword [eax]
push eax
call dword [edx + 0x1c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x880], 0x17
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x880], 0x16
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x880], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x880], 0x11
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x880], 0x10
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x880], 0xf
call fcn.00401360
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jl 0x40e3fd
lea ecx, [esp + 0x6c]
mov byte [esp + 0x880], 0xa
call fcn.00401420
lea ecx, [esp + 0x30]
mov byte [esp + 0x880], 0
call fcn.00401790
lea ecx, [esp + 0x28]
mov dword [esp + 0x880], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x874]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x874
ret