Function at 0x40c8e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583133
mov eax, dword fs:[0]
push eax
sub esp, 0x5b4
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 - 0x5b4], ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x420]
push 0x600110
push eax
call fcn.00402ca0
add esp, 0xc
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040d260
mov esi, eax
mov dword [ebp - 0x5b0], esi
test esi, esi
je 0x40ceb3
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 0x40c976
push dword [ebx + 0x338]
mov ecx, ebx
call fcn.0040cee0
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.0042bf30
add esp, 0xc
mov ecx, ebx
call fcn.0040d550
mov esi, dword [esi + 0x30]
mov byte [ebp - 0x599], al
mov eax, dword [ebp - 0x5b0]
cmp esi, dword [eax + 0x34]
je 0x40ce2e
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.004142f0
mov ebx, eax
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x40ca0f
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 0x40ca2c
mov eax, dword [edx]
jmp 0x40ca2e
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebx], cx
jne 0x40ca3c
xor eax, eax
jmp 0x40ca5a
mov eax, ebx
lea ecx, [eax + 2]
mov dword [ebp - 0x5a4], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ca47
sub eax, dword [ebp - 0x5a4]
sar eax, 1
push eax
push ebx
mov ecx, edx
call fcn.004031f0
mov ecx, dword [ebp - 0x5b8]
call fcn.00415fc0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x424]
mov byte [ebp - 0x59a], al
cmp ecx, 8
jb 0x40ca99
inc ecx
push ecx
push dword [ebp - 0x438]
lea ecx, [ebp - 0x438]
call fcn.00403400
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], 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 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 0x40cb04
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.004142f0
mov ecx, eax
mov byte [ebp - 4], 2
jmp 0x40cb1d
lea eax, [edi - 0x74]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00428854
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 3
cmp dword [ecx + 0x14], 8
jb 0x40cb25
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 0x40cb55
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403400
cmp byte [edi + 0x4f], 0
jne 0x40cbab
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 0x40cb7b
mov ecx, dword [edi - 0x14]
add edi, 0xffffffec
jmp 0x40cb80
add edi, 0xffffffec
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cba5
mov eax, dword [ebp - 0x5a8]
cmp dword [eax], 8
jb 0x40cb98
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 0x40cbef
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 0x40cc01
cmp byte [ebp - 0x59a], 0
je 0x40cc1e
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 0x40cc24
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.004142f0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x40cc3e
mov eax, dword [eax]
push eax
call fcn.0041a1d0
mov byte [ebp - 0x5c0], al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40cc6c
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403400
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.00402ca0
mov ebx, dword [ebp - 0x5a4]
lea ecx, [ebp - 0x218]
add esp, 0x10
mov eax, dword [ebx]
push ecx
push 0x600c28
mov ecx, ebx
call dword [eax + 0x120]
lea eax, [ebp - 0x450]
mov ecx, esi
push eax
call fcn.00414510
mov ecx, eax
mov byte [ebp - 4], 5
cmp dword [ecx + 0x14], 8
jb 0x40cd16
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 0x40cd43
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403400
xor eax, eax
mov dword [ebp - 0x43c], 7
push 0xe0
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x218]
push 0x600110
push eax
mov dword [ebp - 0x440], 0
call fcn.00402ca0
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 0x600110
push eax
call fcn.00402ca0
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 0x40c9f0
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 0x600110
push eax
call fcn.00402ca0
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 0x600110
push eax
call fcn.00402ca0
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.0041afe3
mov esp, ebp
pop ebp
ret 8