Function at 0x10096020
Capabilities:
Check if file exists
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100db6d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x10145188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push str.lb_icon
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0xc38]
push eax
call dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindSubControlByName_class_DuiLib::CControlUI___wchar_t_const__const]
mov esi, eax
mov dword [ebp - 0x2d4], esi
test esi, esi
je 0x100961d8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
cmp eax, 0xffffffff
je 0x100961d8
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
test eax, eax
jne 0x100961d8
push 0x2e
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
inc eax
push eax
lea edx, [ebp - 0x2cc]
push edx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid]
push 0x100f20b4
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x100960e8
push str.commonuiicon_package.png
mov ecx, esi
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CControlUI::SetBkImage_wchar_t_const__]
jmp 0x100961cc
mov ecx, dword [ebp + 8]
push pe_nt_image_headers32
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0x80
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 0x2c8]
call dword [0x100ec970]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c0]
push edx
lea eax, [ebp - 0x2c8]
push str.SysFileIcon:_d
push eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov ecx, dword [ebp - 0x2c8]
add esp, 0xc
push ecx
mov ecx, dword [edi + 0xc38]
call dword [sym.imp.DuiLib_u.dll_public:_struct_DuiLib::tagTImageInfo_const____thiscall_DuiLib::CPaintManagerUI::GetImage_wchar_t_const__]
test eax, eax
jne 0x100961a4
mov edx, dword [ebp - 0x2c4]
push edx
call fcn.10017d00
add esp, 4
mov esi, eax
mov ecx, dword [esi + 4]
push 0
lea eax, [ebp - 0x2d0]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x10096176
mov dword [esi + 8], eax
mov ebx, dword [ebp - 0x2c8]
push 1
call fcn.10017cd0
push eax
call fcn.10017ca0
mov edx, dword [ebp - 0x2d0]
mov ecx, dword [edi + 0xc38]
push eax
push edx
push ebx
call dword [sym.imp.DuiLib_u.dll_public:_struct_DuiLib::tagTImageInfo_const____thiscall_DuiLib::CPaintManagerUI::AddImage_wchar_t_const___struct_HBITMAP_____int__int__bool_]
mov esi, dword [ebp - 0x2d4]
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, esi
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CControlUI::SetBkImage_wchar_t_const__]
mov ecx, dword [ebp - 0x2c4]
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
lea ecx, [ebp - 0x2c8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d0962
mov esp, ebp
pop ebp
ret 8