Function at 0x1004ad70
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
mov edi, ecx
mov dword [ebp - 0x10], 0
push 0x1004fae0
push edi
mov esi, edx
call dword [sym.imp.SHELL32.dll_SHCreateItemFromIDList]
test eax, eax
jne 0x1004aea5
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push edx
push 0x40000000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
cmp dword [ebp - 0xc], 0
je 0x1004aea5
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], 0
push 0x1004f684
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x1004ae98
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 8
push esi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004ae98
lea ecx, [ebp - 0x2c]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1004ae7f
cmp word [ebp - 0x1a], 0x20
jne 0x1004ae7f
mov eax, dword [ebp - 0x24]
xor ebx, ebx
imul eax, dword [ebp - 0x28]
test eax, eax
jle 0x1004ae7f
add edi, 2
nop dword [eax]
movzx esi, byte [edi + 1]
lea edi, [edi + 4]
movzx ecx, byte [edi - 6]
mov eax, 0x80808081
imul ecx, esi
inc ebx
mul ecx
movzx ecx, byte [edi - 4]
mov eax, 0x80808081
imul ecx, esi
shr edx, 7
mov byte [edi - 6], dl
mul ecx
movzx ecx, byte [edi - 5]
mov eax, 0x80808081
imul ecx, esi
shr edx, 7
mov byte [edi - 4], dl
mul ecx
shr edx, 7
mov byte [edi - 5], dl
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x28]
cmp ebx, eax
jl 0x1004ae30
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
test eax, eax
je 0x1004afaa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1004afaa
mov eax, dword [ebp - 4]
test eax, eax
je 0x1004aea5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x2b4
lea eax, [ebp - 0x2f8]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2f8]
push 0x4008
push 0x2b4
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov edx, 0x10051aac
mov ecx, esi
call fcn.10023b40
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x1004afa7
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov ecx, dword [eax]
push edx
push 1
push dword [ebp - 0x2f4]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x1004af26
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
je 0x1004afa7
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
push 0
mov ebx, eax
mov dword [ebp - 0x40], 0x28
push 0
xorps xmm0, xmm0
lea eax, [ebp - 0x40]
movups xmmword [ebp - 0x3c], xmm0
push eax
push 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x3c], esi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x200001
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [ebp - 8], eax
call edi
push 3
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
mov esi, eax
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_DrawIconEx]
push esi
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1004afb7
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret