Function at 0x401460
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x41046c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
xor edi, edi
mov esi, dword [eax + 0x20]
mov al, byte [esp + 0x3b]
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
add esi, 0x1530
mov dword [esp + 0x1e4], edi
push esi
call fcn.0040dbb0
lea ecx, [esp + 0x1c]
add esp, 4
cmp ecx, esi
mov dword [esp + 0x28], eax
je 0x401604
mov ecx, esi
call fcn.00402140
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00402140
cmp ebp, eax
ja 0x40152a
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.00403070
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402170
mov ecx, esi
call fcn.00402140
mov edx, eax
mov ecx, dword [esp + 0x1c]
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x20], edx
jmp 0x401604
mov ecx, esi
call fcn.00402140
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00402110
cmp ebp, eax
lea ecx, [esp + 0x18]
ja 0x4015a4
mov edi, dword [esi + 4]
call fcn.00402140
mov ecx, eax
shl ecx, 5
add ecx, eax
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea edi, [edi + edx*4]
push edi
push eax
call fcn.00403070
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x18]
push edx
push eax
push edi
call fcn.004021a0
mov ecx, esi
call fcn.00402140
mov ecx, eax
shl ecx, 5
add ecx, eax
xor edi, edi
lea eax, [eax + ecx*2]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edx*4]
mov dword [esp + 0x20], ecx
jmp 0x401604
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00402170
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, esi
call fcn.00402140
cmp eax, edi
jge 0x4015cd
xor eax, eax
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
lea eax, [eax + eax*4]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.004021a0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00401bc0
add esp, 4
mov ecx, ebx
push 0x3eb
call sub.MFC42.DLL_CWnd::GetDlgItem
push 0x7f00
push edi
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], eax
call fcn.00401ff0
mov dword [esp + 0x40], 0x41299c
mov edx, dword [ebx + 0xb0]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x1004
push edx
mov byte [esp + 0x1f4], 1
mov dword [esp + 0x44], edi
xor esi, esi
call ebp
test eax, eax
jle 0x4016de
lea edi, [ebx + 0x90]
push 0
lea eax, [esp + 0x34]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText_1
push eax
mov ecx, 0x4179fc
mov byte [esp + 0x1e8], 2
call fcn.004021e0
test eax, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1e4], 1
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4016c1
mov ecx, dword [esp + 0x10]
push 0
push esi
push 0x1008
mov edx, dword [ecx + 0xb0]
push edx
call ebp
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x1004
mov ecx, dword [eax + 0xb0]
inc esi
push ecx
call ebp
cmp esi, eax
jl 0x401670
xor edi, edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], edi
cmp eax, edi
jle 0x4018b3
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [ebx + ecx + 0x42c]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov edx, dword [ebx + ecx + 0x42c]
cmp eax, edx
je 0x401894
mov edi, dword [esp + 0x10]
xor esi, esi
push esi
push esi
mov edx, dword [edi + 0xb0]
push 0x1004
push edx
call ebp
test eax, eax
jle 0x401798
lea ebp, [edi + 0x90]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x4c]
push esi
push ecx
mov ecx, ebp
lea edi, [eax + 0x10]
call sub.MFC42.DLL_CListCtrl::GetItemText_1
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x48]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x401861
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x1004
mov eax, dword [edx + 0xb0]
inc esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, eax
jl 0x401734
mov ebx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x14]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x54], 3
mov dword [esp + 0x58], ecx
mov eax, dword [edx + 0x10]
mov ecx, 0x58
mov dword [esp + 0x68], eax
xor eax, eax
lea edi, [esp + 0x7c]
push 0x100
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x80]
push 0x160
push eax
lea edx, [ebx + ecx + 0x20]
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x10]
cmp eax, esi
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx + 0xdc]
jne 0x40180f
mov eax, dword [esp + 0x50]
push eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x54]
mov ecx, dword [edi + 0x20]
push eax
push esi
push 0x1007
push ecx
call ebp
mov edx, dword [esp + 0x14]
mov esi, eax
mov ecx, edi
mov eax, dword [edx + 0xc]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push esi
call sub.MFC42.DLL_CListCtrl::SetItem
push 0x417064
push 1
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
jmp 0x40186b
mov ebx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x14]
inc esi
mov dword [esp + 0x34], esi
call fcn.004024f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + ecx + 0x42c]
cmp edx, eax
jne 0x401714
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
inc eax
add ebx, 0x53c
cmp eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ebx
jl 0x4016f8
mov dword [esp + 0x40], 0x412988
lea ecx, [esp + 0x40]
mov byte [esp + 0x1e4], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov dword [esp + 0x40], 0x412974
mov dword [esp + 0x1e4], 0xffffffff
mov edi, eax
je 0x401906
lea ecx, [esi + 0x428]
call fcn.004036a0
add esi, 0x53c
cmp esi, edi
jne 0x4018ed
mov esi, dword [esp + 0x1c]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1e0]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d8
ret