Function at 0x4586a0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5842d1
push eax
mov dword fs:[0], esp
sub esp, 0x394
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov eax, dword [esi + 0x60]
push eax
call edi
cmp eax, 4
jle 0x4586f3
mov ecx, dword [esi + 0x60]
push ecx
call edi
lea edi, [eax - 1]
cmp edi, 3
jle 0x4586f3
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov edx, dword [esi + 0x60]
push edi
push edx
call ebx
dec edi
cmp edi, 3
jg 0x4586e6
lea eax, [esi + 0x5c]
test eax, eax
je 0x4586fd
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x398]
push 1
push 0x1003
push eax
call edi
push eax
call fcn.005657c3
mov ecx, dword [esi + 0x398]
push 0
push 0
push 0x1009
push ecx
call edi
mov eax, dword [esi + 0x70]
xor ebp, ebp
test eax, eax
jle 0x45894a
xor ebx, ebx
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x1c], 2
add edx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0
mov eax, dword [edx + 8]
test eax, eax
jne 0x458765
mov dword [esp + 0x38], 3
jmp 0x4587c1
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x44]
push 0x110
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push 0x160
push eax
add edx, 0x110
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4587a5
mov dword [esp + 0x38], 3
jmp 0x4587c1
mov ecx, dword [esi + 0x60]
push eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edx, dword [esi + 0x60]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
dec eax
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x398]
lea eax, [esp + 0x1c]
push eax
push 0
push 0x1007
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x6c]
lea ecx, [esp + 0x10]
lea eax, [ebx + edx + 0xc]
push eax
call fcn.0056877a
lea ecx, [esp + 0x10]
mov dword [esp + 0x3ac], 0
call fcn.00563f13
lea ecx, [esp + 0x10]
call fcn.00563ec7
mov ecx, dword [esp + 0x10]
lea edi, [esi + 0x37c]
push ecx
push 0
push ebp
mov ecx, edi
call fcn.00564ff1
mov edx, dword [esi + 0x6c]
mov eax, dword [ebx + edx + 8]
test eax, eax
jne 0x458848
push 0x5e9a7c
push 1
push ebp
mov ecx, edi
call fcn.00564ff1
push 0x5fe7d8
push 2
push ebp
mov ecx, edi
call fcn.00564ff1
jmp 0x4588c7
push 0x5e9a74
push 1
push ebp
mov ecx, edi
call fcn.00564ff1
mov eax, dword [esi + 0x6c]
push 0
mov ecx, dword [ebx + eax + 0x21c]
push ecx
mov edx, dword [ebx + eax + 0x218]
lea eax, [esp + 0x1ac]
push edx
push eax
call fcn.0043a190
add esp, 0x10
lea ecx, [esp + 0x1a4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0056877a
lea ecx, [esp + 0x18]
mov byte [esp + 0x3ac], 1
call fcn.00563f13
lea ecx, [esp + 0x18]
call fcn.00563ec7
mov edx, dword [esp + 0x18]
mov ecx, edi
push edx
push 2
push ebp
call fcn.00564ff1
lea ecx, [esp + 0x18]
mov byte [esp + 0x3ac], 0
call fcn.0056870c
mov eax, dword [esi + 0x6c]
lea ecx, [ebx + eax + 0x110]
push ecx
lea ecx, [esp + 0x18]
call fcn.0056877a
lea ecx, [esp + 0x14]
mov byte [esp + 0x3ac], 2
call fcn.00563f13
lea ecx, [esp + 0x14]
call fcn.00563ec7
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
push 3
push ebp
call fcn.00564ff1
mov eax, dword [esi + 0x6c]
mov ecx, dword [ebx + eax]
push ecx
push ebp
mov ecx, edi
call fcn.0056644e
lea ecx, [esp + 0x14]
mov byte [esp + 0x3ac], 0
call fcn.0056870c
lea ecx, [esp + 0x10]
mov dword [esp + 0x3ac], 0xffffffff
call fcn.0056870c
mov eax, dword [esi + 0x70]
inc ebp
add ebx, 0x238
cmp ebp, eax
jl 0x45873b
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3a0
ret