Function at 0x412840
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x433a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x8c]
xor ebp, ebp
push 0xffffffffffffffff
push ebp
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetSize
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
mov dword [esp + 0x84], ebp
push eax
call fcn.00422a00
add esp, 4
lea ecx, [esp + 0x10]
push str.Skin.
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebp
push ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 4
call fcn.0041ac40
mov dword [esp + 0x68], ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 6
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], 7
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, ebp
je 0x412a4b
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov bl, 9
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x412a41
mov edx, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [edx + 0x40]
cmp eax, ebp
je 0x412a41
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
lea ecx, [esp + 0x8c]
mov byte [esp + 0x84], 8
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::GetFilePath
push str._skin.xml
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], bl
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x8c]
push edx
call esi
test eax, eax
je 0x412a1c
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x40]
push eax
call fcn.0041aca0
push str.SKINCONFIG
lea ecx, [esp + 0x44]
call fcn.0041af90
test al, al
je 0x412a1c
lea ecx, [esp + 0x1c]
push str.skinmode
push ecx
lea ecx, [esp + 0x48]
call fcn.0040a3e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebp
je 0x412a1c
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
dec eax
mov ecx, edi
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x8c]
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
cmp dword [esp + 0x20], ebp
jne 0x412923
mov eax, dword [edi + 8]
cmp eax, ebp
jle 0x412aac
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
lea esi, [eax - 1]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x20]
push esi
push eax
mov ecx, edi
call fcn.00410a70
mov eax, dword [eax]
push 0x43f7fc
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x412a98
push 1
push esi
mov ecx, edi
call sub.MFC42.DLL_CStringArray::RemoveAt
mov eax, dword [esp + 0x8c]
dec esi
dec eax
mov dword [esp + 0x8c], eax
jne 0x412a62
xor ebp, ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 6
call fcn.004314f8
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x74]
xor esi, esi
dec ecx
mov byte [esp + 0x84], 0xc
sar ecx, 0x10
inc ecx
test ecx, ecx
jle 0x412b03
mov edx, dword [esp + 0x70]
mov eax, dword [edx + esi*4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x78]
add esp, 4
inc esi
dec eax
sar eax, 0x10
inc eax
cmp esi, eax
jl 0x412ae5
mov eax, dword [esp + 0x70]
cmp eax, ebp
je 0x412b14
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x6c]
cmp ecx, ebp
je 0x412b57
xor edi, edi
mov eax, dword [edi + ecx]
cmp eax, ebp
je 0x412b46
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00411ae0
push ecx
push 0xc
push eax
call fcn.0043181f
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x70]
add esp, 4
add edi, 4
cmp edi, 0x1c
jl 0x412b1e
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x6c], ebp
mov byte [esp + 0x84], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret