Function at 0x40c7e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5841f8
mov eax, dword fs:[0]
push eax
sub esp, 0x594
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 - 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 0x40c864
push dword [ebx + 0x340]
mov ecx, ebx
call fcn.0040d320
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 0x601ce0
push eax
call fcn.004030d0
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 0x40c8f1
push 1
call dword [eax + 0xd8]
jmp 0x40ccfb
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.0042cfe0
mov esi, dword [ebx + 0x3ac]
lea eax, [ebx + 0x37c]
add esp, 0xc
cmp esi, dword [eax + 0x34]
je 0x40cc8a
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], 0x601d3c
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 0x40c9a4
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.00414750
mov ecx, eax
mov byte [ebp - 4], 1
jmp 0x40c9bd
lea eax, [ebx - 0x74]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.004298b1
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 2
cmp dword [ecx + 0x14], 8
jb 0x40c9c5
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 0x40c9f5
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
cmp byte [ebx + 0x4f], 0
jne 0x40ca43
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 0x40ca1e
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ca43
cmp dword [ebx], 8
mov eax, dword [ebp - 0x584]
jb 0x40ca36
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 0x40ca79
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.00414750
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40ca93
mov eax, dword [eax]
push eax
call fcn.0041a630
mov byte [ebp - 0x59c], al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40cac1
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
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.004030d0
mov eax, dword [edi]
lea ecx, [ebp - 0x218]
add esp, 0x10
push ecx
push 0x601dd8
mov ecx, edi
call dword [eax + 0x120]
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.00414970
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [ecx + 0x14], 8
jb 0x40cb6c
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 0x40cb99
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0x424], 7
push 0xe0
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x218]
push 0x6012c0
push eax
mov dword [ebp - 0x428], 0
call fcn.004030d0
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 0x6012c0
push eax
call fcn.004030d0
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 0x40c944
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 0x6012c0
push eax
call fcn.004030d0
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 0x6012c0
push eax
call fcn.004030d0
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.0041b461
mov esp, ebp
pop ebp
ret 8