Function at 0x41d470
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43ecdc
push eax
mov eax, 0x1010
mov dword fs:[0], esp
call fcn.00439c20
mov ax, word [0x44ffe8]
push ebp
push esi
mov ebp, ecx
push edi
mov word [esp + 0x81c], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x81e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x18], edi
je 0x41d4f5
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x41d4d5
push 0x3eb
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
jmp 0x41d4d7
xor esi, esi
call fcn.00405ac0
cmp eax, edi
je 0x41d4f5
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x2774
push esi
push eax
call dword [ecx + 0x20]
cmp eax, edi
jne 0x41d4fc
xor eax, eax
jmp 0x41d703
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
push eax
mov ecx, dword [eax]
call dword [ecx]
lea edx, [esp + 0x14]
mov esi, eax
test edx, edx
je 0x41d539
cmp esi, edi
mov dword [esp + 0x14], edi
je 0x41d6fe
call fcn.00405ac0
cmp eax, edi
je 0x41d539
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x2710
push esi
push eax
call dword [ecx + 0x20]
cmp dword [esp + 0x14], edi
je 0x41d6fe
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
mov ecx, ebp
mov dword [esp + 0x1028], edi
call fcn.0041f920
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
je 0x41d591
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.0041fdb0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x102c], 1
call sub.MFC42u.DLL_CString::operator_2
mov byte [esp + 0x1028], 0
lea ecx, [esp + 0x10]
jmp 0x41d5b1
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x44fec0
call fcn.004031d0
mov edx, dword [eax]
push str.defaultskin
push edx
call ebx
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], edi
je 0x41d5fa
cmp edx, edi
je 0x41d5fa
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x20]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push edx
push 0
call fcn.00407680
add esp, 0x10
test eax, eax
je 0x41d5f8
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d64e
xor edi, edi
lea edx, [esp + 0x10]
mov ecx, 0x44fec0
push edx
call fcn.004030d0
mov eax, dword [ebp + 0x154]
lea esi, [ebp + 0x154]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x824]
push eax
push ecx
mov byte [esp + 0x1034], 2
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], 0
call sub.MFC42u.DLL_CString::CString
jmp 0x41d650
xor edi, edi
mov eax, dword [esp + 0x1c]
push 0x44cb90
push eax
mov edx, dword [eax]
call dword [edx + 0x3c]
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 8]
cmp eax, 4
jle 0x41d6e9
lea ecx, [esp + 0x10]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Right
mov edx, dword [eax]
push str..png
push edx
call ebx
add esp, 8
cmp eax, edi
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x41d6e9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov ecx, ebp
call fcn.0041f920
test eax, eax
je 0x41d6e9
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.0041ff80
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push eax
push ecx
mov edx, dword [ecx]
mov byte [esp + 0x1030], 3
call dword [edx + 0x3c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x1028], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop ebx
mov eax, 1
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x101c
ret