Function at 0x40c3a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5830c8
mov eax, dword fs:[0]
push eax
sub esp, 0x594
mov eax, dword [0x60b044]
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 - 0x594], ebx
mov ecx, dword [ebx + 0x328]
mov esi, dword [ebp + 8]
push 0
mov eax, dword [ecx]
call dword [eax + 0x144]
mov ecx, dword [ebx + 0x32c]
push 0
mov eax, dword [ecx]
call dword [eax + 0x144]
mov ecx, dword [ebx + 0x340]
mov dword [ebx + 0x358], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x40c424
push dword [ebx + 0x340]
mov ecx, ebx
call fcn.0040cee0
mov ecx, dword [ebx + 0x354]
add ecx, 0x4b8
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebx + 0x3b0]
lea edi, [ebx + 0x37c]
sub ecx, dword [edi + 0x30]
mov eax, 0x94f2095
imul ecx
mov dword [ebp - 0x5a0], edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
lea eax, [ebp - 0x420]
push 0x600b30
push eax
call fcn.00402ca0
mov ecx, dword [ebx + 0x344]
lea esi, [ebp - 0x420]
add esp, 0x10
mov edx, dword [ecx]
push esi
call dword [edx + 0x2c]
mov ecx, dword [edi + 0x34]
mov eax, 0x94f2095
sub ecx, dword [edi + 0x30]
imul ecx
mov ecx, dword [ebx + 0x348]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov eax, dword [ecx]
jne 0x40c4b1
push 1
call dword [eax + 0xd8]
jmp 0x40c8bb
push 0
call dword [eax + 0xd8]
push 0x208
xor edi, edi
mov dword [ebp - 0x58c], 0
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0042bf30
mov esi, dword [ebx + 0x3ac]
lea eax, [ebx + 0x37c]
add esp, 0xc
cmp esi, dword [eax + 0x34]
je 0x40c84a
lea edi, [ebx + 0x2c]
lea ebx, [esi + 0x8c]
mov dword [ebp - 0x598], edi
mov dword [ebp - 0x590], ebx
lea ecx, [ebp - 0x580]
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDialogBuilder::constructor_void_]
push 0
push edi
push 0
push 0
push ecx
mov eax, esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x580]
mov dword [eax], 0x600b8c
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 edi, eax
push str.skinItemName
mov ecx, edi
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
cmp byte [ebx + 0x4d], 0
mov dword [ebp - 0x584], eax
je 0x40c564
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.004142f0
mov ecx, eax
mov byte [ebp - 4], 1
jmp 0x40c57d
lea eax, [ebx - 0x74]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00428854
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 2
cmp dword [ecx + 0x14], 8
jb 0x40c585
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x584]
push ecx
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0x2c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40c5b5
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403400
cmp byte [ebx + 0x4f], 0
jne 0x40c603
push str.skinItemImage
mov ecx, edi
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
cmp dword [ebx], 8
mov dword [ebp - 0x588], eax
lea eax, [ebx - 0x14]
mov dword [ebp - 0x584], eax
jb 0x40c5de
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c603
cmp dword [ebx], 8
mov eax, dword [ebp - 0x584]
jb 0x40c5f6
mov eax, dword [eax]
mov ecx, dword [ebp - 0x588]
push eax
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CControlUI::SetBkImage_wchar_t_const__]
cmp byte [ebx + 0x4e], 0
mov ebx, dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CContainerUI::FindSubControl_wchar_t_const__]
je 0x40c639
push str.skinItemDefFav
mov ecx, edi
call ebx
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xd8]
push str.skinItemHasFav
mov ecx, edi
call ebx
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xd8]
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.004142f0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40c653
mov eax, dword [eax]
push eax
call fcn.0041a1d0
mov byte [ebp - 0x59c], al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40c681
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403400
push str.skinItemHotUsing
mov ecx, edi
call ebx
push dword [ebp - 0x59c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xd8]
mov ecx, dword [ebp - 0x58c]
mov eax, 0x55555556
imul ecx
push str.true
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [ebp - 0x584], ebx
push str.float
lea eax, [ebx + ebx*2]
imul ebx, ebx, 0x8c
sub ecx, eax
imul eax, ecx, 0xe0
mov ecx, edi
mov dword [ebp - 0x588], eax
mov eax, dword [edi]
call dword [eax + 0x120]
push ebx
push dword [ebp - 0x588]
lea eax, [ebp - 0x218]
push str._d__d
push eax
call fcn.00402ca0
mov eax, dword [edi]
lea ecx, [ebp - 0x218]
add esp, 0x10
push ecx
push 0x600c28
mov ecx, edi
call dword [eax + 0x120]
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.00414510
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [ecx + 0x14], 8
jb 0x40c72c
mov ecx, dword [ecx]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xc8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40c759
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403400
xor eax, eax
mov dword [ebp - 0x424], 7
push 0xe0
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x218]
push 0x600110
push eax
mov dword [ebp - 0x428], 0
call fcn.00402ca0
mov eax, dword [edi]
lea ecx, [ebp - 0x218]
add esp, 0xc
push ecx
push str.width
mov ecx, edi
call dword [eax + 0x120]
push 0x8c
lea eax, [ebp - 0x218]
push 0x600110
push eax
call fcn.00402ca0
mov eax, dword [edi]
lea ecx, [ebp - 0x218]
add esp, 0xc
push ecx
push str.height
mov ecx, edi
call dword [eax + 0x120]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0xd8]
mov ecx, dword [ebp - 0x594]
push edi
mov ecx, dword [ecx + 0x354]
add ecx, 0x4b8
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x580]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDialogBuilder::destructor_void_]
mov eax, dword [ebp - 0x5a0]
add esi, 0xdc
mov ebx, dword [ebp - 0x590]
inc dword [ebp - 0x58c]
add ebx, 0xdc
mov edi, dword [ebp - 0x598]
mov dword [ebp - 0x590], ebx
cmp esi, dword [eax + 0x34]
jne 0x40c504
mov ebx, dword [ebp - 0x594]
mov edi, dword [ebp - 0x584]
mov dword [ebx + 0x410], eax
lea eax, [edi + 1]
imul eax, eax, 0x8c
push eax
lea eax, [ebp - 0x218]
push 0x600110
push eax
call fcn.00402ca0
mov ecx, dword [ebx + 0x354]
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 0x600110
push eax
call fcn.00402ca0
mov ecx, dword [ebx + 0x354]
lea edx, [ebp - 0x218]
add esp, 0xc
mov eax, dword [ecx]
push edx
push str.width
call dword [eax + 0x120]
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.0041afe3
mov esp, ebp
pop ebp
ret 8