Function at 0x40cd20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584253
mov eax, dword fs:[0]
push eax
sub esp, 0x5b4
mov eax, dword [0x60c044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x5b4], ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x420]
push 0x6012d0
push eax
call fcn.004030d0
add esp, 0xc
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040d6a0
mov esi, eax
mov dword [ebp - 0x5b0], esi
test esi, esi
je 0x40d2f3
mov ecx, dword [ebx + 0x338]
mov dword [ebx + 0x358], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0xd4]
call edx
test al, al
jne 0x40cdb6
push dword [ebx + 0x338]
mov ecx, ebx
call fcn.0040d320
mov ecx, dword [ebx + 0x350]
add ecx, 0x4b8
mov eax, dword [ecx]
call dword [eax + 0x20]
push 0x208
xor edi, edi
mov dword [ebp - 0x5ac], 0
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0042d010
add esp, 0xc
mov ecx, ebx
call fcn.0040d990
mov esi, dword [esi + 0x30]
mov byte [ebp - 0x599], al
mov eax, dword [ebp - 0x5b0]
cmp esi, dword [eax + 0x34]
je 0x40d26e
lea eax, [ebx + 0x364]
mov dword [ebp - 0x5b8], eax
lea edi, [esi + 0x8c]
lea eax, [ebx + 0x2c]
mov dword [ebp - 0x5a8], edi
mov dword [ebp - 0x5bc], eax
nop dword [eax + eax]
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.00414750
mov ebx, eax
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x40ce4f
mov ebx, dword [ebx]
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x40ce6c
mov eax, dword [edx]
jmp 0x40ce6e
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebx], cx
jne 0x40ce7c
xor eax, eax
jmp 0x40ce9a
mov eax, ebx
lea ecx, [eax + 2]
mov dword [ebp - 0x5a4], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce87
sub eax, dword [ebp - 0x5a4]
sar eax, 1
push eax
push ebx
mov ecx, edx
call fcn.00403620
mov ecx, dword [ebp - 0x5b8]
call fcn.00416420
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x424]
mov byte [ebp - 0x59a], al
cmp ecx, 8
jb 0x40ced9
inc ecx
push ecx
push dword [ebp - 0x438]
lea ecx, [ebp - 0x438]
call fcn.00403830
lea ecx, [ebp - 0x598]
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDialogBuilder::constructor_void_]
push 0
push dword [ebp - 0x5bc]
mov dword [ebp - 4], 1
push 0
push 0
push ecx
mov eax, esp
lea ecx, [ebp - 0x598]
mov dword [eax], 0x601d4c
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CDialogBuilder::Create_class_DuiLib::STRINGorID__wchar_t_const___class_DuiLib::IDialogBuilderCallback___class_DuiLib::CPaintManagerUI___class_DuiLib::CControlUI__]
mov ebx, eax
push str.skinItemName
mov ecx, ebx
mov dword [ebp - 0x5a4], ebx
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
cmp byte [edi + 0x4d], 0
mov dword [ebp - 0x5a0], eax
je 0x40cf44
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.00414750
mov ecx, eax
mov byte [ebp - 4], 2
jmp 0x40cf5d
lea eax, [edi - 0x74]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00429965
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 3
cmp dword [ecx + 0x14], 8
jb 0x40cf65
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x5a0]
push ecx
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0x2c]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40cf95
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
cmp byte [edi + 0x4f], 0
jne 0x40cfeb
push str.skinItemImage
mov ecx, ebx
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
cmp dword [edi], 8
mov dword [ebp - 0x5a0], eax
jb 0x40cfbb
mov ecx, dword [edi - 0x14]
add edi, 0xffffffec
jmp 0x40cfc0
add edi, 0xffffffec
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cfe5
mov eax, dword [ebp - 0x5a8]
cmp dword [eax], 8
jb 0x40cfd8
mov edi, dword [edi]
mov ecx, dword [ebp - 0x5a0]
push edi
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CControlUI::SetBkImage_wchar_t_const__]
mov edi, dword [ebp - 0x5a8]
cmp byte [edi + 0x4e], 0
je 0x40d02f
push str.skinItemDefFav
mov ecx, ebx
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
movzx ecx, byte [edi + 0x4e]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xd8]
push str.skinItemHasFav
mov ecx, ebx
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
cmp byte [edi + 0x4e], 0
sete cl
mov edx, dword [eax]
movzx ecx, cl
push ecx
mov ecx, eax
call dword [edx + 0xd8]
cmp byte [ebp - 0x599], 0
jne 0x40d041
cmp byte [ebp - 0x59a], 0
je 0x40d05e
mov edi, dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
mov ecx, ebx
push str.skinItemVip
call edi
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xd8]
jmp 0x40d064
mov edi, dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.00414750
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x40d07e
mov eax, dword [eax]
push eax
call fcn.0041a630
mov byte [ebp - 0x5c0], al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40d0ac
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
push str.skinItemHotUsing
mov ecx, ebx
call edi
push dword [ebp - 0x5c0]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xd8]
mov ecx, dword [ebp - 0x5ac]
mov eax, 0x55555556
imul ecx
push str.true
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 0x5a0], edi
push str.float
lea eax, [edi + edi*2]
imul edi, edi, 0x8c
sub ecx, eax
imul ebx, ecx, 0xe0
mov ecx, dword [ebp - 0x5a4]
mov eax, dword [ecx]
call dword [eax + 0x120]
push edi
push ebx
lea eax, [ebp - 0x218]
push str._d__d
push eax
call fcn.004030d0
mov ebx, dword [ebp - 0x5a4]
lea ecx, [ebp - 0x218]
add esp, 0x10
mov eax, dword [ebx]
push ecx
push 0x601de8
mov ecx, ebx
call dword [eax + 0x120]
lea eax, [ebp - 0x450]
mov ecx, esi
push eax
call fcn.00414970
mov ecx, eax
mov byte [ebp - 4], 5
cmp dword [ecx + 0x14], 8
jb 0x40d156
mov ecx, dword [ecx]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0xc8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x40d183
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x43c], 7
push 0xe0
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x218]
push 0x6012d0
push eax
mov dword [ebp - 0x440], 0
call fcn.004030d0
mov eax, dword [ebx]
lea ecx, [ebp - 0x218]
add esp, 0xc
push ecx
push str.width
mov ecx, ebx
call dword [eax + 0x120]
push 0x8c
lea eax, [ebp - 0x218]
push 0x6012d0
push eax
call fcn.004030d0
mov eax, dword [ebx]
lea ecx, [ebp - 0x218]
add esp, 0xc
push ecx
push str.height
mov ecx, ebx
call dword [eax + 0x120]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0xd8]
mov ecx, dword [ebp - 0x5b4]
push ebx
mov ecx, dword [ecx + 0x350]
add ecx, 0x4b8
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x598]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDialogBuilder::destructor_void_]
mov eax, dword [ebp - 0x5b0]
add esi, 0xdc
mov edi, dword [ebp - 0x5a8]
inc dword [ebp - 0x5ac]
add edi, 0xdc
mov dword [ebp - 0x5a8], edi
cmp esi, dword [eax + 0x34]
jne 0x40ce30
mov edi, dword [ebp - 0x5a0]
mov ebx, dword [ebp - 0x5b4]
mov dword [ebx + 0x410], eax
lea eax, [edi + 1]
imul eax, eax, 0x8c
push eax
lea eax, [ebp - 0x218]
push 0x6012d0
push eax
call fcn.004030d0
mov ecx, dword [ebx + 0x350]
lea edx, [ebp - 0x218]
add esp, 0xc
mov eax, dword [ecx]
push edx
push str.height
call dword [eax + 0x120]
push 0x2a0
lea eax, [ebp - 0x218]
push 0x6012d0
push eax
call fcn.004030d0
mov ecx, dword [ebx + 0x350]
lea edx, [ebp - 0x218]
add esp, 0xc
mov eax, dword [ecx]
push edx
push str.width
call dword [eax + 0x120]
mov dword [ebx + 0x360], 0
mov dword [ebx + 0x35c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b443
mov esp, ebp
pop ebp
ret 8