Function at 0x40a506
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x5a0b04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [section..data]
mov dword [ebp - 0x7e4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x7e8], eax
xor eax, eax
push ebx
mov dword [ebp - 0x7d0], eax
mov dword [ebp - 0x7d4], eax
mov dword [ebp - 0x7e0], eax
mov dword [ebp - 0x7dc], eax
mov dword [ebp - 0x7cc], eax
mov dword [ebp - 0x7ec], eax
mov dword [ebp - 0x7d8], eax
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, eax
push 0x4011
push 0x2b4
lea eax, [ebp - 0x4c0]
push eax
push 0x10
push str.Icon
call esi
mov eax, dword [ebp - 0x4bc]
push 0x4011
push 0x2b4
mov dword [edi + 0x218], eax
lea eax, [ebp - 0x4c0]
push eax
push 0x80
push str.Icon
call esi
mov eax, dword [ebp - 0x4bc]
mov dword [edi + 0x21c], eax
mov eax, dword [ebp - 0x7e4]
test eax, eax
je 0x40a789
xor ecx, ecx
cmp word [eax], cx
je 0x40a789
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [edi + 0x10]
push eax
call esi
xor eax, eax
push eax
push eax
push 0xb
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
push eax
push eax
push 0x1009
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp + 0x18]
lea eax, [ebp - 0x7c8]
push dword [ebp - 0x7e8]
push eax
call fcn.0040a41d
mov eax, dword [ebp - 0x7e4]
add esp, 0xc
mov dword [ebp - 0x828], 7
mov dword [ebp - 0x810], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x7d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
xor esi, esi
test eax, eax
jne 0x40a721
mov eax, dword [ebp - 0x7d0]
lea edx, [ebp - 0x7d8]
push edx
lea edx, [ebp - 0x7e0]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x7ec]
push edx
lea edx, [ebp - 0x20c]
push edx
push esi
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40a715
mov eax, dword [ebp - 0x7d0]
lea edx, [ebp - 0x7d4]
push edx
push 0x5584fc
push esi
push dword [ebp - 0x7e0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40a715
mov eax, dword [ebp - 0x7d4]
lea edx, [ebp - 0x7cc]
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x40a715
jmp 0x40a6ef
mov eax, dword [ebp - 0x7d4]
lea edx, [ebp - 0x7d8]
push edx
lea edx, [ebp - 0x7dc]
mov dword [ebp - 0x7d8], 0x60000000
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x7cc]
lea edx, [ebp - 0x7dc]
push esi
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x40a6c9
mov eax, dword [ebp - 0x7cc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x7d0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [edi + 8], 0
je 0x40a730
push dword [edi + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40a741
mov ecx, dword [eax]
test ecx, ecx
je 0x40a741
push eax
call dword [ecx + 8]
push 0xfffe
mov dword [edi + 4], esi
mov eax, dword [ebp - 0x7e0]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x7d4]
push 0x101e
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [edi + 0x220], eax
call esi
xor edi, edi
push edi
push 1
push 0xb
push ebx
call esi
push edi
push edi
push 0x1004
push ebx
call esi
jmp 0x40a78c
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049badb
leave
ret