Function at 0x406190
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x633754]
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 [0x5dc4d4]
mov dword [ebp - 0x7e4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x7e8], eax
mov dword [ebp - 0x7dc], 0
mov dword [ebp - 0x7cc], 0
mov dword [ebp - 0x7e0], 0
mov dword [ebp - 0x7d4], 0
mov dword [ebp - 0x7d8], 0
mov dword [ebp - 0x7ec], 0
mov dword [ebp - 0x7d0], 0
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 0x5dc4e8
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]
push ebx
mov dword [edi + 0x21c], eax
call fcn.004060f0
mov eax, dword [ebp - 0x7e4]
add esp, 4
test eax, eax
je 0x406565
cmp word [eax], 0
je 0x406565
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [edi + 0x10]
push eax
call esi
push 0
push 0
push 0xb
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
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.00406de0
mov eax, dword [ebp - 0x7e4]
add esp, 0xc
mov dword [ebp - 0x828], 7
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x814], 0xffffffff
push eax
mov dword [ebp - 0x810], 0x104
mov dword [ebp - 0x80c], 0xffffffff
call esi
lea eax, [ebp - 0x7dc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x4064ce
mov eax, dword [ebp - 0x7dc]
lea edx, [ebp - 0x7d0]
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 0
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x4064c0
mov eax, dword [ebp - 0x7dc]
lea edx, [ebp - 0x7cc]
push edx
push 0x5bcf34
push 0
mov ecx, dword [eax]
push dword [ebp - 0x7e0]
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jne 0x4064c0
mov eax, dword [ebp - 0x7cc]
lea edx, [ebp - 0x7d8]
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4064c0
mov eax, dword [ebp - 0x7d8]
lea edx, [ebp - 0x7d4]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x4064b2
nop word [eax + eax]
mov eax, dword [ebp - 0x7cc]
lea edx, [ebp - 0x7d0]
push edx
mov dword [ebp - 0x7d0], 0x60000000
lea edx, [ebp - 0x7d4]
push edx
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x24]
call eax
test dword [ebp - 0x7d0], 0x40000000
je 0x406491
lea eax, [ebp - 0x7c8]
push eax
push dword [ebp - 0x7d4]
push dword [ebp - 0x7cc]
call fcn.00406e80
add esp, 0xc
test eax, eax
je 0x406491
push 8
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, dword [ebp - 0x7d4]
mov esi, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x7cc]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x7cc]
push ecx
mov edx, dword [ecx]
mov ecx, dword [edx + 4]
call ecx
test dword [ebp - 0x7d0], 0x20000000
mov dword [ebp - 0x808], esi
je 0x40646a
mov eax, dword [edi + 0x218]
jmp 0x406470
mov eax, dword [edi + 0x21c]
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x828]
push eax
push 0
push 0x104d
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [ebp - 0x824]
mov eax, dword [ebp - 0x7d8]
lea edx, [ebp - 0x7d4]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4063d0
mov eax, dword [ebp - 0x7d8]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x7dc]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [edi + 8]
test eax, eax
je 0x4064dc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4064ef
mov ecx, dword [eax]
test ecx, ecx
je 0x4064ef
push eax
mov eax, dword [ecx + 8]
call eax
push dword [ebp - 0x7e0]
call fcn.004075f0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x7e0]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x7cc]
push 0xfffe
push 0
push 0x101e
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [edi + 0x220], eax
call esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
call fcn.004068e0
add esp, 0xc
push 0
push 1
push 0xb
push ebx
call esi
push 0
push 0
push 0x1004
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret